You are here: Re: Installing locales for strftime() « PHP Programming Language « IT news, forums, messages
Re: Installing locales for strftime()

Posted by frugalprogrammer on 05/08/07 17:02

On May 8, 4:00 am, Darko <darko.maksimo...@gmail.com> wrote:
> Hi,
>
> by definition, strftime() uses the previous setlocale() calls to
> determine which language to use in returning strings such as week days
> or month names, depending on the given format.
>
> Now, my system seems not to have the necessary packages installed,
> since I always get "Monday" and "March" etc. whichever language I
> specify. (No help needed for specifying languages, since gettext()
> works without problems, which means setlocale() went fine).
>
> I tried installing some packages from the Internet, but these are only
> for KDE language support, and they seem not to have impact on apache,
> php etc.
>
> My questions are:
> - what does this depend on - Apache configuration, PHP configuration,
> kernel configuration, some independent package installation?
> - where do I find these packages (I use slamd64 - Slackware AMD64)
> - how do I install these (if you help me find them, since google-ing
> until now didn't help much)
Also may want to to check out gettext:

http://us2.php.net/gettext

You have to compile in the GNU gettext lib, however:

http://www.gnu.org/software/gettext/gettext.html

Cheers,
Andrew

>
> If my configuration specification necessary, here it is:
> PHP: 5.2.0
> Apache: 2.2.4
> Kernel info: Linux 2.6.19.2 #2 SMP Wed Jan 17 17:49:26 CET 2007 x86_64
> GNU/Linux
>
> I need support for more than one language, eg. German, French,
> Serbian, Swedish, Russian, etc. No need for far-east languages at the
> moment.
>
> Thank you in advance, any idea?
>
> Darko

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация