![]() |
problem adding new city to clock list
Hi all. I found some instructions for adding a city (and a
timezone) to the clock. (http://www.rwhitby.net/blog/n800/add...sso-clock.html) I have edited the /usr/share/osso-clock/wdb-parsed.txt file to add a city and it *is* added. Unfortunately, when I add this line to the file: Toronto|CA|Canada|Canada/Eastern|402|296|en_CA the city name appears as osso_db_city_toronto, Canada Anyone know what's going wrong? (I did not follow all of Whitby's instructions since I don't want to add a timezone and can't figure out how to install poedit anyway :) ) |
Re: problem adding new city to clock list
Quote:
|
Re: problem adding new city to clock list
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. |
Re: problem adding new city to clock list
thanks v. much - that did it perfectly ...
|
Re: problem adding new city to clock list
this one i just dont understand , couldsome post detailed instructions on how to add Indianapolis , Indiana in the US? Or , preferable the small town i live in just north named Anderson , IN .... as this is what id rather have.
|
Re: problem adding new city to clock list
While the Maemo time zones are abridged and don't reflect the full set of IANA data, they still are a IANA excerpt, and not some invention of Nokia. And the cities of the IANA timezone names are not arbitrary home towns, but the time zone reference location. As IANA time zones attempt to cover all known historical defined time zones (i.e. anything past local solar time) there are many more locations in the IANA database than current time zones, and the US in particular, where individual counties and even towns have been and still are very inventive regarding their local time, accounts for quite a mess.
But you cannot simply add any place in there, or you will fail whenever externally referencing dates and times - whatever belongs there has to be registered with the IANA first, and for that, it must have had a individual time zone at least at some time in the past. Adding Indianapolis would be ok, being a IANA location, and Indiana counties, being one of the worlds worst sets of time zone offenders, account for a dozen or two different timezones, but Anderson in particular never had its own time... |
Re: problem adding new city to clock list
Quote:
Hi, I have limited skill in linux. Would someone tell me where I would find msgfmt and msgunfmt. Although I have an ubuntu 7.10 box running, but I did not really set it up(it was a virtual box made by jars). thanks |
Re: problem adding new city to clock list
I cannot find Arizona in there, and since they do not observe daylight savings, I cannot get the right clock!
aha, I installed gettext-devel on my suse box, was able to copy over osso-cities.mo, unpack, edit, repack, and copy back. damn, it didn't work. sigh. --edit-- ah, phoenix did appear in the list, but as osso_db_city_phoenix or somesuch. |
Re: problem adding new city to clock list
1 Attachment(s)
I think you need to add the cities in alphabetical order. Here are the files I changed to add Phoenix, Arizona.
|
Re: problem adding new city to clock list
Hi Scott,
That's awesome, I happen to be in Tempe myself, and was just about to do this same mod =) Thanks for saving me work! |
Re: problem adding new city to clock list
speculatrix,
Are you saying that one need to install the "gettext-devel" package to get the msgfmt and msgunfmt? |
Re: problem adding new city to clock list
Quote:
|
Re: problem adding new city to clock list
Quote:
unfortunately, I did something wrong previously when I was playing and now the clock dies with the error "Internal error, Application 'Clock' closed. sigh. I will put everything back the way it was and start again. |
Re: problem adding new city to clock list
All,
After installing 0.16.1-2ubuntu3 version of gettext and gettext-base using the Synaptic Package Manager(I have ubuntu 7.10); I got the needed tools to work on the .mo file. I can now select my home city from the N800. thank you all your help. Cheers |
Re: problem adding new city to clock list
Quote:
|
Re: problem adding new city to clock list
Quote:
:mad: |
Re: problem adding new city to clock list
Why hasn't anyone developed a standalone application that will allow novice users to get the full list of cities to select from?
You would think that this would be a desirable application, right? After all, my Nokia 9300 phone has a feature to add cities to their World Clock application--it's deceptively simple: enter name, time relative to GMT and latitude/longitude (this puts a dot on the world map!). |
Re: problem adding new city to clock list
I never managed to find out what I b0rked, I'v upgraded to diablo and installed the files (after backing up the originals!) kindly provided by Scott Bertin, and am very pleased to have phoenix on the map!
Thanks again |
Re: problem adding new city to clock list
Omg this is great! Being in Toronto it just PAINED me to have to pick Ottawa as the closest city.
|
Re: problem adding new city to clock list
You know, the city picking isn't for selecting your nearest city, it's just a relatively reliable (but otherwise irrelevant) way of picking a valid timezone for yourself. I wish there was an option to use the proper city-independent method of selecting the timezone directly, like I can on my desktop (for me that would be MET, Mean European Time) (and then one wouldn't have to even see that more-or-less irrelevant city name).
|
All times are GMT. The time now is 22:15. |
vBulletin® Version 3.8.8