| |
|
|
|
|
| |
Translating RGameScript By roosevelt Published: November 16, 2006
Print Email
Translating RGameScript Pro is very easy. In order to translate RGameScript Pro to in any other language all you have to do is edit two language files. The language files are constructed in this manner: - /rincludes/class_lang.php (Grabs a specific language file)
- /rincludes/lang/en.php (The file containing actual phrases)
In the above structure class_lang.php file grabs the specific language file from the rincludes/lang/ folder and en.php file is the actual file containing all the phrases. So for example if I wanted to translate RGameScript Pro to Bangla from English. Then I would take the following steps. - Make a new file under /rincludes/lang/ folder with the name ben.php
- Copy all the contents under /rincludes/lang/en.php file over to ben.php file
- Translate all the english phrases to Bangla.
- Open /rincludes/class_lang.php file and change $language_file = "en.php"; to $language_file = "ben.php";
- Finally upload ben.php file under /rincludes/lang/, and upload and overwrite the class_lang.php file under /rincludes/.
You could simply just edit the en.php file, but I suggest keep it intact because when we release new versions most likely there will be new phrases add to the release. So you can just copy the new phrases over to your own language file without retranslating every single phrases again. And also its a good idea to have backup of the original. If you have any questions or comments please don't hesitate to ask.
View Comments (0) |
|
|
|
|
|
|
|
|