[sword-devel] How to get translated book abbreviations with LocaleMgr?
Tobias Klein
contact at tklein.info
Fri May 15 10:03:26 MST 2020
Hi,
Any feedback regarding this question?
I would appreciate it!
Best regards,
Tobias
> Am 10.05.2020 um 12:45 schrieb Tobias Klein <contact at tklein.info>:
>
> 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
>
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20200515/0df7223b/attachment.html>
More information about the sword-devel
mailing list