Version: unspecified (using KDE 4.5.0) OS: Linux When trying to use the routing feature in Marble, I get the following error message when clicking ‘Get Directions’: Sorry, a problem occurred when calculating the route. Try adjusting start and destination points. When clicking ‘Show details’ in this dialogue, I get the following error message: Sorry, a problem occurred when calculating the route. Try adjusting start and destination points. This is using the Norwegian Nynorsk (‘nn’) locale. Reproducible: Always OS: Linux (i686) release 2.6.33.5-desktop586-2mnb Compiler: gcc
Sounds like OpenRouteService does not have translations for norwegian and reports an error. I'll try to reproduce it and see if I can have it fall back to english in that case. As a workaround till then, try switching Marble's language to english (Help => Switch Application Language).
Yes, switching the UI language helped (I started Marble with ‘LC_ALL=C marble’). I’m also a translator of KDE into Norwegian Nynorsk, and it would be nice if the language code(s) tried was localisable. For instance, for Norwegian Nynorsk as the UI language, the preferred language list would for example be ‘nn, no, nb, da, en-GB, en’. If ‘nn’ doesn’t work, fall back to ‘no’. If ‘no’ doesn’t work, fall back to ‘nb’, etc. (‘no’ should not really be used a language code, but some applications do use it, so it should be included.) Or the list could perhaps be taken from the locale settings, but then ’no’ would be excluded. (The same is true for the Wikipedia support in Marble, BTW, where the list would be ‘nn.wikipedia.org, no.wikipedia.org, da.wikipedia.org, en.wikipedia.org. But here the locale settings can’t be used, as some Wikipedia sites use the country code, not the language code.)
Patch is in http://reviewboard.kde.org/r/4987/ I'm using "en" as the only fallback there. A more flexible approach needs more thoughts. @Karl Ove: If you are willing to contribute translations to [1] then the fallback shouldn't be needed for Norwegian Nynorsk in the future. [1] http://wiki.openstreetmap.org/wiki/OpenRouteService/Instructions
SVN commit 1163352 by nienhueser: The language code to generate instructions for is taken from the system locale in Marble. ORS does not handle all locales and reports an error if it does not know one. Currently Marble informs the user about the problem with an error dialog. The patch changes this to catch the error early and generate a new request with english as the fallback language code. This way routes are retrieved, although not localized. RB: 4987 BUG: 247339 M +32 -10 OrsRoutingProvider.cpp M +6 -0 OrsRoutingProvider.h WebSVN link: http://websvn.kde.org/?view=rev&revision=1163352