From: Sergio A. K. <ser...@ho...> - 2001-06-04 01:04:32
|
hi all, I'm having problems with the locale, I cannot get spanish... of course I've edited the lib/config.php {$LANG = "es"}, and according with phpinfo() I have gettext support and is active anyone using other locale than english with the php rpms from RedHat 7.1 ? TIA, /sergio |
From: Jon <d9...@na...> - 2001-06-04 02:48:50
|
On Sun, Jun 03, 2001 at 09:36:58PM -0300, Sergio A. Kessler wrote: > hi all, >=20 > I'm having problems with the locale, I cannot get spanish... >=20 > of course I've edited the lib/config.php {$LANG =3D "es"},=20 > and according with phpinfo() I have gettext support and is active >=20 > anyone using other locale than english with the php rpms from RedHat 7.= 1 ? No, sorry! It probably won't work with PhpWiki 1.2.0. Someone with better knowledge than me can fill in why (like Jan :), but it has been fixed and if you download the latest alpha version you can probably get it to run. Just did to make sure I was right, and I was. :) ftp://phpwiki.sourceforge.net/pub/phpwiki/phpwiki.nightly.tar.gz Although there may be some other unfinished things in it, like for an example that ugly default style sheet (changing to sans serif for WikiLinks, baaah :). --=20 ___\ Jon =C5slund |
From: Sergio A. K. <ser...@ho...> - 2001-06-04 14:59:46
|
----- Original Message ----- From: "Jon Åslund" <d9...@na...> On Sun, Jun 03, 2001 at 09:36:58PM -0300, Sergio A. Kessler wrote: > > anyone using other locale than english with the php rpms from RedHat 7.1 ? > > No, sorry! It probably won't work with PhpWiki 1.2.0. Someone with > better knowledge than me can fill in why (like Jan :), but it has been > fixed and if you download the latest alpha version you can probably > get it to run. Just did to make sure I was right, and I was. :) > > ftp://phpwiki.sourceforge.net/pub/phpwiki/phpwiki.nightly.tar.gz > > Although there may be some other unfinished things in it, like for an > example that ugly default style sheet (changing to sans serif for > WikiLinks, baaah :). I get it to work, but now I get the spanish text AND the english text on the home page, like: AgregarPaginas from plain file ./locale/es/pgsrc/AgregarPaginas is identical to current version 1 - skipped AddingPages Skipping of course this is not what I want... anyways, I started to look at the code, wow, well, it is not the most elegant code I've seen... the first thing that come to my mind is to create a /etc directory to store there config files, the current method of storing config info in index.php is b0rked (and a complete mess) I'm willing to contribute a patch if this is of interest to mantainers, just tell me. /sergio |
From: Pablo R. R. <pr...@cl...> - 2001-06-05 00:56:40
|
Hi Sergio, I wa the man who did the spanish traslation according with the supplied instructions and some help from here. Unluckyly, I can't put this to work in my site cause they don't allow the gettext, maybe I can check this with another ISP. But I don't feel comfortable with gettext oriented funcs, cause some ISP's don't use it. Imagine how I feel .. :) Pablo Roca > -----Mensaje original----- > De: php...@li... > [mailto:php...@li...]En nombre de Sergio A. > Kessler > Enviado el: lunes, 04 de junio de 2001 2:37 > Para: php...@li... > Asunto: [Phpwiki-talk] gettext problems > > > hi all, > > I'm having problems with the locale, I cannot get spanish... > > of course I've edited the lib/config.php {$LANG = "es"}, > and according with phpinfo() I have gettext support and is active > > anyone using other locale than english with the php rpms from RedHat 7.1 ? > > TIA, > /sergio > > > _______________________________________________ > Phpwiki-talk mailing list > Php...@li... > http://lists.sourceforge.net/lists/listinfo/phpwiki-talk |
From: Sergio A. K. <ser...@ho...> - 2001-06-05 13:43:32
|
hi pablo, I agree 100% with you, while I can see the point on using gettext with a languaje like C, I still cannot see the point on using gettext on a languaje like PHP. a solution based on $HTTP_SERVER_VARS["HTTP_ACCEPT_LANGUAGE"] (ie. the client browser languaje) and a simple dictionary, is IMO better (and more simpler for translators) anyway, I get 1.2.0 to work with my locale using "es_AR" with this simple patch putenv ("LANG=$LANG"); + if ( setlocale('LC_ALL', "") == null) + echo "INVALID locale"; bindtextdomain ("phpwiki", "./locale"); now, I don't know what to do with my changes, I'm just waiting for mantainers feedback... /sergio ----- Original Message ----- From: "Pablo Roca Rozas" <pr...@cl...> > Hi Sergio, > > I wa the man who did the spanish traslation according with the supplied > instructions and some help from here. > > Unluckyly, I can't put this to work in my site cause they don't allow > the gettext, maybe I can check this with another ISP. But I don't feel > comfortable with gettext oriented funcs, cause some ISP's don't use it. > > Imagine how I feel .. :) > > Pablo Roca |
From: Pablo R. R. <pr...@cl...> - 2001-06-05 14:59:03
|
Sergio, > while I can see the point on using gettext with > a languaje like C, I still cannot see the point on using gettext on > a languaje like PHP. :) > a solution based on $HTTP_SERVER_VARS["HTTP_ACCEPT_LANGUAGE"] > (ie. the client browser languaje) and a simple dictionary, > is IMO better (and more simpler for translators) Yes, or like phpnuke or phpbb does, defining variables for lang > anyway, I get 1.2.0 to work with my locale using "es_AR" with > this simple patch > > putenv ("LANG=$LANG"); > + if ( setlocale('LC_ALL', "") == null) > + echo "INVALID locale"; > bindtextdomain ("phpwiki", "./locale"); Cool! I'll try this. Saludos, Pablo Roca |