maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N810 (https://talk.maemo.org/forumdisplay.php?f=28)
-   -   problem adding new city to clock list (https://talk.maemo.org/showthread.php?t=14147)

albright 2007-12-31 14:26

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 :) )

Karel Jansens 2007-12-31 14:59

Re: problem adding new city to clock list
 
Quote:

Originally Posted by albright (Post 118359)
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 :) )

Maybe Toronto has been GPLed? :D

Scott Bertin 2008-01-01 23:34

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.

albright 2008-01-02 00:11

Re: problem adding new city to clock list
 
thanks v. much - that did it perfectly ...

munky261 2008-01-02 08:08

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.

sevo 2008-01-02 10:34

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...

cheve 2008-04-14 02:20

Re: problem adding new city to clock list
 
Quote:

Originally Posted by Scott Bertin (Post 119036)
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.


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

speculatrix 2008-04-14 21:43

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.

Scott Bertin 2008-04-15 01:55

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.

Redshift 2008-04-15 02:09

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!

cheve 2008-04-15 02:41

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?

speculatrix 2008-04-15 06:56

Re: problem adding new city to clock list
 
Quote:

Originally Posted by cheve (Post 169934)
speculatrix,

Are you saying that one need to install the "gettext-devel" package to get the msgfmt and msgunfmt?

yup, for me running suse, it was in that package.

speculatrix 2008-04-15 07:13

Re: problem adding new city to clock list
 
Quote:

Originally Posted by Scott Bertin (Post 169913)
I think you need to add the cities in alphabetical order. Here are the files I changed to add Phoenix, Arizona.

hey, thanks!

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.

cheve 2008-04-17 00:34

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

TheRealBubba 2008-04-30 04:35

Re: problem adding new city to clock list
 
Quote:

Originally Posted by Scott Bertin (Post 169913)
I think you need to add the cities in alphabetical order. Here are the files I changed to add Phoenix, Arizona.

So I happen to be visiting Arizona just now, and microb crashes when I try to download the file above. This is pretty silly. How hard would it be for nokia to ship with at least one city for each time zone (like the Australian example above, and Arizona's daylight savingless zone in this case)?

speculatrix 2008-04-30 22:22

Re: problem adding new city to clock list
 
Quote:

Originally Posted by speculatrix (Post 170011)
hey, thanks!

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.

after a few attempts, I've not managed to fix my system and the clock won't start; I can't see how to run the clock application at the command line and find out why it dies.
:mad:

rdcinhou 2008-06-27 22:16

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!).

speculatrix 2008-07-30 12:42

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

ootpek 2008-07-31 13:21

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.

TA-t3 2008-07-31 13:29

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