Skip to content

Commit

Permalink
Add note regarding translation caching.
Browse files Browse the repository at this point in the history
  • Loading branch information
ndm2 committed Jun 8, 2021
1 parent 3d543cd commit 49daedb
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
7 changes: 7 additions & 0 deletions en/core-libraries/internationalization-and-localization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,13 @@ An example translation file could look like this:
msgid "I'm {0,number} years old"
msgstr "J'ai {0,number} ans"
.. note::
Translations are being cached - Make sure that you always clear the cache after
making changes to translations! You can either use the
:doc:`cache tool </console-commands/cache>` and run for example
``bin/cake cache clear _cake_core_``, or manually clear the ``tmp/cache/persistent``
folder.

Extract Pot Files with I18n Shell
---------------------------------

Expand Down
7 changes: 7 additions & 0 deletions fr/core-libraries/internationalization-and-localization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@ Un fichier de traduction pourrait ressembler à ceci:
msgid "I'm {0,number} years old"
msgstr "J'ai {0,number} ans"
.. note::
Les traductions sont mises en cache - Assurez-vous de toujours vider le cache après
avoir apporté des modifications aux traductions! Vous pouvez soit utiliser
:doc:`l'outil cache </console-commands/cache>` et exécuter par exemple
``bin/cake cache clear _cake_core_``, soit vider manuellement le dossier
``tmp/cache/persistent``.

Extraire les Fichiers Pot avec le Shell I18n
--------------------------------------------

Expand Down
6 changes: 6 additions & 0 deletions ja/core-libraries/internationalization-and-localization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ PR を送ってください。
msgid "I'm {0,number} years old"
msgstr "J'ai {0,number} ans"
.. note::
翻訳がキャッシュされています - 翻訳に変更を加えた後は、必ずキャッシュをクリアしてください。
:doc:`キャッシュツール </console-and-shells/cache>` を使って、例えば
``bin/cake cache clear _cake_core_`` を実行するか、手動で ``tmp/cache/persistent``
フォルダをクリアすることができます。

I18n を利用して Pot ファイルを生成する
--------------------------------------

Expand Down
7 changes: 7 additions & 0 deletions pt/core-libraries/internationalization-and-localization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ Um exemplo de arquivo de tradução pode ser visto como:
msgid "I'm {0,number} years old"
msgstr "J'ai {0,number} ans"
.. note::
Traduções estão sendo armazenadas em cache - Certifique-se de que você sempre
limpa o cache após fazer alterações nas traduções! Você pode utilizar a ferramenta
:doc:`cache tool </console-and-shells/cache>` e executar por exemplo
``bin/cake cache clear _cake_core_``, ou limpar manualmente a pasta
``tmp/cache/persistent``.

Extraindo arquivos .pot com I18n Shell
--------------------------------------

Expand Down

0 comments on commit 49daedb

Please sign in to comment.