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@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Reply via email to