The Elearning Community • No xml file include xml_language ,how add new language
Page 1 of 1

No xml file include xml_language ,how add new language

Posted: Tue Jun 30, 2015 3:05 am
by lingjingjing100
I want to add kazakh language,but it not include system,so how add it?
I try copy a language xml file ,and change it to kazakh,and import it,but language content changed!
but,change language area icon no changed,and not show new icon,please help me ,why?
3x.
look kazakh
look kazakh
changelanguage.png (6.79 KiB) Viewed 2104 times

Re: No xml file include xml_language ,how add new language

Posted: Tue Jun 30, 2015 8:59 am
by max
Hi,
if you want to add the kazakh language you are free to do so. If you do it, please share it on this community so the product can grow.
You can either do it online within the Lms (export a language file, rename it to kazakh, import it and then edit it online) or you can do it offline through an xml editor, always starting from an existing and renamed language file.

The kazakh flag cannot appear if you don't add it: please create a kazakh icon, as a .png file, size 21x14 pixels

Add it under the template (or templates) folder: /templates/NAMEOFYOURTEMPLATE/images/language/

The icon needs to have the same name as the xml language file.

Keep us updated.

Re: No xml file include xml_language ,how add new language

Posted: Tue Jun 30, 2015 11:34 am
by canelli
If you clone an existing language xml file , before importing it you must change the following lines with proper values:

Code: Select all

  <LANG id="english">
    <lang_code>english</lang_code>
    <lang_description>English</lang_description>
    <lang_charset>utf-8</lang_charset>
    <lang_browsercode>en; en-us</lang_browsercode>
    <lang_direction>ltr</lang_direction>
change only the value not the key , as in this sample:

Code: Select all

  <LANG id="kazakh">
    <lang_code>kazakh</lang_code>
    <lang_description>Kazakh</lang_description>
    <lang_charset>utf-8</lang_charset>
    <lang_browsercode>ka; ka-ka</lang_browsercode>
    <lang_direction>ltr</lang_direction>

Re: No xml file include xml_language ,how add new language

Posted: Tue Jun 30, 2015 11:41 am
by max
Thanks Claudio, good to point this out!