From The Blog

CakePHP: generate .po localization files using Shell

12 October 2013, in

 

Using the bake command, cakephp will read all your source files and it will extract all the text to translate. So it's very important that you write the string in the i18n function and don't pass just variables. For example to extract the text, using the command line go to you app directory, and execute the i18n command:

$ cd /var/www/mysite/app
$ ./Console/cake i18n

You'll see:



Post a Comment