Friday, November 28, 2008

Re: multiple [controllerName].po files + normal core.po?

anybody some idea on that? :)
thx


On 26 Nov., 04:13, "Mark (Germany)" <dereurom...@googlemail.com>
wrote:
> Several posts and blogs have been made to similar topics
> they usually end up with
> use eather core.po OR multiple controllerName.po etc
>
> the way cake works is:
> - if it finds a "domain".po, use it, abort
> - if not, try to find core.po, use it, abort
>
> well, is there (without the need to hack into i18n.php in /cake/libs)
> an easy way to
> always include core.php (main translation things as "edit" "delete"
> "add")
> + including a controller based .po file having the specific strings
> for each controller connected view?
>
> example, how the /LC_MESSAGES dir could look like:
>
> core.po (everything needed in every controller, always included)
> blogs.po
> posts.po
> config.po
> contact.po
> ...
> etc
>
> AND i probably have to add:
> without having to use the domain everywhere inside the translation
> strings like __('domain','string)
> as this is not very usability-friendly.
> they should still be of the type __('string') and just be merged from
> both the core.po and the actual controller we use right now.
>
> maybe in the beforeFilter() method, as this one is triggered only if
> some controller is used,
> otherwise only the core.po file is needed for the debug/error messages
> and the main layout etc.
>
> if it ends up to be a manual insert function, this would probably be
> ok, as well..
> i reckon its gonna be like that, as i searched the internet quite
> thoroughly
>
> thx in advance
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

No comments: