Page 1 of 1

date is displayed in finnish in spanish blog

Posted: Tue Jun 19, 2007 11:46 am
by Jensemann
hello!

according to the point which is explained in the FAQ´s, which says:
...
To display date and time formats specific to national conventions, Serendipity uses a system called "Locales". This system is both available on Linux and Windows and adjusts the native language of the system. A system can contain multiple locales to choose from, and Serendipity employs them via the "LOCALES" constant found in your lang/serendipity_lang_XX.inc.php....

spanish language is installed under "locales". i use windows. i changed the blog language into spanish, but the date is displayed in finnish (or some other nordish language) for example: thursday the 14th - Neljapäev, 14 de juuni del 2007. Every other languages are working without any mistakes. Is there a description, how i can fix the problem?

Thanks!
Jensemann

Re: date is displayed in finnish in spanish blog

Posted: Tue Jun 19, 2007 12:13 pm
by garvinhicking
Hi!

Might be that some of the declared locales for spanish is mixed up with that swedish language?

In the spanish file, those locales are used:

ISO: es_ES.ISO8859-15, es_ES.ISO8859-1, spanish, sp, es, es_ES, es-ES, es_ES.ISO_8859-15, es_ES.ISO_8859-1

UTF: es_ES.UTF8, es_ES.ISO8859-1, spanish, sp, es, es_ES, es-ES, es_ES.ISO_8859-15, es_ES.ISO_8859-1

Maybe this 'sp' locale is used on your setup and contains a different declaration?

Regards,
Garvin

Posted: Mon Jun 25, 2007 10:04 am
by Jensemann
Thanks,

that was right. I think it is relevant for bloggers who have a german server. The german "locales" uses "es" for estnish language. the date was not finnish.
You have to overwrite the spanish php language file under folder "utf8" and replace all "es" into sp for spanish. There seems to be no international standard that "es" means spanish.

UTF: es_ES.UTF8, es_ES.ISO8859-1, spanish, sp, es, es_ES, es-ES, es_ES.ISO_8859-15, es_ES.ISO_8859-1

after change:
UTF: sp_SP.UTF8, sp_SP.ISO8859-1, spanish, sp, sp, sp_SP, sp-SP, sp_SP.ISO_8859-15, sp_SP.ISO_8859-1

it works!
Jensemann