Re: Re: Translation of webpages
- From: "R.I.P. Deaddog" <maddog linuxhall org>
- To: Christian Rose <menthos menthos com>
- Cc: "Cetin, Gorkem" <gorkem gelecek com tr>,Gnome I18N List <gnome-i18n gnome org>
- Subject: Re: Re: Translation of webpages
- Date: Wed, 27 Mar 2002 19:47:33 +0800 (HKT)
On Wed, 27 Mar 2002, Christian Rose wrote:
> > > I don't know yet, because as far as I know the code for the new web site
> > > isn't done yet, but that's basically what we have discussed and what I
> > > hope for, yes.
> >
> > Maybe this is a bit off topic, but if there's a way to handle
> > multinational PHP sites via a po-system, please let me know -
>
> One solution is to use gettext directly.
> http://www.php.net/manual/en/ref.gettext.php
>
> Christian
Yes, though the document is scarse, it can be funny to
play with. Just something like:
putenv(LANG=xxx);
setlocale(LC_ALL,xxxxx);
bindtextdomain();
textdomain();
print (_("Hello World"));
Then put your .mo file under appropriate location. For
detail, please have a look at the annotated doc in
www.php.net.
Abel
>
>
> _______________________________________________
> gnome-i18n mailing list
> gnome-i18n@gnome.org
> http://mail.gnome.org/mailman/listinfo/gnome-i18n
>
--
Abel Cheung
GPG Key: (0xC67186FF) http://deaddog.org/gpg.asc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]