Re: language problem in database cake1.3

2012-12-13 Thread Chris
hi Marcelo,... 

here is solutiion,... 

have your database tables in:  
DEFAULT CHARSET=utf8;

also add this on top of .sql file: 
SET NAMES 'utf8'; 
SET CHARACTER SET 'utf8'; 

in config/database.php add: 
class DATABASE_CONFIG {
'encoding' => 'utf8',

and in /app .htaccess file add this line 
AddDefaultCharset UTF-8 

add this in a  : 

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml";>


  


that's all,... any language added to database can be readable in the 
view,... 


On Wednesday, December 12, 2012 3:53:58 AM UTC-8, Marcelo F Andrade wrote:
>
> > On Tuesday, December 11, 2012 10:36:01 AM UTC-8, Chris wrote:
> >>
> >> anyone,...? 
> >> why do I see this crap in a view with cake1.3,? 
> >> ›Ð°Ñ ковый май- Розовый вечер  
> >>
> >> where it used to work in 1.2 
> >>
> >> thanks 
>
> Em 11/12/2012 23:59, "Chris" > escreveu:
> >
> > the problem is solved,... 
>
> Please, share with us how did you fix it.
>
> MARCELO DE FREITAS ANDRADE
> "Minha alma é maior do que eu."
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: language problem in database cake1.3

2012-12-12 Thread Marcelo F Andrade
> On Tuesday, December 11, 2012 10:36:01 AM UTC-8, Chris wrote:
>>
>> anyone,...?
>> why do I see this crap in a view with cake1.3,?
>> ›Ð°Ñ ковый май- Розовый вечер
>>
>> where it used to work in 1.2
>>
>> thanks

Em 11/12/2012 23:59, "Chris"  escreveu:
>
> the problem is solved,...

Please, share with us how did you fix it.

MARCELO DE FREITAS ANDRADE
"Minha alma é maior do que eu."

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: language problem in database cake1.3

2012-12-11 Thread Chris
the problem is solved,... 


On Tuesday, December 11, 2012 10:36:01 AM UTC-8, Chris wrote:
>
> anyone,...? 
> why do I see this crap in a view with cake1.3,? 
> ›Ð°Ñ ковый май- Розовый вечер  
>
> where it used to work in 1.2 
>
> thanks 
>
>
> On Monday, December 10, 2012 11:56:41 PM UTC-8, Chris wrote:
>>
>> hi guys,...
>> I'm having a problem with language in database... I'm in cake 1.3 
>> I have in app_controller: 
>>   App::import('Core', 'L10n'); 
>>   App::import('Core', 'I18n'); 
>>
>> I upload video from Youtube and have video "name" and "description" saved 
>> in database in Russina language,... but it gives me crap: 
>> ›Ð°Ñ ковый май- Розовый вечер 
>> in a view and in db... 
>>
>> link(__($video['Video']['name'], true), '/videos/show/' 
>> . $video['Video']['id']) ?>
>>
>>  how can I fix this,...  
>>
>> thanks in advance 
>> chris
>>
>>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: language problem in database cake1.3

2012-12-11 Thread Chris
anyone,...? 
why do I see this crap in a view with cake1.3,? 
›Ð°Ñ ковый май- Розовый вечер  

where it used to work in 1.2 

thanks 


On Monday, December 10, 2012 11:56:41 PM UTC-8, Chris wrote:
>
> hi guys,...
> I'm having a problem with language in database... I'm in cake 1.3 
> I have in app_controller: 
>   App::import('Core', 'L10n'); 
>   App::import('Core', 'I18n'); 
>
> I upload video from Youtube and have video "name" and "description" saved 
> in database in Russina language,... but it gives me crap: 
> ›Ð°Ñ ковый май- Розовый вечер 
> in a view and in db... 
>
> link(__($video['Video']['name'], true), '/videos/show/' 
> . $video['Video']['id']) ?>
>
>  how can I fix this,...  
>
> thanks in advance 
> chris
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




language problem in database cake1.3

2012-12-10 Thread Chris
hi guys,...
I'm having a problem with language in database... I'm in cake 1.3 
I have in app_controller: 
  App::import('Core', 'L10n'); 
  App::import('Core', 'I18n'); 

I upload video from Youtube and have video "name" and "description" saved 
in database in Russina language,... but it gives me crap: 
›Ð°Ñ ковый май- Розовый вечер 
in a view and in db... 

link(__($video['Video']['name'], true), '/videos/show/' . 
$video['Video']['id']) ?>

 how can I fix this,...  

thanks in advance 
chris

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: language problem

2007-11-24 Thread cronet

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
>
> > > > > > > >  > > > > > > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> > > > > > > > http://www.w3.org/1999/xhtml"; xml:lang=" > > > > > > > __('lang_iso_code') ?>"
> > > > > > > > lang="" dir=" > > > > > > > __('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 cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: language problem

2007-11-24 Thread cronet

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
>
> > > > > > >  > > > > > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> > > > > > > http://www.w3.org/1999/xhtml"; xml:lang=" > > > > > > __('lang_iso_code') ?>"
> > > > > > > lang="" dir=" > > > > > > __('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 cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: language problem

2007-11-24 Thread francky06l

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
>
> > > > > >  > > > > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> > > > > > http://www.w3.org/1999/xhtml"; xml:lang=" > > > > > __('lang_iso_code') ?>"
> > > > > > lang="" dir=" > > > > > ?
>
> > > > > > >">
>
> > > > > > 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 cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: language problem

2007-11-24 Thread cronet

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
>
> > > > >  > > > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> > > > > http://www.w3.org/1999/xhtml"; xml:lang=" > > > > __('lang_iso_code') ?>"
> > > > > lang="" dir="
> > > > > >">
>
> > > > > 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 cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: language problem

2007-11-24 Thread foxmask

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
>
> > > >  > > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> > > > http://www.w3.org/1999/xhtml"; xml:lang=" > > > __('lang_iso_code') ?>"
> > > > lang="" dir="
> > > > >">
>
> > > > 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 cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: language problem

2007-11-24 Thread cronet

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
>
> > >  > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> > > http://www.w3.org/1999/xhtml"; xml:lang=" > > __('lang_iso_code') ?>"
> > > lang="" dir="
> > > >">
>
> > > 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 cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: language problem

2007-11-24 Thread foxmask

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
>
> >  > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> > http://www.w3.org/1999/xhtml"; xml:lang=" > __('lang_iso_code') ?>"
> > lang="" dir="
> > >">
>
> > 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 cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: language problem

2007-11-24 Thread cronet

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
>
>  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> http://www.w3.org/1999/xhtml"; xml:lang=" __('lang_iso_code') ?>"
> lang="" dir="
> >">
>
> 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 cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: language problem

2007-11-24 Thread foxmask

how looks like your default.po and what is the exact __() content ?

my default.ctp is


http://www.w3.org/1999/xhtml"; xml:lang=""
lang="" dir="">

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 cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



language problem

2007-11-24 Thread cronet

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 cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---