I found one way, is that the proper way?
In my app_controller.php i have
uses('L10n')
Then I use the following code:
function AppController()
{
parent::Controller();
$this->L10n = new L10n();
$this->L10n->get('deu');
}
Michael Grunewalder wrote:
> That was a good start. Thanks.
> How do I select a language so that the user can change the language
> while browsing.?
> thanks in advance :-)
> Kaste wrote:
>
>>> How does working this i18n feature in 1.2? I like to make a multilangual
>>> site with it...
>>>
>>>
>>>
>> first steps should be easy.
>>
>>
>> in your view
>>
>> [index.ctp]
>> <? __("Hello, my friend"); ?>
>>
>> create /app/locale/deu/LC_MESSAGES/default.po
>> (** deu = your LANGUAGE code **)
>>
>> [default.po]
>> msgid "Hello, my friend"
>> msgstr "Hallo mein Freund"
>>
>>
>>
>>
>>
>>
>>
>
>
>
> >
>
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---