<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Oct 16, 2017, at 5:19 AM, Guillaume Gardet <<a href="mailto:guillaume.gardet@free.fr" class="">guillaume.gardet@free.fr</a>> wrote:</div><div class=""><div text="#000000" bgcolor="#FFFFFF" class=""><blockquote type="cite" cite="mid:A619C3CD-9AF8-40CA-BD02-DDA804673960@hohndel.org" class=""><div 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 class=""><br class="">
        </div>
        Yes, the first two letters are the language, then you get a dash
        or underscore, then the country.</div>
      <div class="">Some languages do not have the country modifier at all.</div>
    </blockquote>
    <br class="">
    Be careful, it seems that some languages are 3 letters: nds_DE (=low
    german),  mai (=Maithili), maybe more?<br class=""></div></div></blockquote><br class=""></div><div>I have never seen that. I thought that all languages were supposed to be two letter.</div><div>We'd have to check if we do this correctly in Subsurface already... admittedly, we of course support neither of these languages, but we shouldn't break things, either.</div><div><br class=""></div><div>So I guess you have to search for a '-' or '_' and grab what's in front of that.</div><div><br class=""></div><div>/D</div><br class=""></body></html>