Hi all,
i got it...
it took some time, but finally i got it.
I looked again at the locale directory and recognized a second file in
my german translation directory named default.mo ...
This file was only 4 kb, and my .po file about 10kB. After deleting
the .mo file everything worked as usual..
Perhaps this file was created from PoEdit, which I used to translate
the strings. I don't know.
Hope that helps other too.
Regards,
Alexander
On 24 Nov., 20:24, cronet <[EMAIL PROTECTED]> wrote:
> No,
>
> i haven't installed the auth component.
>
> On 24 Nov., 18:44, francky06l <[EMAIL PROTECTED]> wrote:
>
> > Do you have the Auth component in your application ?
> > I have same problem, but using the latest cake1.2 from branch. If I
> > remove the __('xx', true) from the following lines in Auth component :
>
> > $this->loginError = __('Login failed. Invalid username or
> > password.', true);
> > $this->authError = __('You are not authorized to access that
> > location.', true);
>
> > (line 229 / 230), then everything is working as expected.
>
> > On Nov 24, 5:44 pm, cronet <[EMAIL PROTECTED]> wrote:
>
> > > No. That is my problem.
>
> > > Cake seems to ignore my po files. I would like to debug this in any
> > > way, but i don't know how...
>
> > > On 24 Nov., 17:35, foxmask <[EMAIL PROTECTED]> wrote:
>
> > > > 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- Zitierten Text ausblenden -
>
> > - Zitierten Text anzeigen -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---