> On Oct 16, 2017, at 4:39 AM, Stefan Fuchs <[email protected]> wrote:
>>> During testing I also recognized s.th <http://s.th/>. else around this
>>> "Reverse GPS lookup"
>>> to retrieve the country name from the GPS position:
>>> Windows:
>>> Function works in general but returns the country name in English language
>>> (while I run Subsurface in German).
>>> I'm really surprised because I thought this already worked for me returning
>>> German country names.
>> that's a separate issue.
>>
>> core/divesitehelpers.cpp
>> ReverseGeoLookupThread::run()
>>
>> has supported languages for a while but i have only seen this in english
>> if you have started getting the lack of translations just now it could
>> be an issue with the 3rd party providers.
> I currently try to fix this. Maybe the syntax of the provider changed:
> http://www.geonames.org/export/JSON-webservices.html
> <http://www.geonames.org/export/JSON-webservices.html>
:-(
Breaking APIs of web services... not nice
> It seems to be now "lang=de" what we need and currently we pass
> "language=de_DE".
> Changing the "language" to "lang" is a no-brainer but how can I teach the
> uiLanguage() function to return the short language string? Or shall I simply
> truncate it?
Yes, the first two letters are the language, then you get a dash or underscore,
then the country.
Some languages do not have the country modifier at all.
>>> Linux:
>>> This function is still grayed out after moving the marker. This may be
>>> linked to the general issue of moving the marker. If I copy&paste
>>> coordinates then the button gets active and returns again English names like
>>> under Windows.
>>>
>> the reverse-lookup button being grayed out for new dive sites, is also
>> a separate issue.
>> i can confirm that.
> I think I easily fixed this. Will send a PR...
Thanks
/D
_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface