<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">Le 16/10/2017 à 11:11, Dirk Hohndel a
      écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:A619C3CD-9AF8-40CA-BD02-DDA804673960@hohndel.org">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <br class="">
      <div>
        <blockquote type="cite" class="">
          <div class="">On Oct 16, 2017, at 4:39 AM, Stefan Fuchs <<a
              href="mailto:sfuchs@gmx.de" class=""
              moz-do-not-send="true">sfuchs@gmx.de</a>> wrote:</div>
          <div class="">
            <blockquote type="cite"
cite="mid:CAGDbWi-ouk7TTpdYNuT6jXwtN52T+gFETCoL0BOjinbKiX4cdw@mail.gmail.com"
              style="font-family: Helvetica; font-size: 12px;
              font-style: normal; font-variant-caps: normal;
              font-weight: normal; letter-spacing: normal; orphans:
              auto; text-align: start; text-indent: 0px; text-transform:
              none; white-space: normal; widows: auto; word-spacing:
              0px; -webkit-text-size-adjust: auto;
              -webkit-text-stroke-width: 0px; background-color: rgb(255,
              255, 255);" class="">
              <blockquote type="cite" class="">
                <pre class="" wrap="">During testing I also recognized <a href="http://s.th/" class="" moz-do-not-send="true">s.th</a>. 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.
</pre>
              </blockquote>
              <pre class="" wrap="">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.
</pre>
            </blockquote>
            <span style="font-family: Helvetica; font-size: 12px;
              font-style: normal; font-variant-caps: normal;
              font-weight: normal; letter-spacing: normal; text-align:
              start; text-indent: 0px; text-transform: none;
              white-space: normal; word-spacing: 0px;
              -webkit-text-stroke-width: 0px; background-color: rgb(255,
              255, 255); float: none; display: inline !important;"
              class="">I currently try to fix this. Maybe the syntax of
              the provider changed:</span><br style="font-family:
              Helvetica; font-size: 12px; font-style: normal;
              font-variant-caps: normal; font-weight: normal;
              letter-spacing: normal; text-align: start; text-indent:
              0px; text-transform: none; white-space: normal;
              word-spacing: 0px; -webkit-text-stroke-width: 0px;
              background-color: rgb(255, 255, 255);" class="">
            <span style="background-color: rgb(255, 255, 255);" class=""><a
href="http://www.geonames.org/export/JSON-webservices.html" class=""
                moz-do-not-send="true">http://www.geonames.org/export/JSON-webservices.html</a></span><br
              style="font-family: Helvetica; font-size: 12px;
              font-style: normal; font-variant-caps: normal;
              font-weight: normal; letter-spacing: normal; text-align:
              start; text-indent: 0px; text-transform: none;
              white-space: normal; word-spacing: 0px;
              -webkit-text-stroke-width: 0px; background-color: rgb(255,
              255, 255);" class="">
          </div>
        </blockquote>
        <div><br class="">
        </div>
        :-(</div>
      <div><br class="">
      </div>
      <div>Breaking APIs of web services... not nice</div>
      <div><br class="">
        <blockquote type="cite" class="">
          <div class=""><span style="font-family: Helvetica; font-size:
              12px; font-style: normal; font-variant-caps: normal;
              font-weight: normal; letter-spacing: normal; text-align:
              start; text-indent: 0px; text-transform: none;
              white-space: normal; word-spacing: 0px;
              -webkit-text-stroke-width: 0px; background-color: rgb(255,
              255, 255); float: none; display: inline !important;"
              class="">It seems to be now "lang=de" what we need and
              currently we pass "language=de_DE".</span><br
              style="font-family: Helvetica; font-size: 12px;
              font-style: normal; font-variant-caps: normal;
              font-weight: normal; letter-spacing: normal; text-align:
              start; text-indent: 0px; text-transform: none;
              white-space: normal; word-spacing: 0px;
              -webkit-text-stroke-width: 0px; background-color: rgb(255,
              255, 255);" class="">
            <span style="font-family: Helvetica; font-size: 12px;
              font-style: normal; font-variant-caps: normal;
              font-weight: normal; letter-spacing: normal; text-align:
              start; text-indent: 0px; text-transform: none;
              white-space: normal; word-spacing: 0px;
              -webkit-text-stroke-width: 0px; background-color: rgb(255,
              255, 255); float: none; display: inline !important;"
              class="">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?</span><br
              style="font-family: Helvetica; font-size: 12px;
              font-style: normal; font-variant-caps: normal;
              font-weight: normal; letter-spacing: normal; text-align:
              start; text-indent: 0px; text-transform: none;
              white-space: normal; word-spacing: 0px;
              -webkit-text-stroke-width: 0px; background-color: rgb(255,
              255, 255);" class="">
          </div>
        </blockquote>
        <div><br class="">
        </div>
        Yes, the first two letters are the language, then you get a dash
        or underscore, then the country.</div>
      <div>Some languages do not have the country modifier at all.</div>
    </blockquote>
    <br>
    Be careful, it seems that some languages are 3 letters: nds_DE (=low
    german),  mai (=Maithili), maybe more?<br>
    <br>
    <br>
    Guillaume<br>
    <br>
    <br>
    <blockquote type="cite"
      cite="mid:A619C3CD-9AF8-40CA-BD02-DDA804673960@hohndel.org">
      <div>
        <blockquote type="cite" class="">
          <div class="">
            <blockquote type="cite"
cite="mid:CAGDbWi-ouk7TTpdYNuT6jXwtN52T+gFETCoL0BOjinbKiX4cdw@mail.gmail.com"
              style="font-family: Helvetica; font-size: 12px;
              font-style: normal; font-variant-caps: normal;
              font-weight: normal; letter-spacing: normal; orphans:
              auto; text-align: start; text-indent: 0px; text-transform:
              none; white-space: normal; widows: auto; word-spacing:
              0px; -webkit-text-size-adjust: auto;
              -webkit-text-stroke-width: 0px; background-color: rgb(255,
              255, 255);" class="">
              <blockquote type="cite" class="">
                <pre class="" wrap="">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.

</pre>
              </blockquote>
              <pre class="" wrap="">the reverse-lookup button being grayed out for new dive sites, is also
a separate issue.
i can confirm that.
</pre>
            </blockquote>
            <span style="font-family: Helvetica; font-size: 12px;
              font-style: normal; font-variant-caps: normal;
              font-weight: normal; letter-spacing: normal; text-align:
              start; text-indent: 0px; text-transform: none;
              white-space: normal; word-spacing: 0px;
              -webkit-text-stroke-width: 0px; background-color: rgb(255,
              255, 255); float: none; display: inline !important;"
              class="">I think I easily fixed this. Will send a PR...</span><br
              style="font-family: Helvetica; font-size: 12px;
              font-style: normal; font-variant-caps: normal;
              font-weight: normal; letter-spacing: normal; text-align:
              start; text-indent: 0px; text-transform: none;
              white-space: normal; word-spacing: 0px;
              -webkit-text-stroke-width: 0px; background-color: rgb(255,
              255, 255);" class="">
          </div>
        </blockquote>
      </div>
      <br class="">
      <div class=""><br class="">
      </div>
      <div class="">Thanks</div>
      <div class=""><br class="">
      </div>
      <div class="">/D</div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
subsurface mailing list
<a class="moz-txt-link-abbreviated" href="mailto:subsurface@subsurface-divelog.org">subsurface@subsurface-divelog.org</a>
<a class="moz-txt-link-freetext" href="http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface">http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>