I2 Localization

This page describes how to set up the Dialogue System with Inter Illusion's I2 Localization. (I2 Localization is required.)

I2 Localization copyright © Inter Illusion.


I2 Localization Integration Features

The I2 Localization Support package adds these features:

  • A "DS To I2" editor window that allows you to copy data to and from I2 Localization's I2Languages prefab. Use this to populate the I2Languages prefab with your dialogue database content, translate in I2 Localization, and then copy the translations back into your dialogue database.
  • A script to automatically set the Dialogue System to use I2 Localization's current language.

I2 Localization Setup

Import the package Third Party Support/I2 Localization Support. This will unpack files into the folder Third Party Support/I2 Localization.


Language Identifier Options

By default, the I2 Localization integration will name localized fields in your dialogue database and/or localized text table using I2 Localization's language codes. This is preferable to using language names because language codes are typically standard ASCII text, whereas language names may contain non-ASCII international characters that can cause problems when translating field names into the Lua environment.

In the DS To I2 editor window and the Dialogue System Use I2 Language script, you can specify whether to use language codes or language names, but language codes are recommended.


How to Use I2 Localization with the Dialogue System

  1. Select menu item Window > Dialogue System > Third Party > I2 Localization > DS To I2.
  2. Assign your dialogue database to the Database field.
  3. Optionally assign a localized text table (see Localized Text Tables) to the Localized Text Table field.
  4. Expand the category foldouts and specify which fields you want to localize.
  5. Click the To I2 button to copy these fields to I2 Localization's I2Languages prefab.
    • It will also initialize the first language value with the field's value.
  6. Click the Inspect I2 button select the I2Languages prefab.
  7. Add languages on the Languages tab.
    • If you want to use Google Translate, click the Translate button next to each language.
    • Otherwise translate the terms in I2Languages using your normal I2 Localization process.
  8. Back in the DS To I2 window, click the From I2 button to copy these translations back to the Dialogue System.

Dialogue System Use I2 Language Script

Add the script "Dialogue System Use I2 Language" (e.g., to the Dialogue Manager) to automatically set the Dialogue System to use I2 Localization's current language. If you change languages in I2 Localization, call this script's UseCurrentI2Language() method.


<< Third Party Support