This object is in archive! 
defaultlang="ru" in theme cause crash
Solved
Нello,
I'm trying to make my custom theme for Locus and OAM maps. If I set the defaultlang="en" variable in theme.xml, then everything is OK (but labels for routes are displayed incorrectly and choosing the Russian language in the Locus settings does not help). If I set the defaultlang="ru" variable, when choosing my theme, locus 3/4 immediately crash. Can you fix this bug in Locus? Or maybe you can tell me how I can change the "default language" for <pathText k="name" ...> ?
Thank you.
Hello Andrey,
may you provide a theme-in-progress that cause a crash? It is best for me to simulate and fix this issue, thanks.
Jiří M. aka Menion
Hello Andrey,
may you provide a theme-in-progress that cause a crash? It is best for me to simulate and fix this issue, thanks.
Jiří M. aka Menion
Hello Menion,
I found a bug in my theme.
Locus crash occurs if you set:
<stylemenu id="active_RT5" defaultvalue="OSM_Summer" defaultlang="en">
but in 'layer id="OSM_Summer"' forget to specify lang="ru" :)
<layer id="OSM_Summer" visible="true">
<name lang="de" value="OSM Sommer"/>
<name lang="en" value="OSM Summer"/>
...
Hello Menion,
I found a bug in my theme.
Locus crash occurs if you set:
<stylemenu id="active_RT5" defaultvalue="OSM_Summer" defaultlang="en">
but in 'layer id="OSM_Summer"' forget to specify lang="ru" :)
<layer id="OSM_Summer" visible="true">
<name lang="de" value="OSM Sommer"/>
<name lang="en" value="OSM Summer"/>
...
my theme
my theme
Hello,
thanks. It is because you specified "ru" as default language and it have to exists in all "layer" tags. Anyway I've changed it a little so app will display "layer id" value if even default does not exists. Better then unexpected crash.
Menion
Hello,
thanks. It is because you specified "ru" as default language and it have to exists in all "layer" tags. Anyway I've changed it a little so app will display "layer id" value if even default does not exists. Better then unexpected crash.
Menion
I also found out that in OAM maps "local" language is not the default language for the country and not the language that is specified in the Locus Map settings. And only the 'Details/Map language' selection for the map "Russian" shows all k="name" correctly.
That is, quite often not "Название" (in Cyrillic) is shown, but "en: Nazvanie".
I also found out that in OAM maps "local" language is not the default language for the country and not the language that is specified in the Locus Map settings. And only the 'Details/Map language' selection for the map "Russian" shows all k="name" correctly.
That is, quite often not "Название" (in Cyrillic) is shown, but "en: Nazvanie".
Replies have been locked on this page!