maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   How can I set a proper date format / locale ? (https://talk.maemo.org/showthread.php?t=25275)

skatebiker 2008-11-30 16:27

How can I set a proper date format / locale ?
 
I tried to set the date format to YYYY-MM-DD and time to HH-MM but without success, it is locked to country and language. Even en_GB uses that American AM/PM format. Is there a way to add a new locale which uses ISO-8601 format ?

theonelaw 2010-10-28 04:33

Re: How can I set a proper date format / locale ?
 
Quote:

Originally Posted by skatebiker (Post 245677)
I tried to set the date format to YYYY-MM-DD and time to HH-MM but without success, it is locked to country and language. Even en_GB uses that American AM/PM format. Is there a way to add a new locale which uses ISO-8601 format ?

This is an ancient bug in the proprietary bits Nokia deems
to be so super-secretly sensitive they refuse to touch it
or let anyone else in on what kinds of twisted surprises they hide there:
Bugzilla Bug 6363
Date format should be defined by Regional Settings, not Device Language
:(
Defined as wontfix which actually means they cannot fix it or
have some clandestine reason involving government-domination
and ultimate integration into the global Borg of all nokia users.
Even daring to mention ISO-8601 earns you a team of burly men
stalking you wearing ill-tailored suits with mirrored sunglasses and earbuds.
You have been warned...:eek:

Anyway,
Now we are past PR 1.3 it may be safe to play with locales. I hope.

From a different thread with a different topic
Re: Borked Again - Freed Up Rootfs Space - Now N900 in Foreign Language - Help Please!
I found this:

Quote:

Originally Posted by zvogt (Post 816659)
I too had deleted my /usr/lib/locale/locale-archive file and had the same symptom as many others have mentioned in this forum. The difference is that I was able to regenerate the file without having to flash the device, and the benefit is that the newly regenerated file is only 1.2 MB instead of 28.4 MB.

1) create /etc/locale.gen, the contents of the file should look something like:

en_US.UTF-8 UTF-8

2) run the following command as root:

locale-gen

3) You should now see a new /usr/lib/locale/locale-archive that is much smaller than the one that got deleted

4) I also ran the following command as root, although I do not know if it is necessary or not:

setlocale

5) reboot

6) enjoy

It sounds like this even frees some more space.

I will be trying this later on this evening when I have some spare time
and some liquid courage.:D


All times are GMT. The time now is 08:03.

vBulletin® Version 3.8.8