navit
navit copied to clipboard
language setting from navit.xml not used
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
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,
~~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.
same problems here on ubuntu mate 18.04 .... release 0.5.1+git:0373aa86
Same problem with navitom-plugin-0.5.1. Solution: copy language folder from navit/share/locale/locale to navit/share/locale