Create New Language
In Ixonn you can easily change the language. You only need to translate all the strings based on your needs.
- Navigate to application/language and copy the default English folder.
- Rename to folder in the language you want to translate. eq. French
You must to rename the files inside based on the main folder name eq. we renamed our new folder to French and this folder should be renamed like this: french_lang.php
Translate all the strings via your favourite code editor and navigate to Setup -> Settings -> Localization you will see that your language is available in the dropdown select it and save changes.
If the language you are trying to translate already exists in Ixonn files that comes with the package its recommended to rename the folder/files eq. my_french and my_french_lang.php
|If you are using language that don’t exist in Ixonn make sure after each update to copy all the new text after # Version X.X.X from the original English file located in application/language/english/english_lang.php|
Overwriting translation texts
Read more here to see how to overwrite translation texts to make Ixonn fit for your needs.
Language files in Ixonn use the UTF-8 encoding without a Byte Order Marker, when creating language override files it is important to maintain the same encoding.
All the language files are available on Github, if you want to contribute translation you can create pull request and we will review the language and approve the pull request. Click here to check the github repository.
|If you want to use the ‘character in your translation text you have to replace it with \’|
|$lang[‘language_text_key’] = ‘Text with \’quotes’;|