Skip to content

Texts page and languages

The Texts page is where a story’s words and their translations live. It lists the texts you wrote in dialogues, announcements and definitions, the named texts you gave a name, the languages, and the words the game writes by itself. It also sends texts to a translator and reads them back. Nothing here is a problem: coverage, missing and unused texts are information. Background: Texts, tokens and pacing.

  • You want the story in a second language: see also Add a language.
  • A word is used in many places, and you want to write it once as a named text.
  • A translator needs a file, or has sent one back.
  • You want a machine draft of the missing translations.
  • You want to see how far each language is translated.

Open Texts from the Page menu. It fills the whole window and has no left side. A strip of four tabs sits at the top left: Story texts, Named texts, Languages and Built-in words. The tab you left open is remembered on this computer. Beside the strip are these controls, each with a hover text:

Control What it does
Show: all (menu) Which texts to list. The entries depend on the tab, see below.
Languages ▾ Choose which languages are shown as columns. A tick means the language is a column. With no languages: No languages yet.
Search field Find a text, a named text, a translation or a place. The toolbar’s Find field searches here too.
Import… Merge the translations from a file a translator sent back (CSV or XLIFF). You see a report before anything changes.
Export… Write the texts of your story to a file for a translator (CSV, XLIFF or the patch file the game reads).
Fill missing translations… Fill empty translations with a machine translation as a first draft. Only on Story texts and Named texts.

The menu, the language button and the search field hide on Languages. Below the controls, information lines can appear, for example The game is running: changes to texts show in it at once.

Each tab is a table on the left and a detail panel on the right. Click a translation cell to type in it. A cell with no text is marked missing. A cell with several lines cannot be edited in the table; use the panel.

Tab What it lists Columns
Story texts The texts written in your story (The texts written in your story, with their translations). Text, Where, Used, then one column per language except the source language.
Named texts Texts you gave a name (Texts you gave a name, for words used in many places). You write them as {text.name}. Name, one column per language, Used.
Languages The languages of your story and how much of it each one has. Language, Code, Has, Falls back to.
Built-in words The words the game writes on its own (and, or, he, she, dates…): translate them in your table. Word, English (built in), one column per language.

The Show menu offers Show: all, then Missing in each language (on Story texts not the source language), then by tab:

Entry Tabs
Needs review, Orphan lines Story texts
Unused named texts, Longer than its limit, Used in a value or a condition Named texts
Has a problem Story texts, Named texts

On Languages, set Source language of the story: the language your story’s own texts are written in. The first time, a dialog Translate the story’s texts says Intrigues keeps the translations in a separate file beside the database, named after it with Translations, and asks Create it now? Press Create or Cancel. The choice None: do not translate the story’s texts leaves only named texts. Without a source language, Story texts says To translate the texts written in your story, choose the language it is written in on the Languages tab.

Press Add a language. A list titled Add language opens with the common languages first, each as its English name followed by the code in brackets. Pick one. It starts empty and shows the texts of the language it falls back to. Select it to change:

Row Meaning Default
Name The name in lists, for example Français. Empty shows the code. The language’s own name
Code Cannot change once the language exists.
Falls back to The language used when a text is missing here. Your story’s language
Plural forms How many forms a word has for numbers: Automatic picks the rule of the code. Automatic
Written right to left For Arabic and Hebrew. Off
Extra font The Resources path of a TextMesh Pro font that has this language’s letters. Empty
Voice clips use The language code of the voice clips. Its own code

Remove… deletes the language and all of its texts, after a dialog. A code longer than 16 characters shows a note: a multiplayer game cannot send it as a player’s language. When a text is missing, show (The name of the text, in braces, Nothing or The source language’s text) is set for the whole story; the first choice is the default.

On Named texts, type a name at the bottom, for example clan_greeting, and press Add a named text (or Return). Select it, then write its text in each language in the panel. Copy puts {text.name} on the clipboard. Rename… renames it everywhere it is written, in one undo step. Delete… removes it from every language. Under For translators, Note is shown next to the text in an exported file, and Longest text sets a length a translation should keep; a longer text is reported and never cut.

On Story texts, type a translation in a language cell, or select the text and write in the panel. The panel shows Text, used in N places with the places, then Translations with a box per language. Needs review marks a translation to look at again. Notes appear when a translation lacks a {value} the written text has, or has one it does not. Add a line adds a text the story does not hold, for a game script to show. A text is stored in the translations file from its first translation on.

If you edit a text in the story, its old translations stay as an orphan: N texts have translations but are not in the story now (the text was edited, or added by hand). Show them lists them. For an orphan the panel offers Move translations to this line (the translations arrive marked Needs review), Show that line and Delete…. Nothing is deleted by itself.

If the game asked for named texts that do not exist while you played in the editor, Story texts offers Add the texts seen while playing (N), which makes them as named texts, empty in every language. On Languages, the heading Automatic translation says which service fills missing translations is set once on Home ▸ Settings, with an Open Settings link.

Under Preview in the panel, pick a Language (the default follows the toolbar’s Preview language) and the Conspirator and Target actors, or press Target as a woman or Target as a man. Names, titles and pronouns are filled in for the two actors. Other values stay as written, and in Play mode the game fills in everything.

Press Fill missing translations…. If no service is chosen, the window says No translation service is chosen. Choose one on Home ▸ Settings, under Automatic translation. Nothing is sent until you do. Otherwise choose Fill: Every empty translation or Only the selected row, and the languages. The window says how many empty translations and characters would be sent, and to which service. Send… asks once more in a dialog Send texts to … ? before anything leaves the computer. Only empty cells are filled, and each story text is marked Needs review.

Press Export…. The window Export texts for translators has File (CSV (for a spreadsheet), XLIFF 1.2 (for translation tools) or Patch file (the game reads it)), Texts (Named texts and story texts, Named texts only, Story texts only), Only what still needs work, Include the built-in words, and a tick box per language. The CSV has the columns Kind, Id, Source, Note, Where and one per language. XLIFF is one file per language. The patch file is the XML the game reads from Assets/StreamingAssets/Intrigues/Texts/. Press Export… again to choose where to save. A message says how many texts were written.

Press Import… and pick a .csv, .xlf or .xliff file. The window Import translations says This is what the import will do. Nothing has been changed yet. It counts what is Updated, Unchanged, New named texts, Orphans and Skipped, lists translations it replaces and {tokens} that differ from the source, and offers a tick box for each language the file brings that the story lacks. Apply writes it as one undo step.

On Built-in words, select a word. Until you translate it, the game uses the English text for every language. Translate in my table adds the word to every language of your story, empty; an empty text reads as missing, so the English stays until you write one. A language with no text reads its fallback language, then the English default.

To undo an edit on this page, use Undo in Unity’s Edit menu.

Separate from the story’s languages, the Studio can show its own labels in another language. This section is read from code, not from settings.json. A drop-down in the header of Home, and a row Studio language under General on the Settings page, offer English and 简体中文 (Beta). The row says: The language of the Studio’s own texts. It is kept on this computer. Your databases and the texts of your story are not changed. The choice is stored in the Editor preference MrW.Intrigues.StudioLanguage, where empty means English. A label with no translation shows in English. In the Chinese (Beta) table only part of the Studio is translated, mostly Home, Settings, the toolbar and node fields. The Texts page and the Behaviour, Looks and Traits pages show English. Every label on this page is written here as the English text.

How to add a language is the short path. To use Unity’s Localization package, see Use Unity’s Localization package and Copy texts to and from Unity Localization. On definition pages, a small button beside a text (hover text Translate: open this text on the Texts page to write it in your other languages.) opens this page on that text. The toolbar’s Preview language is described on The toolbar.

Setting Default
Source language of the story None (no source language)
When a text is missing, show The name of the text, in braces
Falls back to (new language) The story’s language
Plural forms Automatic
Written right to left Off
Service (Automatic translation, on Home ▸ Settings) None: the package never contacts a service
Message What to do
Add a language first: a named text is stored in a language. Add a language on Languages.
Another named text is already called “…”. Pick another name.
Choose the story’s source language on the Languages tab to translate its texts. Set the source language.
These translations belong to another database (a copy of this database shares them). They are shown but never changed from here. Press Make its own copy.
The story’s translations file is missing, so its own texts are shown as written. Press Create translations file.
This name cannot be written inside {text.…}: it has a brace, a bar, a quote, a line break or a space at an end. Rename the named text.
The file could not be read: … Open the file, or export again.
Choose at least one language to export. Tick a language.