setlocale() Help required from heroes !

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Jagobezzer
Forum Newbie
Posts: 1
Joined: Sun Jan 31, 2010 12:16 pm

setlocale() Help required from heroes !

Post by Jagobezzer »

Hi People, we are currently developing a web site that uses a few langauges. We are using Centos and have been given the necessary codes for the languages see below:

The Question is what you would type in the PHP function setlocale()

??? Please and thank you :)


---------------language codes----------------------------------

locale -a

[prs@poq1 ~]$ cat DesiredLocales.txt
en_GB
es_ES
de_DE
pl_PL
sv_SE
fr_FR
ga_IE
[prs@poq1 ~]$ locale -a | grep -f DesiredLocales.txt
de_DE
de_DE@euro
de_DE.iso88591
de_DE.iso885915@euro
de_DE.utf8
en_GB
en_GB.iso88591
en_GB.iso885915
en_GB.utf8
es_ES
es_ES@euro
es_ES.iso88591
es_ES.iso885915@euro
es_ES.utf8
fr_FR
fr_FR@euro
fr_FR.iso88591
fr_FR.iso885915@euro
fr_FR.utf8
ga_IE
ga_IE@euro
ga_IE.iso88591
ga_IE.iso885915@euro
ga_IE.utf8
pl_PL
pl_PL.iso88592
pl_PL.utf8
sv_SE
sv_SE.iso88591
sv_SE.iso885915
sv_SE.utf8
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: setlocale() Help required from heroes !

Post by requinix »

Well, it'd be whatever language you need as the base, with (I'd pick) UTF-8 as the encoding.
Post Reply