System Language

Create New Language

In SudoWorkspace you can easily change the language. You only need to translate all the strings based on your needs.

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 SudoWorkspace 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 SudoWorkspace fit for your needs.

Encoding

Language files in SudoWorkspace 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';
$lang['language_text_key'] = 'Text with \'quotes';
$lang['language_text_key'] = 'Text with \'quotes';