Cookbook
Extracting translatable strings with Gettext
The xgettext
utility can be used to compile *.po
files from PHP source files
containing the translate view helper.
$ xgettext --language=php --add-location --keyword=translate --keyword=translatePlural:1,2 my-view-file.phtml
See the Gettext documentation for more information.
Found a mistake or want to contribute to the documentation? Edit this page on GitHub!