<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>See the Lang entry here for some info.<br><br><a href="http://wiki.crosswire.org/DevTools:conf_Files">http://wiki.crosswire.org/DevTools:conf_Files</a><br><br>Practically, this lookup dataset us available to Ezra via a call like.<br><br>LocaleMgr::getSystemLocalrMgr()->translate ("bg", "locales");<br><br><a href="https://crosswire.org/svn/sword/trunk/locales.d/locales.conf">https://crosswire.org/svn/sword/trunk/locales.d/locales.conf</a><br><br>Hope this helps,<br><br>Troy<br><br><div class="gmail_quote">On June 3, 2021 5:25:25 PM GMT+02:00, Evgen Kucherov <zhuke@ukr.net> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<p>Hi dear SWORD developer community.</p>
<p>I have a question about SWORD module languages. <br>
</p>
<p>What is the standard behind module language codes? in particular
what's returned by <br>
</p>
<p>SWModule::getLanguage() in SWORD code<br>
</p>
<p><br>
</p>
<p>I found this in the dips of OSIS schema
(<a class="moz-txt-link-freetext" href="https://www.crosswire.org/~dmsmith/osis/osisCore.2.1.1-cw-latest.xsd">https://www.crosswire.org/~dmsmith/osis/osisCore.2.1.1-cw-latest.xsd</a>):</p>
<p><xs:simpleType name="osisLanguage"><br>
<xs:restriction base="xs:string"><br>
<xs:enumeration value="IANA"/><br>
<xs:enumeration value="IETF"/><br>
<xs:enumeration value="ISO-639-1"/><br>
<xs:enumeration value="ISO-639-2"/><br>
<xs:enumeration value="ISO-639-2-B"/><br>
<xs:enumeration value="ISO-639-2-T"/><br>
<xs:enumeration value="LINGUIST"/><br>
<xs:enumeration value="other"/><br>
<xs:enumeration value="SIL"/><br>
</xs:restriction><br>
</xs:simpleType></p>
<p><br>
</p>
<p>But does it mean that all SWORD modules can have any of those
codes?</p>
<p>I guess ISO-639-3 is newer than original OSIS, so that's why it's
not there.<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>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.<br>
</p>
<div class="moz-signature">-- <br>
<i>sincerely,</i><br>
<i>Evgen Kucherov</i>
</div>
</blockquote></div><br>-- <br>Sent from my Android device with K-9 Mail. Please excuse my brevity.</body></html>