Locale entries for Norwegian language

Found a bug? Tell us!!
Post Reply
frodeste
Regular
Posts: 56
Joined: Thu Aug 04, 2005 9:16 pm
Location: Tønsberg, Norway
Contact:

Locale entries for Norwegian language

Post by frodeste »

Some locales are missing. I have added a few that I find are commonly used to my copy of the lang/serendipity_lang_no.inc.php file:

@define('DATE_LOCALES', 'norwegian, no, no_NO, no_NO.DIS_8859-15, no_NO.ISO8859-1, no_NO.ISO8859-15, no_NO.ISO_8859-1, no_NO.ISO_8859-15, no_NO.UTF-8');

This fixes a lot for me. Is there any reason why only LC_TIME is set? I can't see the LC_ALL beeing used.

Also. I find this line to be incorrect:
@define('DATE_FORMAT_ENTRY', '%A d. %e. %B %Y');

It should read:
@define('DATE_FORMAT_ENTRY', '%A - %e. %B %Y');

--
frodeste - www.stenstrom.no
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Locale entries for Norwegian language

Post by garvinhicking »

Hi Frodeste!

Thanks for the updated locales; I've added some of them to our SVN. However watch out that you specified UTF-8 locales while the header of the Norwegian file is ISO-8859-1, so this might create trouble for you!

The reason only LC_TIME is set is because we don't make use of other LC_* features, and only showing the time relies on the locale system...

I also fixed the DATE_FORMAT_ENTRY one!

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/
frodeste
Regular
Posts: 56
Joined: Thu Aug 04, 2005 9:16 pm
Location: Tønsberg, Norway
Contact:

Re: Locale entries for Norwegian language

Post by frodeste »

Excellent.

And thank you! I am waiting for the 0.9 release now :)
Post Reply