ok hmm now when i got help it work but don´t know why.

I use the following to translate:

routse.php -> i define the lang param
Router::connect('/:lang/:controller/:action/*',.....);

then i use the $this->params['lang'] to switch the langauage then here i
define it to switch it

        Configure::write('Config.language', $translate);

       $this->Session->write('Config.language', $translate);



but i have an question for the error flashes.ctp how can i change there
language. i try it with the same as in view  id do __('Fehler') than it
would print in english "ERROR" but it do nothing.


2011/7/9 Ryan Schmidt <[email protected]>

> You'll need to provide us with *some* information in order for us to be
> able to begin to help you. For example, show us the code where "Senden" is
> being printed. Show us how your locale is being set.
>
> Why does the msgid "Telefonnr." exist twice in your file?
>
>
> On Jul 8, 2011, at 05:14, Davor Ilic wrote:
>
> > hmmm does anybody no this issue?
> >
> > 2011/7/7 Davor Ilic <[email protected]>
> >
> >> It works well, but in some views wehere is use some translations they do
> >> not work well.
> >> this sheet i use to translate the hardcoded text in my view (I will mark
> >> which do not work):
> >>
> >> msgid  "Name"
> >> msgstr "Name"
> >>
> >> msgid  "Telefonnr."
> >> msgstr "Telephone-Nr."
> >>
> >> msgid  "Telefonnr."
> >> msgstr "Phone-nr."
> >>
> >> msgid  "Von"
> >> msgstr "From"
> >>
> >> msgid  "Bis"
> >> msgstr "Until"
> >>
> >> msgid  "Sitzplatz"
> >> msgstr "Seat"
> >>
> >> msgid  "Anfrage Senden"
> >> msgstr "Send request"
> >>
> >> msgid  "Senden"
> >> msgstr "Send"
> >>
> >> msgid  "Email"
> >> msgstr "E-Mail"
> >>
> >> msgid  "Text"
> >> msgstr "Message"
> >>
> >> msgid  "mehr"
> >> msgstr "more"
> >>
> >> msgid  "zurück"
> >> msgstr "back"
> >>
> >> msgid "Fehler" // also this in wanna use in my Session flash but do not
> >> show any like there for i use the template in error folder
> >> msgstr "Error"
>
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to