Active Topics

 


Reply
Thread Tools
Posts: 542 | Thanked: 117 times | Joined on Sep 2008 @ 52 N, 6 E
#1
Happy new year all !

Until now I am unable to set the proper date / time format.
When I select English as language then I cannot set the time fiormat in 24 hour clock and cannot set in the 4 digit year format (e.g. 2009-01-01).
Then I tried to set the language to English but the region to German de_DE).
However this results in that number field do not accept the decimal point , e.g. 8.12 is considered as 8.

I found lots of configuration files ending with en_GB:

Code:
pocketpenguin:~# find / | grep en_GB
/etc/gconf/gconf.xml.defaults/%gconf-tree-en_GB.xml
find: /mnt/initfs/sys/module/nousb/parameters/: Too many open files
find: /sys/module/nousb/parameters/: Too many open files
/var/lib/gconf/apps/osso/inputmethod/hildon-im-languages/en_GB
/var/lib/gconf/apps/osso/inputmethod/hildon-im-languages/en_GB/%gconf.xml
/usr/lib/locale/en_GB
/usr/share/xkbd/en_GB.qwerty.xkbd
/usr/share/xkbd/en_GB.qwerty.tabletpc.xkbd
/usr/share/xkbd/en_GB.qwerty.tiny.xkbd
/usr/share/mediaplayer-legal-l10n/nokia-radio-directory-license_en_GB
/usr/share/operator-wizard/mcc_mapping.en_GB
/usr/share/osso-help/en_GB
/usr/share/osso-help/en_GB/addressbook.xml
/usr/share/osso-help/en_GB/filemanager.xml
/usr/share/osso-help/en_GB/SystemLock.xml
/usr/share/osso-help/en_GB/mediaplayer.xml
/usr/share/osso-help/en_GB/controlpanelappletpersonalisation.xml
/usr/share/osso-help/en_GB/controlpanelappletlocation.xml
/usr/share/osso-help/en_GB/gpxview.xml
/usr/share/osso-help/en_GB/controlpanelappletmemory.xml
/usr/share/osso-help/en_GB/imageviewer.xml
/usr/share/osso-help/en_GB/calc.xml
/usr/share/osso-help/en_GB/WesternTextInput.xml
/usr/share/osso-help/en_GB/home.xml
/usr/share/osso-help/en_GB/maps.xml
/usr/share/osso-help/en_GB/clock.xml
/usr/share/osso-help/en_GB/controlpanelappletlanguageandregionalsettings.xml
/usr/share/osso-help/en_GB/controlpanelappletsoundsettings.xml
/usr/share/osso-help/en_GB/controlpanelappletpresencesettings.xml
/usr/share/osso-help/en_GB/blocks.xml
/usr/share/osso-help/en_GB/controlpanelapplethardware.xml
/usr/share/osso-help/en_GB/sketch.xml
/usr/share/osso-help/en_GB/voip.xml
/usr/share/osso-help/en_GB/ApplicationInstaller.xml
/usr/share/osso-help/en_GB/chess.xml
/usr/share/osso-help/en_GB/marbles.xml
/usr/share/osso-help/en_GB/controlpanelapplettasknavigator.xml
/usr/share/osso-help/en_GB/connectionmanager.xml
/usr/share/osso-help/en_GB/Internetsettings.xml
/usr/share/osso-help/en_GB/RssReader.xml
/usr/share/osso-help/en_GB/chat.xml
/usr/share/osso-help/en_GB/email.xml
/usr/share/osso-help/en_GB/notes.xml
/usr/share/osso-help/en_GB/ControlPanelAppletDisplaySettings.xml
/usr/share/osso-help/en_GB/mahjong.xml
/usr/share/osso-help/en_GB/controlpanel.xml
/usr/share/osso-help/en_GB/hike.xml
/usr/share/osso-help/en_GB/backup.xml
/usr/share/osso-help/en_GB/clearuserdata.xml
/usr/share/osso-help/en_GB/controlpanelapplettextinputsettings.xml
/usr/share/osso-help/en_GB/PDFViewer.xml
/usr/share/osso-help/en_GB/restorefactorysettings.xml
/usr/share/osso-help/en_GB/LoadApplet.xml
/usr/share/osso-help/en_GB/camera.xml
/usr/share/osso-help/en_GB/N810.xml
/usr/share/osso-help/en_GB/globalsearch.xml
/usr/share/osso-help/en_GB/accounts.xml
/usr/share/osso-help/en_GB/ControlPanelAppletDateandTimeSettings.xml
/usr/share/osso-help/en_GB/maemomapper.xml
/usr/share/osso-help/en_GB/ControlPanelAppletCertificateManager.xml
/usr/share/osso-help/en_GB/dialogs.xml
/usr/share/osso-help/en_GB/browser.xml
/usr/share/keyboards/en_GB.vkb
/usr/share/locale/en_GB
/usr/share/locale/en_GB/LC_MESSAGES
/usr/share/locale/en_GB/LC_MESSAGES/osso-countries.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-display.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-cities.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-chat-ui.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-applet-tasknavigator.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-applet-accounts.mo
/usr/share/locale/en_GB/LC_MESSAGES/hildon-input-method.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-applet-device.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-statusbar-sound.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-suw.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-uri.mo
/usr/share/locale/en_GB/LC_MESSAGES/maemo-af-desktop.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-applet-datetime.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-applet-textinput.mo
/usr/share/locale/en_GB/LC_MESSAGES/gftp.mo
/usr/share/locale/en_GB/LC_MESSAGES/hildon-status-bar-usb.mo
/usr/share/locale/en_GB/LC_MESSAGES/maemo-mapper.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-applet-sound.mo
/usr/share/locale/en_GB/LC_MESSAGES/hildon-control-panel.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-filemanager.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-contact-plugin.mo
/usr/share/locale/en_GB/LC_MESSAGES/hildon-status-bar-battery.mo
/usr/share/locale/en_GB/LC_MESSAGES/camera.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-applet-bluetooth-keyboard.mo
/usr/share/locale/en_GB/LC_MESSAGES/hildon-libs.mo
/usr/share/locale/en_GB/LC_MESSAGES/wget.mo
/usr/share/locale/en_GB/LC_MESSAGES/hildon-common-strings.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-clock.mo
/usr/share/locale/en_GB/LC_MESSAGES/navicore.mo
/usr/share/locale/en_GB/LC_MESSAGES/operator-wizard.mo
/usr/share/locale/en_GB/LC_MESSAGES/transmission.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-notes.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-rss-feed-reader.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-voip-ui.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-applet-memory.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-calculator-ui.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-applet-screencalibration.mo
/usr/share/locale/en_GB/LC_MESSAGES/ke-recv.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-applet-presence.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-applet-certman.mo
/usr/share/locale/en_GB/LC_MESSAGES/hildon-task-navigator-bookmarks.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-connectivity-ui.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-backup.mo
/usr/share/locale/en_GB/LC_MESSAGES/vncviewer.mo
/usr/share/locale/en_GB/LC_MESSAGES/libapt-pkg4.4.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-applet-languageregional.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-statusbar-presence.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-system-lock.mo
/usr/share/locale/en_GB/LC_MESSAGES/apt.mo
/usr/share/locale/en_GB/LC_MESSAGES/modest.mo
/usr/share/locale/en_GB/LC_MESSAGES/hildon-fm.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-sketch.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-browser-ui.mo
/usr/share/locale/en_GB/LC_MESSAGES/gpxview.mo
/usr/share/locale/en_GB/LC_MESSAGES/gtk20.mo
/usr/share/locale/en_GB/LC_MESSAGES/hildon-application-manager.mo
/usr/share/locale/en_GB/LC_MESSAGES/hildon-home-image-viewer.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-pdf-viewer.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-powerup-shutdown.mo
/usr/share/locale/en_GB/LC_MESSAGES/libapt-inst1.1.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-help.mo
/usr/share/locale/en_GB/LC_MESSAGES/mediaplayer.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-games.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-location-ui.mo
/usr/share/locale/en_GB/LC_MESSAGES/vte.mo
/usr/share/locale/en_GB/LC_MESSAGES/hildon-control-panel-personalisation.mo
/usr/share/locale/en_GB/LC_MESSAGES/tutorial-home.mo
/usr/share/locale/en_GB/LC_MESSAGES/rhapsody-installer.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-global-search.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-addressbook.mo
/usr/share/locale/en_GB/LC_MESSAGES/osso-imageviewer.mo



pocketpenguin:~# find / | grep posix-locale
find: /mnt/initfs/sys/module/nousb/parameters/: Too many open files
find: /sys/module/nousb/parameters/: Too many open files
/var/lib/dpkg/info/posix-locales.md5sums
/var/lib/dpkg/info/posix-locales.list
/root/posix-locale1
/root/posix-locale
I tried to modify /root/posic-locale but with no avail.
Does anyone know which file contains the definition where I can force 24 hour format and ISO 8660 date format (i.e. 2009-01-01). ?
__________________
Nokia N810 FW version 5.2008.43-7
iPad 2 (iOS 4.3.2) Macbook Pro (10.6.6)
Nokia 5800 phone FW 62.0.0125
 
Rassilon7's Avatar
Posts: 220 | Thanked: 41 times | Joined on Oct 2008
#2
To get a 24 hour clock I had to install Large Status Bar clock.
 
Posts: 6 | Thanked: 4 times | Joined on Jan 2009 @ Nuremberg
#3
For 24h clock and european date (2008-12-24)

vi /etc/osso-af-init/locale
export LC_TIME=sv_SE

Then restart the device.
 

The Following 3 Users Say Thank You to gladiac For This Useful Post:
Posts: 31 | Thanked: 20 times | Joined on Nov 2008 @ Ohio
#4
Originally Posted by gladiac View Post
For 24h clock and european date (2008-12-24)

vi /etc/osso-af-init/locale
export LC_TIME=sv_SE

Then restart the device.
Thanks for explaining the what. Are you able to describe the why as well? Perhaps explain some of the options available in customizing this part of the locale settings?
 
Posts: 6 | Thanked: 4 times | Joined on Jan 2009 @ Nuremberg
#5
'man 1 locale' will explain all available settings. You can find the manpage online at:

http://www.linuxmanpages.com/man1/locale.1.php
 

The Following User Says Thank You to gladiac For This Useful Post:
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#6
If you modify http://repository.maemo.org/pool/dia...posix-locales/ , you could probably get the desired effect...
 
Posts: 542 | Thanked: 117 times | Joined on Sep 2008 @ 52 N, 6 E
#7
Originally Posted by gladiac View Post
For 24h clock and european date (2008-12-24)

vi /etc/osso-af-init/locale
export LC_TIME=sv_SE

Then restart the device.
This did work ! The standard file manager displays dates and times correctly as well.
But mClock still displays am and pm, despite the python script uses 'locale' values with strftime("%X").
Maybe a separate setting in python is required ?
__________________
Nokia N810 FW version 5.2008.43-7
iPad 2 (iOS 4.3.2) Macbook Pro (10.6.6)
Nokia 5800 phone FW 62.0.0125
 
Posts: 6 | Thanked: 4 times | Joined on Jan 2009 @ Nuremberg
#8
Report a bug against mClock. Could be a pyton bug too.
 
Posts: 422 | Thanked: 244 times | Joined on Feb 2008
#9
Changing the locale to Sweden would then result in all the month names and day names appearing in Swedish wouldn't it? At least this is what happened when I tried the norway locale.
 
Posts: 93 | Thanked: 52 times | Joined on Oct 2008 @ Victoria BC Canada
#10
Just a note for anyone else looking to do this:

Setting:
export LC_TIME=sv_SE
does set the system to yyyy-mm-dd but it also, as a side effect (well, really it's doing what it's suppose to), sets the weekday and month names to something other than English, probably Swedish.

Not that there's anything wrong with learning a bit of Swedish, but it's nice to know that before starting.

David...

P.S. Anyone know of a locale that both speaks english AND does dates the "right way" aka yyyy-mm-dd?
 
Reply


 
Forum Jump


All times are GMT. The time now is 09:34.