navit icon indicating copy to clipboard operation
navit copied to clipboard

language setting from navit.xml not used

Open urfin78 opened this issue 6 years ago • 4 comments

The locale of my android device (5.1.1) is set to "en_US". If I set the language parameter in the navit.xml config option like:

<config xmlns:xi="http://www.w3.org/2001/XInclude" language="de_DE">

it changes the LANG variable (under tools -> locale) to de_DE but the menu options and the navigation announcements are still in english. But It seems that the country code is properly recognized, as the town search starts in the selected country.

Maybe related to this: https://trac.navit-project.org/ticket/1094

urfin78 avatar May 03 '18 17:05 urfin78

Hi, Android takes locale as set on the device, https://github.com/navit-gps/navit/blob/trunk/navit/android/src/org/navitproject/navit/Navit.java#L317

There are no plans to make it read it from xml on Android, now it is coherent with the device and the installed TTS engine.

regards,

jandegr avatar May 03 '18 17:05 jandegr

~~Confirmed that the behavior is the same under Linux : the default country is overriden, but not the UI locale.~~

I messed up my test. It does work correctly under Linux.

pgrandin avatar May 03 '18 18:05 pgrandin

same problems here on ubuntu mate 18.04 .... release 0.5.1+git:0373aa86

harpmaster avatar May 13 '18 07:05 harpmaster

Same problem with navitom-plugin-0.5.1. Solution: copy language folder from navit/share/locale/locale to navit/share/locale

digitalpix58 avatar Jun 23 '18 21:06 digitalpix58