Re: More then 1 .po file for i18n/l10n
Yes, you can make folders and separate po files in the locale directories. So if I made a file in locale/eng/LC_MESSAGES/users/ called profile.po, to get the keys out of it, in your app, you'd use the __d function: __d('users/profile', 'welcome_text') On Dec 10, 8:57 pm, gearvOsh <[EMAIL PROTECTED]> wrote: > So I have an existing language system on a site that I am converting > to CakePHP. This language system has about 8 files, each with a long > list of variables. I noticed in Cake it only has a default.po file, > are we able to add more then just the default.po file? If so, what if > there are 2 variables named the same, but in 2 different .po files. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: More then 1 .po file for i18n/l10n
xxx.mo (or xxx.po) and yyy.mo (or yyy.po) __d('xxx', 'blabla'); or __d('yyy', 'blabla'); instead of __('blabla') --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
More then 1 .po file for i18n/l10n
So I have an existing language system on a site that I am converting to CakePHP. This language system has about 8 files, each with a long list of variables. I noticed in Cake it only has a default.po file, are we able to add more then just the default.po file? If so, what if there are 2 variables named the same, but in 2 different .po files. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---