find __() function parameters in /app and update *.po - automated
Any1 thought about creating little snippet which could speed up
hardcoded localization process.
Here is the simple scenerio:
1) find strings within __('...') __('...',true) string patterns in /
app folder
2) build arrays from default locale *.po files containing locale keys
3) append to end of these files missing id keys in form:
msgid "_register_disclaimer"
msgstr "TOODOO"
i create many multilang apps and i believe it could be major speed
boost for ppl like me.
we dont need to update these files manually every time we use __(). we
just run script when app is ready or changed and just update TOODOO
strings or send them to translators.
If some1 came up with idea how this could be easly done i would
apreciate this.
regular expressions? if so, how to build fault free one?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home