0.8-alpha12 - how to change day/month names to german?

Found a bug? Tell us!!
Post Reply
Marcel
Regular
Posts: 22
Joined: Sun Feb 27, 2005 2:56 pm

0.8-alpha12 - how to change day/month names to german?

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: 0.8-alpha12 - how to change day/month names to german?

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Marcel
Regular
Posts: 22
Joined: Sun Feb 27, 2005 2:56 pm

Post 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!?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Marcel
Regular
Posts: 22
Joined: Sun Feb 27, 2005 2:56 pm

Post 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
Marcel
Regular
Posts: 22
Joined: Sun Feb 27, 2005 2:56 pm

Post 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 :wink:
Marcel
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply