There is a shell script to do this. If the cake console is in your environment path, this command will work. cake i18n extract
-- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Tue, Oct 13, 2009 at 9:13 AM, Rob <[email protected]> wrote: > > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
