[sword-devel] How to get translated book abbreviations with LocaleMgr?
Tobias Klein
contact at tklein.info
Sun May 10 03:45:59 MST 2020
Hi,
how can I use the LocaleMgr to get a translated book abbreviation?
For some reason this code did not work for me:
sword::SWLocale* locale = this->_localeMgr->getLocale(localeCode);
std::string translatedAbbreviation =
std::string(locale->translate(bookTerm));
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.
Best regards,
Tobias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20200510/aa880344/attachment.html>
More information about the sword-devel
mailing list