Application Version
Current version of VN Effector as of now 2.4.7
Current version of TyranoBuilder Next as of now 2.4.7
Download the application and modifications only from this site. The author is not responsible for the application or modifications downloaded from other sources.
The source code is open, so anyone can make changes to the code that may harm your device.
Thursday
May 02

Localization of the game into different languages

{login}
IDGLab

Preparation:


First you need to assign a value to the langTranslate variable. If you are creating a new game, this variable is already initialised on the initial stage.

How does the translation system work? It accesses the value in the langTranslate variable, and depending on this value it loads the appropriate translation file.

The value in the variable and the file name must match!

You can create a separate scene for language selection. When the player clicks on the flag picture, you can change the variable value according to the selected language.

Creating a translation:


To create a translation, you need to open the translation editor.
 

Here is a list of languages, including English and Korean. If you click on them, you will see a two-column list: the left column contains the original text and the right column contains its translation.

There is also a Game Lang file, which contains the translation of the text used in the game interface.

Add language button:
 

With this button you can add a new language for translation, e.g. English (en). Once added, the file will be empty. Just click the add line button to add a line with the translation.

 
Translation:


It's very simple: select the language you want to translate the text into and the content will appear for editing.

There is a field for the original text and a field for the translated text on the right. Paste your translation there and click ‘Save’. There is also an ‘Add Line’ button that allows you to manually create a new line. For example, if you have already translated the whole text, but you want to add a few more sentences.

That's all you need to know about translating basic text. The process of translating the interface is similar, just add the appropriate line to apply the translation to it as well.

Picture translation:

As in Renpy, automatic translation of pictures is also available here. To do this, you need to create folders with language codes, for example, ru and en, in the data\lang\img folder. In these folders you need to place images, which should have the same names as the original ones, but with the language prefix: ru_img.jpg, en_img.jpg. After that, click the button to scan images, and the translation of images will be finished.


Please note! After applying the language you need to restart the game or return to the main screen.


Share
Comments (0)

Leave a Comment