Page 1 of 1

setlocale() Help required from heroes !

Posted: Sun Jan 31, 2010 12:21 pm
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

Re: setlocale() Help required from heroes !

Posted: Sun Jan 31, 2010 1:19 pm
by requinix
Well, it'd be whatever language you need as the base, with (I'd pick) UTF-8 as the encoding.