Monday, March 23, 2009

Add a city to clock in Nokia N810

I found Nokia N810 clock applet doesn't show my city. sucks.
I'll try this:

Adding a new timezone to osso-clock

The set of cities included in the Nokia N800 does not include any city in my home timezone (GMT+9:30, Australian Central Standard Time).

Luckily, I’ve worked out how to add one (the following is an example for my home city of Adelaide):

  • Edit /usr/share/osso-clock/wdb-parsed.txt and add the following line:
    • Adelaide|AU|Australia|Australia/Adelaide|1280|650|en_AU
      • (The 1280 and 650 numbers are pixel coordinates on the osso-clock map of the world)

You should be able to use the same method to add any other city that already exists in /usr/share/zoneinfo.


Whitby's instructions are missing a step. You need to edit osso-cities.mo in /usr/share/local/en_GB/LC_MESSAGES/ (adjust for your locale) to add the city. You can do it without using poEdit, but you still need msgunfmt and msgfmt. I had them on my Linux box, but I don't know if they are available for Windows.

1. Copy osso-cities.mo from the tablet to a Linux box
2. Run "msgunfmt osso-cities.mo -o osso-cities.po"
3. Edit osso-cities.po with any text editor. Add the following lines, with blank lines separating the from other pairs:

msgid "osso_db_city_toronto"
msgstr "Toronto"

4. Run "msgfmt osso-cities.po -o osso-cities.mo
5. Copy osso-cities.mo back to your tablet.

No comments:

Post a Comment