I18N Shell
The i18n shell provides a quick and easy way to generate po template files.These templates files can then be given to translators so they can translate thestrings in your application. Once you have translations done, pot files can bemerged with existing translations to help update your translations.
POT files can be generated for an existing application using the command. This command will scan your entire application for __()
stylefunction calls, and extract the message string. Each unique string in yourapplication will be combined into a single POT file:
You can generate a POT file for a specific plugin using:
- bin/cake i18n extract --plugin <Plugin>
This will generate the required POT files used in the plugins.
You can pass a comma separated list of folders that you wish to be excluded.Any path containing a path segment with the provided values will be ignored:
By adding , the shell script will no longer warn you if a POTfile already exists and will overwrite by default:
- bin/cake i18n extract --extract-core yes
- // or
- bin/cake i18n extract --extract-core no