Re: Re: Translation of webpages



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]