Page 1 of 1
0.8-alpha12 - how to change day/month names to german?
Posted: Sun Feb 27, 2005 3:10 pm
by Marcel
I did install Serendipity 0.8-alpha12 yesterday (it was a very, very short night!) - and everything is fine - allmost ...
I've switched the language to "German" in den administration panel, which worked fine for all texts. But what do I have to do to show day and month names in German? It's still saying ("February" instead of "Februar", "Sunday" instead of "Sonntag" etc.). (I didn't have any problems with the Serendipity v.0.7.1 installed so far).
Thanks for your hints!
Marcel
Re: 0.8-alpha12 - how to change day/month names to german?
Posted: Sun Feb 27, 2005 3:25 pm
by garvinhicking
That is strange, because the logic to enforce the locale should not have changed!
Your system/server needs to support one of those locales: "german, de_DE, de, de_DE.ISO8859-1, de_DE@euro". Those are defined in lang/serendipity_lang_de.inc.php - can you see how'S the name of the german locale on your system?
This depends on the Linux/Windows distribution you're using. On my setup it's de_DE@euro.
Regards,
Garvin
Posted: Sun Feb 27, 2005 3:34 pm
by Marcel
Hi Garvin
Thanks for your quick reply!
The name fo the german locale on my system? Could one of these be helpful?
HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING gzip,deflate
HTTP_ACCEPT_LANGUAGE de,de-de;q=0.8,en-us;q=0.5,en;q=0.3
The operating system my hosting provider uses is "FreeBSD" (seen on my control panel) - as far as I know it is a Unix system!?
Posted: Sun Feb 27, 2005 3:51 pm
by garvinhicking
No, I'm sorry, those do not help. I'm not familar with FreeBSD, so please ask your system Administrator to tell you which locales are installed. Locaelgen helps to create missing ones...
Regards,
Garvin
Posted: Sun Feb 27, 2005 5:30 pm
by Marcel
Thanks for you hint - it must be a configuration problem in my web account. I've sent an email to the hosting provider and hope the will fix it soon!
Thanks a lot!
Regards, Marcel
Posted: Sun Feb 27, 2005 5:53 pm
by Marcel
Update:
Marcel wrote:it must be a configuration problem in my web account.
No! It's not a configuration problem in my web account! Just figured out, where the problem is:
It's an error in the file serendipity_lang_de.inc (which I've downloaded yesterday):
Code: Select all
@define('DATE_LOCALES', 'german, de_DE, de, de_DE.ISO-8859-1, de_DE@euro');
which should be
Code: Select all
@define('DATE_LOCALES', 'german, de_DE, de, de_DE.ISO8859-1, de_DE@euro');
Without a
"-" in
ISO8859! I've removed it and everything is fine now!
With proud regards
Marcel
Posted: Mon Feb 28, 2005 2:44 pm
by garvinhicking
In fact it was a problem of your webhoster. Debian Linux offers a locale called 'de_DE.ISO-8859-1' which seems to be standard. Aparaently, OpenBSD uses a different one. I'll add it to the list instead of replacing it.
Regards,
Garvin