[HOWTO] How To: Localize Using i2 Localization and Dialogue System

Announcements, support questions, and discussion for Quest Machine.
Post Reply
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

[HOWTO] How To: Localize Using i2 Localization and Dialogue System

Post by Tony Li »

A Quest Machine user asked about localizing using i2 Localization.

If you also have the Dialogue System, tou can use the Dialogue System's i2 Localization with Quest Machine.

Quest Machine can use Text Tables. Instead of writing your text directly in the quest:

qm_i2_1.png
qm_i2_1.png (16.75 KiB) Viewed 848 times

Write it in a text table:

qm_i2_2.png
qm_i2_2.png (13.4 KiB) Viewed 848 times


Then assign that text table field to the quest:

qm_i2_3.png
qm_i2_3.png (14.68 KiB) Viewed 848 times


Then you can use the DS To I2 window to translate the text table using i2 Localization:

qm_i2_4.png
qm_i2_4.png (8.87 KiB) Viewed 848 times

Or, if you're not using i2 Localization, you can export your text table to CSV, send it to a translator, and import the CSV back into the text table.

Note that the Quest Editor also has a menu option to move all of a quest's text into a text table. So you can write your text initially in the quest itself, then later move it into a text table to handle localization.

To set the current language, add a UILocalizationManager component to the Quest Machine GameObject. Then, in code, set UILocalizationManager.currentLanguage:

Code: Select all

UILocalizationManager.instance.currentLanguage = "fr"; // Set to French.
Post Reply