|
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
|