[PHP] Re: gettext() troubles

2005-09-23 Thread Michael Wallner
Hi Denis Gerasimov, you wrote: > I am facing some troubles with gettext. > ... > putenv("LANG=ru_RU"); Speaking from my experience, you need to use only "ru" there on Windows... > setlocale (LC_ALL,"ru"); ...but you definitly have to use the Windows abbreviation for the corresponding locale in

Re: [PHP] Re: gettext best practice

2005-07-14 Thread Skippy
Quoting Mark Rees <[EMAIL PROTECTED]>: > Consider whether you will always display the information in a web browser. > If there is any possibility that another program may be used for display, > you don't want the HTML tags in the database. In this particular situation I'm dealing with I only have

[PHP] Re: gettext best practice

2005-07-14 Thread Mark Rees
"Skippy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > How do you people best deal with text meant for i18n via gettext, which is > either large or contains HTML tags, or both? > > The GNU gettext manual, in section 3.2, recommends to split long texts at > paragraph level, or in th

[PHP] Re: gettext does not translate

2004-09-11 Thread Christian David
Catalin Trifu wrote: > moving the scritps to > another machine means more headache, it relies on system calls which > are not "isolated", which means scritps can step on each others toes. > MyÂadviceÂisÂstayÂawayÂofÂgettext. Thanks for your advice! I have tested the script on the Webserver, and

[PHP] Re: gettext does not translate

2004-09-11 Thread Catalin Trifu
Hi, I had really bad headaches with gettext some time ago and since then I decided to no longer use it. It's unreliable on heavy loads (mixed english + translated texts), moving the scritps to another machine means more headache, it relies on system calls which are not "isolated", whic

Re: [PHP] Re: gettext i18n

2003-09-04 Thread Catalin Trifu
Thank you! > putenv("LANG=de_DE"); > putenv("LANGUAGE=de_DE"); // better to be paranoid, works for me ;-) this one did the trick ! > putenv("LC_ALL=de_DE"); > setlocale(LC_ALL, "de_DE", "german"); > > (see some user comments in php manual) i already read the all before posting he

Re: [PHP] Re: gettext i18n

2003-09-04 Thread Christophe Chisogne
Catalin Trifu wrote: Try: putenv("LANG=de_DE") . ''; putenv("LC_ALL=de_DE") . ''; setlocale(LC_ALL, "de_DE", "german") . ''; I would have done this: putenv("LANG=de_DE"); putenv("LANGUAGE=de_DE"); // better to be paranoid, works for me ;-) putenv("LC_ALL=de_DE"); setlocale(LC_ALL, "de_DE", "germ

[PHP] Re: gettext i18n

2003-09-04 Thread Desi
Send me your messages.po file, I try it... Gettext is cool, it works very well for me... Desi Catalin Trifu wrote: Hi, Thanks for the reply, but it doesn't work this way either. in /www/locale I do have de/ LC_MESSAGES/ messages.mo de_DE/ LC_M

[PHP] Re: gettext i18n

2003-09-04 Thread Catalin Trifu
Hi, Thanks for the reply, but it doesn't work this way either. in /www/locale I do have de/ LC_MESSAGES/ messages.mo de_DE/ LC_MESSAGES/ messages.mo btw! on win32 it works :( Catalin "Desi" <[EMAIL PROTECTED]> wrote in message

[PHP] Re: gettext i18n

2003-09-04 Thread Desi
Hello, Try: putenv("LANG=de_DE") . ''; putenv("LC_ALL=de_DE") . ''; setlocale(LC_ALL, "de_DE", "german") . ''; Desi Catalin Trifu wrote: Hi, I want to add i18n support for my web site, but it doesn't seem to work. PHP 4.3.3., Apache 1.3.28, Mandrake 9.0 Here comes the test c

[PHP] Re: gettext

2002-08-30 Thread Richard Lynch
>Hi >I'm using gettext to add i18n to a web site, and it seems to work fine, >but the translation is done randomly. I mean that if you reload many times >the page, sometimes it gives back the translated message and sometimes the >untranslated one. >These are the steps I followed to use gettext wit

[PHP] Re: gettext functionality needs configuration flag

2002-03-29 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Thalis A. Kalfigopoulos) wrote: > Someone with the proper authority should probably put on the manual pages > that to get the gettext functionality you have to configure with the > --with-gettext flag. Did you know that anyone is allowed to a