Re: Gettext unstable ¿?

2007-03-14 Thread Nico
About point 4: Replying to myself in case anybody has the same problem: restarting apache did the trick. My system: - Debian testing kernel 2.4.27-3-386 - Apache 2.2.3-3.3 - PHP 5.2.0-8 - gettext 0.16.1-1 - php-gettext 1.0.7-2 - CakePHP 1.1.13 I had installed everything, but never restarted ap

Re: Gettext unstable ¿?

2007-03-13 Thread Mika
That might work for some short stings, but I would want to keep translated data from the database also in the database. For example whole articles that are translated. There must be a better way? --~--~-~--~~~---~--~~ You received this message because you are subs

Re: Gettext unstable ¿?

2007-03-13 Thread Stefan
Using or where $data["description"] = "Description for product" and comes from db is the same thing. locale/your language/LC_MESSAGES/default.po file must have the translation for string "Product description". --~--~-~--~~~---~--~~ You received this message bec

Re: Gettext unstable ¿?

2007-03-13 Thread Mika
Brilliant, thanks for the reply. Any idea about the db questions? --~--~-~--~~~---~--~~ 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

Re: Gettext unstable ¿?

2007-03-13 Thread Nico
Creating .po files and then compiling them into .mo is really simple, all you have to do is use xgettex and then msgfmt, and make sure you have the locales compiled in your system. Take a look at these, they are really useful and simple: - http://www.onlamp.com/pub/a/php/2002/06/13/php.html?page=

Re: Gettext unstable ¿?

2007-03-12 Thread Mika
I would like help with i18n as well. I do not know how the gettext and the translation works in cakephp and have not been able to figure it out by looking at the code. Could someone please write a little example? I can see we need to use _('') for static strings, but how are the .po files created

Gettext unstable ¿?

2007-03-12 Thread Nico
Hi, as many of you before, I'm trying to make gettext work with cakephp and I wanted to ask for advice. I'll number my questions for easy reading: 1. Is it worth the trouble trying gettext to work with cakephp 1.1.x? or is it better to just use 1.2 even though is not finished yet? 2. Some links I