[sword-devel] How to get translated book abbreviations with LocaleMgr?
Tobias Klein
contact at tklein.info
Fri May 15 10:38:14 MST 2020
Hi Peter,
Why is it then that mapping tables like this one are kept in the
locales.d files:
[Pref Abbrevs]
Gen=1Mo
Exod=2Mo
Lev=3Mo
Num=4Mo
Deut=5Mo
Josh=Jos
Judg=Rich
Ruth=Rut
1Sam=1Sam
2Sam=2Sam
1Kgs=1Kön
2Kgs=2Kön
1Chr=1Chr
2Chr=2Chr
Ezra=Esr
Neh=Neh
This is the info I need. I'm just wondering how to extract that
information with the SWORD API.
Best regards,
Tobias
On 5/15/20 7:19 PM, Peter Von Kaehne wrote:
> I think the lack of response is as there is no sensible way of responding.
>
> The whole construct of abbreviations (irrespective of languages) is
> uniderectional (Abbr->Book name). The same applies to English. What
> you mix up here is that a particular subset of English abbreviations
> is also the set of OSIS identifiers.
>
> Peter
> *Gesendet:* Freitag, 15. Mai 2020 um 18:03 Uhr
> *Von:* "Tobias Klein" <contact at tklein.info>
> *An:* "SWORD Developers' Collaboration Forum" <sword-devel at crosswire.org>
> *Betreff:* Re: [sword-devel] How to get translated book abbreviations
> with LocaleMgr?
> 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
> <mailto: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
> <mailto:sword-devel at crosswire.org>
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
>
> _______________________________________________ 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
>
> _______________________________________________
> 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/91cb7c14/attachment-0001.html>
More information about the sword-devel
mailing list