Localization
The loading screen's texts in the player's language: the tips, the maps' titles and names, the launch title and the status line.
On this page
In a game on Direct3D 12, Windows 64-bit, Neo Async Loading Screen's own thread draws the loading screen while the engine loads, except a screen whose texts Unreal shapes on the game thread only (Fonts and scripts).
The plugin's own texts are in English, and your project translates them with its own, as Neo Settings does. There is no language setting to make: the screen shows its texts in the player's language, the one the game runs in (or, when Unreal fell back from the language the player asked for, that language from your .po files: see Where they go). Two routes work together, Unreal's first:
- Unreal's own localization: the Localization Dashboard gathers the tips you type in Project Settings or the Setup tab with the rest of your game's texts, and String Tables carry any recipe text;
- translation files (
.po) inConfig/: no Localization Dashboard needed, no setting to turn on;Neo Loading Screen/ loc - and, from Blueprint or C++,
Set Next Loading Screen Contentshows the Text you give it, translated as Unreal translates it.
For a text both routes translate, your project's own localization wins. The screen reads the player's language when it shows: a language changed while playing applies from the next screen on, its tip included.
Unreal's Localization Dashboard
The tips you type in Project Settings or in the Setup tab are ordinary texts of your project, saved in Config/. To gather them with the rest of your game's texts:
- Open the Localization Dashboard (in the Tools menu) and select your game's target.
- Under Gather Text, turn on Gather from Text Files and add
Configto its Search Directories (keep theinifile extension, there by default). Your tips are saved inConfig/.Default Game. ini - Gather, translate each culture, then compile, as for the rest of your game.
The screen then shows each tip in the player's language, as Unreal shows your other texts, in a packaged game as in the editor.
The Dashboard does not read .hload files. To translate a recipe's text through it rather than with a .po file, make a String Table whose namespace is the recipe's (Neo unless the recipe names another), and give it an entry whose key is the text's key (see Keys) and whose source string is the recipe's English, word for word. Gather it with your packages and translate it: the screen finds the translation by namespace and key, and only while the English still matches.
Tips of Project Settings and the Setup tab
Project Settings > Plugins > Neo Async Loading Screen > Content > Tips lists your tips, each with its Text and its Key.
- The Setup tab gives every tip you add a key of its own, made from its first words (
fire_), orspreads_ fast tip_3for a tip written in another alphabet. A key never changes after. - The text is saved in
Defaultas a localizable text, namespaceGame. ini Neo, keyLoading Screen. Project loading.: the Localization Dashboard gathers it (above). Retyping a tip keeps its key.tip. <Key> - A tip can take its text from a String Table: in Project Settings, open the options next to the tip's Text and pick the table and its entry. The Setup tab then shows that tip read-only; edit its text in the table.
The screen shows these tips in the player's language when your project's localization has a translation for them, a String Table's included. Otherwise a .po entry with their key translates them, like any other text.
Translation files
Where they go
Put one file per language in your project's Config/ folder, named after the culture: fr.po, de.po, pt-BR.po, zh-Hans.po. The folder is staged with a packaged game.
- Your files are read after the plugin's own: for the same text, yours wins.
- A regional culture falls back to its language: a player in
fr-CAgetsfr.powhen there is nofr-CA.po. - They are read again every time the recipes are compiled (saving a recipe, Reload Recipes, the export below): a translation you save shows at the next screen.
- A player whose language your game has no Unreal localization of its own in (Unreal then starts the game in another language, and its log says "No localization for 'ja' exists") still sees the screen's texts in that language when a
.pofile of it is there: the screen takes the language the player asked for (the command line's-culture, the game's settings, the system's) as long as the game has not changed its language since it started. - What the plugin cannot use in a file (an entry without its
msgctxtline, for instance) is written to the Output Log with its line, once, and again after you edit the file. - A translation whose English has changed since it was written, or that is marked fuzzy, is not shown: the English shows until the translation is checked.
Make one
In the editor's console (the ~ key, or the command line under the Output Log):
NeoLoadingScreen.Loc.Export frThis writes Config/ with every text of your recipes and Project Settings, ready to translate in any .po editor. Keep the msgctxt lines as they are: they tell the plugin which text each translation belongs to.
Besides your texts, the file lists the plugin's own: the status line's (below) and the titles of its two example maps, Example Map and Example Destination (Examples), which show only on those maps. Left untranslated, those two count among the texts that show in English (HLP027).
Run the same command again whenever your texts change: the translations already written are kept, a text whose English changed is marked fuzzy (its old translation stays there for the translator), and texts that are gone are dropped. Neo writes the template, Neo, for translation tools; the game never reads it. A file that does not read as a .po is never written over: the command says what is wrong in it. The Setup tab's checklist says when a file has texts that show in English (HLP027, information: run the command above to update the file) and when a file does not read (HLP030).
The status line
The status line's texts (loading_, "Connecting", and the others) ship in English only. They are in each exported file: translate them there, like your own texts.
Keys
Each text is found by its namespace and its key, the two halves of its msgctxt line (<namespace>:). The namespace is Neo, or the one a recipe names with its namespace "..." line.
| Text | Key |
|---|---|
| A tip with its own key | loading. |
| A tip without one | loading.: its place in the list, from 0, tips with a key counted |
| A map rule's tip | map., or map. |
| A map rule's title | map. |
A strings entry | ui. |
| The launch title | startup.title |
A tip of Project Settings (namespace Neo) | loading., or loading. |
A key by position follows the tip's place in its list: insert or move a tip and the translations after it no longer match. Give your tips a key of their own:
loading {
tip "Fire spreads fast in dry grass." { key fire }
tip "Wet wood smokes: it gives you away." { key smoke }
}
map "L_Harbor" { tip "The harbor floods at night." { key flood } }A key is 1 to 40 characters of a to z, 0 to 9 and _, and starts with a letter. A key with other characters (HL435) and a key already given to another tip of the same list (HL434) are refused: that tip keeps its position's key. key written twice in one tip keeps the first (HL405).
From Blueprint or C++
Set Next Loading Screen Content sets the next screen's title, tip and image with your own Text. A text from your String Tables, or one your localization gathers, is shown in the player's language as Unreal shows it everywhere else. Set Next Loading Screen Tip shows one of the recipe's tips by its key, translated like the others (API Reference).
Images carry no words
Write the words players read in tips and titles, never inside your loading images or a tip's own image or video: they are the same in each language, while the tip drawn over them is translated.
Fonts and scripts
These scripts are drawn with real glyphs by each text of each shipped style (the plugin's tests check letters of each one in the title, tip and status line of every style):
- Western European Latin, Cyrillic and Greek;
- Arabic and Thai;
- Chinese and Japanese characters (Han), Japanese kana, Korean Hangul.
The styles' own faces cover Western European Latin, and some of them Cyrillic or Greek (the Base style's faces carry both, in all three of its texts); what a face lacks comes from the engine's fonts that ship with Unreal games. A face without the Greek final sigma draws none of its Greek: the engine's face draws all of it.
Latin letters beyond Western Europe are not drawn by every text. The faces of the Arcade, Holo, Pixel, Sumi and Frontier styles' titles, and of the Arcade style's status line, lack the Central European and Turkish letters (such as ą, č, ğ, ş, ő and ă), and many faces lack the letters of Vietnamese. Those letters would show as empty boxes there.
Not drawn today: Hebrew (only the Arcade style's title and status line and the Retrowave style's tip have it), Devanagari and the other scripts of India, and any script none of these fonts has. Their letters would show as empty boxes.
Limits:
- Unreal shapes right-to-left texts (Arabic, Hebrew), Thai, the scripts of India, emoji and texts with combining marks on its game thread only (and every text, when your project sets
Slate.to 2). A screen with such a text, or shown in such a language, is drawn by the game layer alone, as withDefault Text Shaping Method engine { thread off }: it holds its last frame while the game thread is blocked by a load (While the Engine Loads); the log says so once a game (HLP406). A status line set with such a text while the screen's own thread draws (insideFNeo) shows once the game thread is back, and the screens after it are the game layer's while it is set.Loading Screen Blocking Scope - Chinese, Japanese and Korean share one face: their characters are not drawn in each region's forms, and in one weight only (no bold).
- Right-to-left texts (Arabic, Hebrew) are shaped, but the screen's layout is not mirrored: the texts stay at the bottom left, each against the left edge of the column as in a left-to-right language, and the activity mark stays at the bottom right. A right-to-left text that wraps aligns its shorter lines to the right of its longest one. A text with right-to-left letters is drawn without its style's letter spacing, which would break the joined letters of Arabic.
- A style that writes its title in capitals raises the letters of your translation with the rules of the player's language. Scripts without capitals are unchanged.
- Through Unreal's game language preview, the editor still shows the screen in the editor's language, and so does the Setup tab's preview. To check a language, launch the game with
-culture=fr(a standalone game, or a packaged build).
Something not as described? Every code the editor or the log shows has its own entry in Troubleshooting.