[sword-devel] SWORD modules language codes

Evgen Kucherov zhuke at ukr.net
Thu Jun 3 11:25:25 EDT 2021


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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://crosswire.org/pipermail/sword-devel/attachments/20210603/e2a65877/attachment.html>


More information about the sword-devel mailing list