<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi,</p>
    <p>how can I use the LocaleMgr to get a translated book
      abbreviation?<br>
      <br>
      For some reason this code did not work for me:</p>
    <div style="color: #d4d4d4;background-color: #1e1e1e;font-family: 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback';font-weight: normal;font-size: 14px;line-height: 19px;white-space: pre;"><div><span style="color: #d4d4d4;">        </span><span style="color: #4ec9b0;">sword</span><span style="color: #d4d4d4;">::SWLocale* locale = </span><span style="color: #569cd6;">this</span><span style="color: #d4d4d4;">-&gt;</span><span style="color: #9cdcfe;">_localeMgr</span><span style="color: #d4d4d4;">-&gt;</span><span style="color: #dcdcaa;">getLocale</span><span style="color: #d4d4d4;">(</span><span style="color: #9cdcfe;">localeCode</span><span style="color: #d4d4d4;">);</span></div><div><span style="color: #d4d4d4;">        </span><span style="color: #4ec9b0;">std</span><span style="color: #d4d4d4;">::string translatedAbbreviation = </span><span style="color: #4ec9b0;">std</span><span style="color: #d4d4d4;">::</span><span style="color: #dcdcaa;">string</span><span style="color: #d4d4d4;">(</span><span style="color: #9cdcfe;">locale</span><span style="color: #d4d4d4;">-&gt;</span><span style="color: #dcdcaa;">translate</span><span style="color: #d4d4d4;">(</span><span style="color: #9cdcfe;">bookTerm</span><span style="color: #d4d4d4;">));</span></div></div>
    <p>I was using "de" as a locale and "Gen" as the term to be
      translated, but I did not get the german variant of "Gen", but
      rather the exact same term "Gen" as a result.<br>
    </p>
    <p>Best regards,<br>
      Tobias<br>
    </p>
  </body>
</html>