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:
- 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.
- 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.jsonas{key: {language_code: translation, ...}, ...}.
Where it is referenced
- Game startup: Runtime loads
translation.jsonand registers it to Godot's TranslationServer. - During gameplay: On UI display,
tr()ortrans()is called to fetch the translation for the current language. - Various setting tabs:
name/commentfields 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.jsonexists (check "Enable translation" in the System tab). - Translation off:
translation.jsondoes 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 code | Deletable | Reason |
|---|---|---|
en (English) | Not deletable | Editor's standard fallback language. Deletion is rejected. |
ja (Japanese) | Deletable | At user's discretion. Can be deleted without warning. |
| Others | Deletable | At 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)
| Element | Role |
|---|---|
| "Translation Keys" heading | Title |
| Notice label when translation is off | Hidden when on, shown only when off |
| "Language (N)" label | Shows current count of supported languages |
| "Language Manager" button | Opens language add/delete dialog |
| "Add Key" / "Delete Key" buttons | Add/delete translation keys |
| "Auto Add Untranslated Keys" button | Auto-extracts untranslated keys from all data |
| "Search" field | Partial-match search by key name |
| "Filter" dropdown | Filter by all / untranslated only / translated only |
| Key list (KeyItemList) | All keys shown alphabetically; untranslated keys highlighted in red |
| "Save" button | Writes edited content to translation.json |
Right pane (translation detail pane)
| Element | Role |
|---|---|
| "Translation Detail" heading | Title |
| "Key" text field | Shows 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 tabEven 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.
jaand 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:
- Press the Add Key button.
- Enter a new key name in the dialog.
- 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:
- Select the key in the list.
- Press the Delete Key button.
- 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.jsonuntil 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:
- Select a key in the list.
- Modify the text in the right pane's Key field.
- 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:
| # | Target | Target fields |
|---|---|---|
| 1 | System fixed text | 24 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") |
| 2 | Parameters (parameter.json) | name of each entry |
| 3 | Item types (itemtype.json) | name of each entry |
| 4 | Attach types (attachtype.json) | name of each entry |
| 5 | States (state.json) | name of each entry |
| 6 | Attach (attach.json) | name + comment of each entry |
| 7 | Items (item.json) | name + comment of each entry |
| 8 | Classes (class.json) | name of each entry |
| 9 | Enemies (enemy.json) | name + comment of each entry |
| 10 | Characters (character.json) | name + comment of each entry |
| 11 | Maps (map.json) | name of each entry |
| 12 | Menu button labels (setting.menu_text) | Menu label on the home screen |
Text elements inside events are also scanned:
| Event content | Target properties |
|---|---|
| Show Text | text |
| Add Choice | text |
| Add Button | text |
| Show Text Input | title |
| Show Number Input | title |
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
Search
Partial-match search by key name (case-insensitive).
- Example: entering
warriorin the search field narrows down to keys likewarrior,warrior_name,SUB_WARRIOR, etc.
Filter
| Filter | Content |
|---|---|
| All | Shows all keys |
| Untranslated only | Only keys where any language's translation is empty |
| Translated only | Only 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
| State | Color |
|---|---|
| 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
| Item | Input format | Description |
|---|---|---|
| Key | Text (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:
| Element | Role |
|---|---|
| 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
- In the Character tab, create a new character
WARRIORwith name戦士and comment勇敢な戦士. - Open the Translation tab.
- Press the Auto Add Untranslated Keys button ->
戦士and勇敢な戦士are added as unregistered. - Select
戦士in the list (red = untranslated). - Input
Warriorfor English (en) in the right pane. - The color changes to white (translated).
- Similarly, input
A brave warriorfor勇敢な戦士. - Press the Save button.
- Launch the game in English mode and the character name is displayed as
Warrior.
Flow 2: Start supporting a new language (French)
- Open the Translation tab.
- Press the Language Manager button.
- Enter
frin the dialog -> add. - The language label increases to "Language (3)" (en / ja / fr).
- A
French(fr)row is added in the right pane for all keys (translations are empty). - Set the filter to Untranslated only -> keys needing translation are listed.
- Select each key and input French translations in the fr column.
- Press the Save button.
Flow 3: Modify translations for existing keys
- Select a key in the list.
- Edit the TextEdit for the relevant language in the right pane.
(*)appears on the tab title.- Press the Save button.
Flow 4: Delete unused keys
- Select a key in the list.
- Press the Delete Key button.
- Confirm OK in the dialog.
- The key disappears from the list.
- Press the Save button.
Flow 5: Rename a key
- Select a key in the list (example: a confusing name like
war). - In the right pane's Key field, rewrite
war->warrior_name. - Press Enter or move focus away.
warrior_nameis selected in the list (all translations preserved).- Press the Save button.
Flow 6: Search by translation key name
- Enter
warriorin the search field. - The list narrows down to keys containing "warrior".
- Switching the filter to Untranslated only shows only untranslated
warrior-related keys.
Flow 7: Enable translation in a new project before starting
- First create the RPG with translation off.
- Create characters/items/states, etc.
- In System tab, check "Enable translation" ->
translation.jsonis newly created. - Open the Translation tab -> the "Translation is disabled" notice disappears.
- Press the Auto Add Untranslated Keys button -> translation keys are extracted from all existing data.
- Set filter to Untranslated only and fill in keys in order.
- Save button.
Related tabs
| Tab | Related content |
|---|---|
| Translation / Multilingual Support reference | Detailed specs of the two translation systems |
| System tab | Translation 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.
