fadine / osmtracker-android

Automatically exported from code.google.com/p/osmtracker-android
GNU General Public License v3.0
0 stars 0 forks source link

Metric speed limits only available in en_US #246

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
As an Australian, I typically run my phone with the language set to en_UK, as 
this means my colourful language is spelled correctly. :)

Unfortunately, osmtracker forces imperial measures (for speed restrictions) 
when using en_UK.  Metric measurements are only available with en_US.

Both UK and US use imperial measures on roads.  However other Commonwealth 
countries (such as AU, CA and NZ) use metric measurements on roads, and the 
Queen's English (en_UK).

What osmtracker should do instead is have an option to chose between different 
common speed limit groups that's not based on the phone's language, or have a 
non-XML solution to adding different speed restrictions.

For example, in Australia speed limits are commonly 40, 50, 60, 80, 100, 110 
km/h.

What version of the product are you using (See "About" screen)?
0.6.6 (Google Play)

Make/model of your device, and Android version?
Android 4.3

Original issue reported on code.google.com by micol...@gmail.com on 22 Jun 2014 at 4:27

GoogleCodeExporter commented 9 years ago
Hey, I live in Australia too, mate :)

I think the problem you describe is independent of the locale, because the 
speed limits are set in the layout file, which can be customized (See 
CustomButtonsLayouts) and is not tied to the locale as far as I know.

OSMTracker ships with a default layout for the most common limitations, but it 
can't suit all countries, that's why the customisation is possible.

Having advanced options for the speed limit groups would be nice, but that 
would make speed limits a special "case" in the button management which is not 
ideal. I'm not ready to make that effort, but I'll gladly take a patch :)

Original comment by nicolas@guillaumin.me on 23 Jun 2014 at 9:03

GoogleCodeExporter commented 9 years ago
Ah I see, very well then.

I was hoping for a simple non-XML solution, seeing as the en_US layout is 
nearly there with the exception of the European speed limit ranges, and that 
the en_US layout itself isn't appropriate for those in the US.

Is it possible to bundle additional XML layouts with the application, or is 
this only supplied from the SD card?

Original comment by micol...@gmail.com on 23 Jun 2014 at 12:43

GoogleCodeExporter commented 9 years ago
That is, I give you XML files and they can be included in the mainline 
distribution in future versions?

Original comment by micol...@gmail.com on 23 Jun 2014 at 12:44

GoogleCodeExporter commented 9 years ago
Meh I was wrong about the locale (it's been a while since I've developed the 
app actually), layouts can indeed be configured differently depending on the 
locale.

List of existing locale-specific layouts is there (folders named 
xml-something/): 
https://github.com/nguillaumin/osmtracker-android/tree/master/res

There's one for en_GB but not en_US or en_AU, so happy to include a new one if 
you can provide it.

Original comment by nicolas@guillaumin.me on 24 Jun 2014 at 8:57