if you put a simple __('foo') in a view and in default.po
msgid "foo"
msgstr "bar"
does it work when you access the view ?
On Nov 24, 5:27 pm, cronet <[EMAIL PROTECTED]> wrote:
> no,
>
> it's the latest stable 1.2 alpha
>
> On 24 Nov., 17:26, foxmask <[EMAIL PROTECTED]> wrote:
>
> > cakephp 1.1.x.x ?
>
> > On Nov 24, 5:21 pm, cronet <[EMAIL PROTECTED]> wrote:
>
> > > I think my files are correct, because, it worked already in
> > > development environment. Now i wanted to switch to my production
> > > server, and the language thing isn't working anymore...
>
> > > On 24 Nov., 17:18, foxmask <[EMAIL PROTECTED]> wrote:
>
> > > > how looks like your default.po and what is the exact __() content ?
>
> > > > my default.ctp is
>
> > > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> > > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> > > > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php
> > > > __('lang_iso_code') ?>"
> > > > lang="<?php __('lang_iso_code') ?>" dir="<?php __('lang_direction') ?
>
> > > > >">
>
> > > > and my default.po
>
> > > > msgid "lang_iso_code"
> > > > msgstr "fr"
>
> > > > msgid "lang_direction"
> > > > msgstr "ltr"
>
> > > > On Nov 24, 5:06 pm, cronet <[EMAIL PROTECTED]> wrote:
>
> > > > > hi,
>
> > > > > I created the folder /app/locale/deu/LC_MESSAGES/default.po
>
> > > > > In my app_controller i set
> > > > > uses('L10n');
> > > > > before the class call
>
> > > > > and within beforeFilter():
>
> > > > > $this->Session->write('Config.language', "deu");
>
> > > > > Now, i thought, all __() constructs would be translated with the po
> > > > > file.
>
> > > > > But nothing happens.
>
> > > > > How can I debug this?
>
> > > > > Greetings,
> > > > > Alexander
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---