Create New Language
In WPS CRM 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 the folder in the language you want to translate. eq. french
You must rename the files inside the folder you copied based on the main folder name eq. we renamed our new folder to french and in this folder, there are 2 files, english_lang.php and english_num_words_lang.php that should be renamed like this: french_lang.php and french_num_words_lang.php
Translate all the strings via your favorite code editor and navigate to Setup -> Settings -> Localization you will see that your language is available in the dropdown to select it and save changes.
If the language you are trying to translate already exists in WPS CRM files that come with the package its recommended to rename the folder/files eq. my_french and my_french_lang.php
Overwriting translation texts
Read more here to see how to overwrite translation texts to make WPS CRM fit for your needs.
Encoding
Language files in WPS CRM use the UTF-8 encoding without a Byte Order Marker, when creating language override files it is important to maintain the same encoding.
Github
All the language files are available on Github, if you wan’t 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.
Special Charachters
Eq:
$lang['language_text_key'] = 'Text with \'quotes';