Problem with lang

Found a bug? Tell us!!
Post Reply
nathaniel61

Problem with lang

Post by nathaniel61 »

I' ve installed in Easyphp and it works fine. All translated in italian.
But when I've installed on web server dates appair in english and not in italian. what is the problem?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Problem with lang

Post by garvinhicking »

You seem to be missing the italian locale file on your webserver. it_IT or what is called need to be generated on your server via localegen or other tools to tell php how to format a date according to italian...

If you don't have control over the webserver, please ask your provider to install the locale for you, that should not be troublesome. :-)

Best 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/
CapriSkye
Regular
Posts: 119
Joined: Sun Oct 31, 2004 4:42 am
Location: Taiwan
Contact:

Post by CapriSkye »

anyone know a good tutorial on how to install locale? im having trouble find any tutorial online. thanks.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

That depends on your OS. In Debian Linux its easy to do with "dpkg-reconfigure locales". On other systems, I can't tell...

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

Post by Guest »

Hello,
I am just installing s9y and found the same system.
I reinstalled the locales for my local language (german).
Do I need to set the default locale for the whole system to de_DE,
or will s9y pick the right date format depending on the language set in the admin panel?

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

Post by garvinhicking »

s9y picks the locale according to the language specified in the s9y configuration - so you only need to make sure the locales are available; you can leave default locales set to C or whatever you like. :)

Regards and hope that helps,
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/
Guest

Post by Guest »

Thanks for the quick answer.
There is a little inconsistency between debian/unstable and s9y's
serendipity_lang_de.inc.php, though.
debian only knows de_DE-ISO-8859-1, while s9y looks for de_DE-ISO8859-1.
I fixed this manually.

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

Post by garvinhicking »

You are right, I think it's a bug in the german locale for s9y.

Most setups use 'de_DE' or 'de_DE@Euro' so I think that's why it has yet worked for most setups. But I will fix that in CVS, thanks!

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