I was wondering what was the best (correct?) way to work with i18n in
plugins ?
I would like to have a locale/ folder with .po/.mo files in each one
of my plugins as well as a generic app/locale/ folder with app-
specific translations.
Right now I'm using __d('plugin_name', 'My string') inside of my
plugins and __('My string') inside of the main app.
I run "cake i18n extract" in each plugin folder and I got a
plugin_name/locale/plugin_name.pot file. So far so good.
But when I run "cake i18n extract" in my main app, I got an app/locale/
default.pot file with both the default strings and the plugins
strings.
Running the task with "-merge no" don't merge the plugin strings in
default.pot but create useless plugin_name.pot files in app/locale/.
Is there a way to tell the console task to only extract strings of a
given domain (or no domain at all), or to skip plugins when
extracting ?
Or maybe there is a better way to work with translations in both the
app and plugins and still being able to use the extract feature
without having to manually move or delete files ?
P.S : I'm using cake 1.3 RC3
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
To unsubscribe, reply using "remove me" as the subject.
No comments:
Post a Comment