This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

GPSMid, changing language of Israel map?

0

Hello,

i have installed GPSMid with a map of Israel on my phone (Nokia N78). As far as i don't speak (and can't even read much) Hebrew, i would like to change the language of the map to English, like here:

http://toolserver.org/~osm/locale/en.html?zoom=9&lat=31.87056&lon=34.9942&layers=BT

In the maps XML source, the english tags are existent, but by default, GPSMid only shows Hebrew tags.

How can i switch to english tags?

Thank you, barny

asked 26 Sep '11, 21:06

barny2507's gravatar image

barny2507
6112
accept rate: 0%


One Answer:

2

To change the language, you need to use OSM2GpsMid to build a GpsMid midlet yourself, using a customised style file. See the page on the GpsMid wiki for Style-File Documentation.

Basically, you can get a copy of the default GpsMid style, then open it in a text editor. The name for each object is set with the namekey tag. In the standard style, this will be something like <namekey tag = "name"/>, which means it will use the name tag from the OSM data, ie the default/local name. To change this to use English language names, you will have to change it to <namekey tag = "name:en"/>. So you can use the find and replace in your text editor to change all of these. You may also want to specify something for the namefallback tag, so it will just display the default name if the object isn't tagged with an English language name.

You then you have to modify your OSM2GpsMid properties file to tell it to use your modified style file. See Properties file. Basically add line that says something like style-file = mystyle.xml. Or just use the OSM2GpsMid GUI, and choose the option for "Load custom style file"

Then run OSM2GpsMid, using the GUI if you want, see instructions at Getting started. And use it to produce your midlet, which you can then load onto your phone. And you should have a map with English language names.

answered 26 Sep '11, 23:33

Vclaw's gravatar image

Vclaw
9.2k895141
accept rate: 22%

Source code available on GitHub .