[sword-devel] SWORD modules language codes

Troy A. Griffitts scribe at crosswire.org
Thu Jun 3 12:06:30 EDT 2021


See the Lang entry here for some info.

http://wiki.crosswire.org/DevTools:conf_Files

Practically, this lookup dataset us available to Ezra via a call like.

LocaleMgr::getSystemLocalrMgr()->translate ("bg", "locales");

https://crosswire.org/svn/sword/trunk/locales.d/locales.conf

Hope this helps,

Troy

On June 3, 2021 5:25:25 PM GMT+02:00, Evgen Kucherov <zhuke at ukr.net> wrote:
>Hi dear SWORD developer community.
>
>I have a question about SWORD module languages.
>
>What is the standard behind module language codes? in particular what's
>
>returned by
>
>SWModule::getLanguage() in SWORD code
>
>
>I found this in the dips of OSIS schema 
>(https://www.crosswire.org/~dmsmith/osis/osisCore.2.1.1-cw-latest.xsd):
>
><xs:simpleType name="osisLanguage">
>     <xs:restriction base="xs:string">
>         <xs:enumeration value="IANA"/>
>         <xs:enumeration value="IETF"/>
>         <xs:enumeration value="ISO-639-1"/>
>         <xs:enumeration value="ISO-639-2"/>
>         <xs:enumeration value="ISO-639-2-B"/>
>         <xs:enumeration value="ISO-639-2-T"/>
>         <xs:enumeration value="LINGUIST"/>
>         <xs:enumeration value="other"/>
>         <xs:enumeration value="SIL"/>
>     </xs:restriction>
></xs:simpleType>
>
>
>But does it mean that all SWORD modules can have any of those codes?
>
>I guess ISO-639-3 is newer than original OSIS, so that's why it's not
>there.
>
>
>
>I'm trying to localize and organize language list of all ~1200
>languages 
>available in the  SWORD repos in Ezra Bible App frontend. Scrolling or 
>even searching in such list is "a bit" not user friendly.
>
>-- 
>/sincerely,/
>/Evgen Kucherov/

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://crosswire.org/pipermail/sword-devel/attachments/20210603/dfa4d614/attachment.html>


More information about the sword-devel mailing list