<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">Any feedback regarding this question?</div><div class="">I would appreciate it!</div><div class=""><br class=""></div><div class="">Best regards,</div><div class="">Tobias<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">Am 10.05.2020 um 12:45 schrieb Tobias Klein <<a href="mailto:contact@tklein.info" class="">contact@tklein.info</a>>:</div><br class="Apple-interchange-newline"><div class="">
<meta http-equiv="content-type" content="text/html; charset=UTF-8" class="">
<div class=""><p class="">Hi,</p><p class="">how can I use the LocaleMgr to get a translated book
abbreviation?<br class="">
<br class="">
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;" class=""><div class=""><span style="color: #d4d4d4;" class=""> </span><span style="color: #4ec9b0;" class="">sword</span><span style="color: #d4d4d4;" class="">::SWLocale* locale = </span><span style="color: #569cd6;" class="">this</span><span style="color: #d4d4d4;" class="">-></span><span style="color: #9cdcfe;" class="">_localeMgr</span><span style="color: #d4d4d4;" class="">-></span><span style="color: #dcdcaa;" class="">getLocale</span><span style="color: #d4d4d4;" class="">(</span><span style="color: #9cdcfe;" class="">localeCode</span><span style="color: #d4d4d4;" class="">);</span></div><div class=""><span style="color: #d4d4d4;" class=""> </span><span style="color: #4ec9b0;" class="">std</span><span style="color: #d4d4d4;" class="">::string translatedAbbreviation = </span><span style="color: #4ec9b0;" class="">std</span><span style="color: #d4d4d4;" class="">::</span><span style="color: #dcdcaa;" class="">string</span><span style="color: #d4d4d4;" class="">(</span><span style="color: #9cdcfe;" class="">locale</span><span style="color: #d4d4d4;" class="">-></span><span style="color: #dcdcaa;" class="">translate</span><span style="color: #d4d4d4;" class="">(</span><span style="color: #9cdcfe;" class="">bookTerm</span><span style="color: #d4d4d4;" class="">));</span></div></div><p class="">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 class="">
</p><p class="">Best regards,<br class="">
Tobias<br class="">
</p>
</div>
_______________________________________________<br class="">sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" class="">sword-devel@crosswire.org</a><br class=""><a href="http://www.crosswire.org/mailman/listinfo/sword-devel" class="">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br class="">Instructions to unsubscribe/change your settings at above page</div></blockquote></div><br class=""></div></body></html>