Skip to content

Translation Tab ​

The Translation tab centrally manages multilingual translations of user-defined text (character names, item names, lines, etc.) shown in-game.

Position of the Translation tab

This tool's translation has two systems:

  1. Editor translation: UI labels on the editor screen itself ("New", "Save", etc.). Managed by the developer (this tool's author); users do not touch it.
  2. Runtime translation: Text shown in the game the user creates (character names, lines, etc.).

The Translation tab handles system 2 (runtime translation). For example, you can register a user-created character name "戦士" as "Warrior" in English and "戦士" in Japanese, and have it switch automatically according to the game's language setting.

For detailed specifications of the two translation systems, see the Translation / Multilingual Support reference.

Overview ​

Purpose of the screen ​

  • Batch-edit per-language translations for translation keys.
  • Add, delete, and rename translation keys.
  • Add and delete supported languages.
  • Automatically extract and add untranslated keys.

Save destination ​

  • Saved to data/localized/translation.json as {key: {language_code: translation, ...}, ...}.

Where it is referenced ​

  • Game startup: Runtime loads translation.json and registers it to Godot's TranslationServer.
  • During gameplay: On UI display, tr() or trans() is called to fetch the translation for the current language.
  • Various setting tabs: name / comment fields such as character names and item names are auto-extracted as translation keys (auto-add untranslated keys feature).

Translation on/off ​

This tab is active only when translation is on.

  • Translation on: translation.json exists (check "Enable translation" in the System tab).
  • Translation off: translation.json does not exist (the game displays Japanese text as-is without translation).

Opening this tab while translation is off displays a notice label ("Translation is disabled / Please enable translation in the System tab").

Reserved languages ​

Language codeDeletableReason
en (English)Not deletableEditor's standard fallback language. Deletion is rejected.
ja (Japanese)DeletableAt user's discretion. Can be deleted without warning.
OthersDeletableAt user's discretion.

The last language cannot be deleted

If only one language remains and you try to delete it, the operation is rejected (Cannot delete the last language). At least one language must remain.

Screen layout ​

The Translation tab has a left-right split layout.

Left pane (translation key list + various buttons + search/filter + save) ​

ElementRole
"Translation Keys" headingTitle
Notice label when translation is offHidden when on, shown only when off
"Language (N)" labelShows current count of supported languages
"Language Manager" buttonOpens language add/delete dialog
"Add Key" / "Delete Key" buttonsAdd/delete translation keys
"Auto Add Untranslated Keys" buttonAuto-extracts untranslated keys from all data
"Search" fieldPartial-match search by key name
"Filter" dropdownFilter by all / untranslated only / translated only
Key list (KeyItemList)All keys shown alphabetically; untranslated keys highlighted in red
"Save" buttonWrites edited content to translation.json

Right pane (translation detail pane) ​

ElementRole
"Translation Detail" headingTitle
"Key" text fieldShows selected key name + edit (rename)
Translation edit area (TranslationsBox)TextEdit for each language, generated dynamically

Left pane: Notice when translation is off ​

Opening this tab while translation is off (translation.json does not exist) shows a two-line notice label:

Translation is disabled
Please enable translation in the System tab

Even in the off state, UI operations are still possible, but with an empty key list there is effectively nothing to do. After enabling "Enable translation" in the System tab, returning to this tab automatically loads data and makes it editable.

Protection of unsaved changes when off

After switching translation off, re-displaying this tab reloads translation.json, but unsaved changes are not overwritten (prevents loss of changes).

Left pane: Language management ​

Language (N) label ​

Dynamically shows the current count of supported languages. Example: with Japanese + English, it reads "Language (2)".

Language Manager button ​

Pressing the Language Manager button opens a dedicated dialog where you add and delete languages.

Adding a language ​

Enter a new language code in the language manager dialog to add it.

Language code format:

  • Regex: ^[a-z]{2}(_[A-Z]{2})?$
  • Examples: fr (French), de (German), zh_CN (Simplified Chinese), pt_BR (Brazilian Portuguese)
  • 2 lowercase letters + optional _ + 2 uppercase letters

Add behavior:

  • For all existing translation keys, an empty string translation for that language is added (fill it in later per key).
  • A language already supported cannot be re-added (error shown).

Deleting a language ​

Delete an existing language from the language manager dialog.

Delete constraints:

  • en (English) is not deletable (editor's standard fallback language).
  • The last remaining language cannot be deleted.
  • ja and others are deletable without warning.
  • Deletion removes that language's translations from all keys.

Left pane: Managing translation keys ​

Add Key button ​

Adds a new translation key.

Steps:

  1. Press the Add Key button.
  2. Enter a new key name in the dialog.
  3. Press OK.

Key input rules:

  • Empty strings are not allowed.
  • An error is shown for duplicates with existing keys (Key already exists).
  • Internally, key normalization runs to unify escape expressions such as \n.

Add behavior:

  • An empty string translation is added for all languages.
  • The added key is auto-selected, and you can input translations in the right pane.

Delete Key button ​

Deletes the selected translation key.

Steps:

  1. Select the key in the list.
  2. Press the Delete Key button.
  3. Confirm OK in the dialog.

Delete behavior:

  • The selected key is completely removed from translation.json.
  • The right pane returns to empty.
  • The deletion is not written to translation.json until the Save button is pressed.

Caution when deleting keys in use

If a translation key used in the Character tab, Item tab, etc. is deleted, the translation for that entry is lost. Verify usage locations before deleting.

Renaming keys (operated from the right pane) ​

Keys can be renamed by editing the Key field in the right pane.

Steps:

  1. Select a key in the list.
  2. Modify the text in the right pane's Key field.
  3. Press Enter or move focus away.

Rename behavior:

  • Moves to the new key name in translation.json (translations for all languages are preserved).
  • If the rename target conflicts with an existing key, the operation is cancelled (reverted).
  • Empty input also reverts.

Left pane: Auto-add untranslated keys ​

Pressing the Auto Add Untranslated Keys button automatically extracts translatable text from various data in this tool and adds unregistered keys to translation.json.

Scan targets ​

The name / comment fields are auto-extracted from the following 12 kinds of data:

#TargetTarget fields
1System fixed text24 kinds ("Status", "Passive", "Equipment", "Item", "Skill", "Sort", "Save", "Load", "Log", "Setting", "Close", "Back", "Text Speed", "BGM Volume", "ME Volume", "Sound Volume", "Language", "Return Title", "Exit Game", "Required", "-None-", "Use", "Drop", "Consume")
2Parameters (parameter.json)name of each entry
3Item types (itemtype.json)name of each entry
4Attach types (attachtype.json)name of each entry
5States (state.json)name of each entry
6Attach (attach.json)name + comment of each entry
7Items (item.json)name + comment of each entry
8Classes (class.json)name of each entry
9Enemies (enemy.json)name + comment of each entry
10Characters (character.json)name + comment of each entry
11Maps (map.json)name of each entry
12Menu button labels (setting.menu_text)Menu label on the home screen

Text elements inside events are also scanned:

Event contentTarget properties
Show Texttext
Add Choicetext
Add Buttontext
Show Text Inputtitle
Show Number Inputtitle

Protection of existing translations ​

Translations already registered in translation.json are not overwritten:

  • Existing keys: translations for all languages are preserved.
  • New keys: added for all languages with empty strings.

Even when a new language is added, existing keys' translations in other languages are preserved; only the new language's translations are added as empty strings.

When to use ​

  • After adding new characters/items/states, etc., press before opening the translation tab to batch-add.
  • When starting support for a new language in an existing project, press to list all translation targets.

Left pane: Search / filter ​

Partial-match search by key name (case-insensitive).

  • Example: entering warrior in the search field narrows down to keys like warrior, warrior_name, SUB_WARRIOR, etc.

Filter ​

FilterContent
AllShows all keys
Untranslated onlyOnly keys where any language's translation is empty
Translated onlyOnly keys where all languages' translations are filled in

Untranslated judgment: a key is treated as "untranslated" if even one language's translation is empty.

Search and filter are applied with AND condition (only keys matching both are shown).

Left pane: Key list (KeyItemList) ​

Displays all translation keys sorted alphabetically.

Display colors ​

StateColor
Untranslated (any language's translation is empty)Red (highlighted)
Translated (all languages' translations are filled in)White (normal)

Editing a translation switches the color in real time.

Key selection ​

Clicking a key shows the translations in the right pane's translation detail pane, where you can edit each language's translation.

Right pane: Translation detail pane ​

Edit translations per language for the key selected in the left pane.

Key field ​

ItemInput formatDescription
KeyText (editable)Selected key name. For renaming (placeholder: (no key selected) when unselected)

Modifying the Key field and pressing Enter or moving focus away executes a key-name rename (as described above).

Translation edit area (TranslationsBox) ​

For the selected key, translations for all supported languages are shown in dynamically generated TextEdits per language.

Structure per language row:

ElementRole
Language label (width 140px)Example: Japanese(ja), English(en)
Translation edit TextEdit (multi-line)Width 400px x height 60px, word wrap enabled

Reflection of edits ​

Inputting a translation into TextEdit immediately reflects it:

  • Writes to _translation_data (in memory).
  • Marks the tab title with (*) unsaved marker.
  • Toggles the color of that key in the left-pane key list between "untranslated (red) <-> translated (white)".

Save ​

Changes are not written to translation.json until the Save button is pressed. Pressing Save writes out all data at once.

Typical usage flows ​

Flow 1: Make a new character multilingual ​

  1. In the Character tab, create a new character WARRIOR with name 戦士 and comment 勇敢な戦士.
  2. Open the Translation tab.
  3. Press the Auto Add Untranslated Keys button -> 戦士 and 勇敢な戦士 are added as unregistered.
  4. Select 戦士 in the list (red = untranslated).
  5. Input Warrior for English (en) in the right pane.
  6. The color changes to white (translated).
  7. Similarly, input A brave warrior for 勇敢な戦士.
  8. Press the Save button.
  9. Launch the game in English mode and the character name is displayed as Warrior.

Flow 2: Start supporting a new language (French) ​

  1. Open the Translation tab.
  2. Press the Language Manager button.
  3. Enter fr in the dialog -> add.
  4. The language label increases to "Language (3)" (en / ja / fr).
  5. A French(fr) row is added in the right pane for all keys (translations are empty).
  6. Set the filter to Untranslated only -> keys needing translation are listed.
  7. Select each key and input French translations in the fr column.
  8. Press the Save button.

Flow 3: Modify translations for existing keys ​

  1. Select a key in the list.
  2. Edit the TextEdit for the relevant language in the right pane.
  3. (*) appears on the tab title.
  4. Press the Save button.

Flow 4: Delete unused keys ​

  1. Select a key in the list.
  2. Press the Delete Key button.
  3. Confirm OK in the dialog.
  4. The key disappears from the list.
  5. Press the Save button.

Flow 5: Rename a key ​

  1. Select a key in the list (example: a confusing name like war).
  2. In the right pane's Key field, rewrite war -> warrior_name.
  3. Press Enter or move focus away.
  4. warrior_name is selected in the list (all translations preserved).
  5. Press the Save button.

Flow 6: Search by translation key name ​

  1. Enter warrior in the search field.
  2. The list narrows down to keys containing "warrior".
  3. Switching the filter to Untranslated only shows only untranslated warrior-related keys.

Flow 7: Enable translation in a new project before starting ​

  1. First create the RPG with translation off.
  2. Create characters/items/states, etc.
  3. In System tab, check "Enable translation" -> translation.json is newly created.
  4. Open the Translation tab -> the "Translation is disabled" notice disappears.
  5. Press the Auto Add Untranslated Keys button -> translation keys are extracted from all existing data.
  6. Set filter to Untranslated only and fill in keys in order.
  7. Save button.
TabRelated content
Translation / Multilingual Support referenceDetailed specs of the two translation systems
System tabTranslation on/off switch, runtime language switch
Character tab / Enemy tab / Item tab, etc.name / comment of each entry are translation targets

Notes ​

Translation on/off is toggled in the System tab ​

You cannot toggle translation on/off in this tab. Operate the "Enable translation" checkbox in the System tab.

Unsaved changes are finalized by the Save button ​

Translation editing, key add/delete/rename, and language add/delete are all not written to translation.json until the Save button is pressed. Restarting the editor without saving discards the changes.

Existing translations are protected ​

Pressing "Auto Add Untranslated Keys" does not overwrite existing translations. Only new keys are added with empty strings; existing keys' translations are preserved as-is.

Referential integrity on deletion ​

Deleting a translation key does not auto-correct entries in the Character tab, Item tab, etc. that use that key as name / comment. At runtime it becomes "no translation" and the original text (key name) is shown as-is.

Search is case-insensitive ​

Search input is case-insensitive. WARRIOR and warrior filter down the same keys.

en cannot be deleted ​

English (en) is the editor's standard fallback language and cannot be deleted. If other languages lack translations, runtime displays the en translation instead.