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" <cont...@tklein.info>
*An:* "SWORD Developers' Collaboration Forum" <sword-devel@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 <cont...@tklein.info
    <mailto:cont...@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@crosswire.org
    <mailto:sword-devel@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@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@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@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Reply via email to