To anyone who is looking for answer to this I discovered the answer.
Here are my quick notes on it so far.
INTERNATIONALIZATION
- at top of controller: uses('L10n');
- create /app/locale/eng/LC_MESSAGES/default.po (French is fre/fra)
http://www.loc.gov/standards/iso639-2/php/code_list.php
- create entries in default.po as such:
msgid "close_window"
msgstr "Close"
msgid "where_pin"
msgstr "Where is my PIN?"
- call translations in view: <?__("close_window")?> ) ("close_window"
is msgid from default.po)
this is going to echo out the msgstr for the given msgid, else it
wil display the msgid given
use __("button_submit", true) to return the value as opposed to
echoing it
I hope this saves others the time it took me to track it down.
On Apr 13, 4:31 pm, "Aaron Thies" <[EMAIL PROTECTED]> wrote:
> I have been trying to find any kind of documentation on how to use
> i18n and l10n in CakePHP 1.2. Any help would be appreciated.
>
> --
> Aaron Thies
>
> "When you're married you'll understand the value of fresh produce."
> - Tony Soprano
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---