Language modification, Adding new language

All labels/strings in the website (excluding admin side) are string constants defined in language files. Language files are found in /languages/ folder. One folder exists for each language. English language strings are in ‘en-US’, French in ‘fr-FR’ etc. The .ini files in these folders hold the string constant name and its value. The value part can be modified as per your choice.

The filename can be mapped to the corresponding page template file(/tmpl/ folder).  If a .ini file is not present for a template file, then the strings can be found in ‘xx-XX.common.ini’ file. While editing the language files (.ini) for non-english languages, make sure you save them in the utf-8 format (encoding/code page) after editing the file. If it is saved as ascii format, some characters will not save properly. Recommended editors are pspad, dreamweaver or netbeans.

Adding a New Language Translation

First copy the folder 'en-US' present in '/languages' to a new folder name. Let the folder name be 2 letter iso language code of the new language. For ex: Swedish (Finland) we will name the folder as 'sv-FI'.

Open the file 'meta.ini' in 'sv-FI' folder. It will have content like this:


Edit the code and language name. In our example, it becomes:


Save the file.

Rename all the files that start with 'en-US' to 'sv-FI'.

Now string values in all the sv-FI.xxxxxx.ini files must be translated to new language.

For ex: NOT READABLE = "Not readable"
Here "Not readable" must be translated. For Swedish it becomes:
NOT READABLE = "Ej läsbart"

After all the file translation is complete, upload the files to server. 
Login to Admin. Go to Configs > Advanced Configs.
Go to 'Languages Settings' section. Click on 'Install Languages' button. Page will reload.
Now you must see your new language listed under 'Languages' list. 
Check the 'Enabled' checkmark to Enable the newly added language.

  • Email, SSL
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Template Customization

Theme or template files are located in /templates/wtkdefault/ folder. Html and css files can be...

Powered by WHMCompleteSolution