problem using setlocale() for greek

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
vangelis
Forum Newbie
Posts: 23
Joined: Thu Jun 05, 2003 6:35 am

problem using setlocale() for greek

Post by vangelis »

I am trying to modify a web page (in particular the days of the week) depending on the language set by the user, using the setlocale() function. It works fine for a number of languages like spanish, postuguese, norwegian, italian, german, french etc... BUT it does not work for greek. I am almost certain that the code used in the setlocale function is gr_GR for greek (I am from Greece :) ).

Could u please help. Am I using the wrong locale code or is it something else??

chears
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post by ol4pr0 »

Code: Select all

gr_GR is correctly
Besides that i dont have much anwers

http://php.oregonstate.edu/manual/sv/fu ... locale.php

That page might tho
basdog22
Forum Contributor
Posts: 158
Joined: Sun Nov 30, 2003 3:03 pm
Location: Greece

Post by basdog22 »

Hi patrioti :P :P :P :P

I think the locale is el_GR
vangelis
Forum Newbie
Posts: 23
Joined: Thu Jun 05, 2003 6:35 am

Post by vangelis »

euxaristw basdog...the locale code is el_GR :lol:
Post Reply