date format not adjusting to language

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
obakemono

date format not adjusting to language

Post by obakemono »

Hi Guys!

The date format of my entries doesn't adjust to my blog-language.

What to do?
Should I hard-wire the format in the template?

Thanks in advance.
(You do great support,
already happy that I decided for serendipity)

obakemono
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: date format not adjusting to language

Post by garvinhicking »

Which language file are you using? You can edit the files in lang/serendipity_lang_XX.inc.php and look at the dateformat there. But they usually already adjust to the language of your blog.

The best way would be to hardwire your own liking inside your template, because if you change the lang-file you'd have to do that everytime for a new serendipity release.

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/
obakemono

hm...

Post by obakemono »

Well....

I use german language.
I think the serendipity_lang_XX.inc.php is working,
since the smarty-template from that file is used.

Yet, the strings are not adjusted: Its "Friday" where it should be German "Freitag"...

Any idea??

THX!
obakemono
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: hm...

Post by garvinhicking »

If it says "Friday" that means your server does not support one of the mentioned locales ("de", "de_DE" and so on). Please contact your system administrator and ask him to install a german locale. There's no other way to get german day/month names.

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