No xml file include xml_language ,how add new language

Install and configure FormaLMS and DoceboCE
Post Reply
lingjingjing100

No xml file include xml_language ,how add new language

Post 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 2108 times
User avatar
max
FormaLms Guru
Posts: 2771
Joined: Thu Mar 01, 2012 10:41 am
Version: forma.lms 2.4
Contact:

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

Post 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.
---------------------
Massimiliano Ferrari
Elearnit - Elearning e Knowledge Management
https://www.elearnit.net
https://www.linkedin.com/in/massimilianoferrari
m.ferrari[at]elearnit.net
Skype: m_ferrari_it
User avatar
canelli
FormaLms Guru
Posts: 496
Joined: Thu Nov 08, 2012 12:21 pm
Version: forma.lms 2.0
Contact:

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

Post 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>
Cercate nel forum le riposte prima di chiedere. Check the forum before posting
---------------
Claudio Anelli
Joint Technologies - Sistemi avanzati per l'information technology

http://www.joint-tech.com
---------------
User avatar
max
FormaLms Guru
Posts: 2771
Joined: Thu Mar 01, 2012 10:41 am
Version: forma.lms 2.4
Contact:

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

Post by max »

Thanks Claudio, good to point this out!
---------------------
Massimiliano Ferrari
Elearnit - Elearning e Knowledge Management
https://www.elearnit.net
https://www.linkedin.com/in/massimilianoferrari
m.ferrari[at]elearnit.net
Skype: m_ferrari_it
Post Reply