View Single Post
  #1  
Old 2008-06-05, 14:06
tbrminsanity's Avatar
tbrminsanity tbrminsanity is offline
 
Join Date: May 2008
Location: Regina, Saskatchewan, Canada
Posts: 28
Thanks!: 3
Thanked 4 Times in 2 Posts
Send a message via Yahoo to tbrminsanity
Default How To: Add your home town to Clock

This information is taken from the following source.

1. Get root access (I use the ssh approach (ssh root@localhost))
2. cd /usr/share/osso-clock/
3. nano wdb-parsed.txt (you can use vi if you want but I've installed and prefer nano over vi)
4. Here is my home city info:
  • Regina|CA|Canada|America/Regina|285|262|en_CA
  • (City name)|(Country initials)|(Country)|(Time zone)|(x co-ordinate on clock image)|(y co-ordinate on clock image)|(Default language)
5. Save and your done

Now you will need to add your city's name into OS2008. This info comes from the following post.

1. cd /usr/share/local/(enter language here mine is en_CA)/LC_MESSAGES/
2. Copy osso-cities.mo from this location to a Linux box
* If the file does not exist then grab the file from another language (I had to grab en_US)
3. msgunfmt osso-cities.mo -o osso-cities.po
4. nano osso-cities.po (or vi osso-cities.po if you prefer vi over nano)
5. Add the following 4 lines (the blank spaces are important!)

msgid "osso_db_city_regina"
msgstr "Regina"

6. msgfmt osso-cities.po -o osso-cities.mo
7. Copy osso-cities.mo back to your PDA and overwrite the old file.

I hope this helps people out.

Last edited by tbrminsanity; 2008-06-05 at 20:44.
Reply With Quote
The Following 2 Users Say Thank You to tbrminsanity For This Useful Post: