Version 3.0 and above are multilingual support. With the language folders enabled for creating multiple language files, you can translate the Geo Traffic completely without having to edit each individual file in oneadmin directory.
Basically, there are 2 language folders to work on, one translates the Geo Traffic, whilst the other is used to translate your One Admin platform.
Translating the Geo Traffic
- Explore to the '/oneadmin/geotraffic/language' folder. By default, the language folder should already contains 3 files, English.php, French.php and Malay.php that the Geo Traffic has created for you.
- Duplicate the English.php file within the same directory.
- Rename the replica to your preferable language name, such as German.php, Dutch.php, Spanish.php
Note: The first character of a file name must be in capital letter. All files name reside in language folder like German, Dutch, Spanish will appear in the drop down list under the language settings of your administrator panel.
- Open the language file you created with your text editor, and you will notice the keyword / phrases are well-listed in each row. Translate and making sure to enclose each keyword / phrase in double-quotes ( " " ).
Tips: If you wish to specify a literal double-quotes, you will need to escape it with a backslash ( ).
For example, to output : This is "simple" string
Here's what to do: "This is "simple" string"
- Save your language file, and you may wish to proceed to your One Admin platform translation.
Translating One Admin Platform (Administrator Panel)
- Explore to '/oneadmin/common/language' folder.
- Repeat the above steps from Step 2 to Step 5.
Note: Number of language files and every file names must identical in both /oneadmin/geotraffic/language and /oneadmin/common/language folders.
Once you have completed both sections, login to your One Admin panel, and click 'admin' at the top of the page. Under 'Other Settings' title, select one of the languages from the drop down list. Finally, click on the 'Save' button to view the result immediately.
|