Re: For gettext() - "Apache server restarting" and "set Server Locale"

[email protected] (Tomas Kuliavas) Sun, 20 Jan 2008 07:14:35 +0200
Newsgroups php.i18n
Message-ID <[email protected]>
> Hi All
> 
> Do we have to "restart apache server" and  "set server locale" for get the
> support of gettext() function. If yes, then is there are another alternative
> for this.

You need system locales present on server in order to get working
gettext translation.

You must restart apache, if you change translation and recompile .mo files.

You don't have to change system locale on server. Locale can be set in
php scripts with setlocale() and putenv().

If you don't control system locales installed on server, there are
php-gettext classes on savanah.gnu.org.

-- 
Tomas