views:

50

answers:

2

Hi we have some queries regarding localization/.po files

1> We want to detect the missing strings or strings which are not being captured for L10N. how we can detect that? is that any method or command to update the strings

2> Locale files (.po) for "cn-zh" or another Locale are not complete (missing strings)

3> String has been captured for L10N but does not have a matching pair in .po files

A: 

This is what msgmerge is for.

Ignacio Vazquez-Abrams
A: 

You can use the i18n shell to extract all the translatable strings from your application into a .pot file:

$ /path/to/cake/console/cake i18n help --app /path/to/app

Or, if you put /path/to/cake/console/ in your $PATH environment variable and cd to your app directory:

$ cake i18n help
deizel
can we use this in cakephp?
Manjushree
Yes, you can find directions on how to use the CakePHP shell here: http://book.cakephp.org/view/108/The-CakePHP-Console (Although the i18n shell is not documented in the book, it is part of CakePHP: http://api.cakephp.org/class/i18n-shell)
deizel