# Let players choose their languages

> Let players pick the language of the text, of the voices and of the subtitles, each language named in its own words, with a question in both languages before a...

Product: Rolly Settings 1.2.0 | Sheet: guide | Updated: 2026-11-22 | HTML: https://rolly-docs.pages.dev/settings/guides/languages/

The Language category comes after Audio as soon as one of its rows shows: Text Language once your game has two languages, Voice Language once you list voice languages, Subtitle Language once a subtitle display registers (Rolly's own display does by default). A game in one language shows no Language category.

![The Language category](https://rolly-docs.pages.dev/settings/_files/Images/LanguageSettings.png "The Language category: Text Language, Voice Language and Subtitle Language.")

## Offer the game's text languages

**Text Language** lists the languages your game has translations for: the culture folders of your localization targets that hold a compiled `.locres` file. Make them in Tools > Localization Dashboard (gather, translate, compile), and package them with Project Settings > Packaging > **Languages to Package** (an advanced field). Set Project Settings > Packaging > **Internationalization Support** to a preset that holds every language you ship (EFIGS, EFIGSCJK, CJK or All): the default, English, has no data to name other languages in their own words, and a packaged Development build says so with a setup warning.

- Each language is named in its own words ("Deutsch", "Español", "日本語"), never translated, in the same order in every interface language: by name with accents ignored, then by script (Latin, Cyrillic, Arabic, Han, Hangul). There are no flags.
- The detail also names the chosen language in the interface language ("Deutsch is German.").
- The default is the language the game picks from the system: the system language or its parent language (French for French Canadian), else your game's native culture. Reset goes back there.
- The player's formats of numbers, dates and times stay while they belong to the language shown: English on a system set to English (United Kingdom) keeps the United Kingdom's formats. Another language brings its own formats.
- **Keep System Locale**, on the binding, changes only the text and keeps the system's formats whatever the language.
- A game with one language changes nothing at the start: the engine's own language and formats stay.

### The language question

A new text language can leave the screen unreadable, so the built-in setting waits for Apply and needs confirmation. The keep-or-revert question then asks in both languages: the title in the new language, the message again in the previous one, the countdown in the previous one, and the buttons name the two languages in their own words, the previous one first and focused. Accept, Back and the end of the countdown all go back. When other settings wait for the answer too, a line names them, in both languages.

![The language question](https://rolly-docs.pages.dev/settings/_files/Images/LanguageDialog.png "Deutsch applied from English: the question in German, then in English, with the way back focused.")

The previous language's lines come from your game's translations of the plugin's texts, so gather the plugin's texts with your game (see [Translate the settings](https://rolly-docs.pages.dev/settings/guides/localization/#gather-the-texts)). A line without a translation shows once, in the language the game shows.

### Where the choice is saved

Rolly Settings saves the value, and outside the editor also writes it where the engine reads it before the first frame, `[Internationalization]` Language in GameUserSettings.ini, so the next start opens in it, loading screens included. Locale is written only for a language the system's formats do not belong to. Choosing the system's own language removes those keys, so the game follows the system again, unless a voice language of its own is chosen (see below). The keys are written once the player keeps the language, and again at every start, in case an update deleted the file.

Launch options (`-culture=`, `-language=` or `-locale=`) set the language at every start: the start keeps theirs, a change the player makes lasts until the game quits, and the setting's detail says so.

### In the editor

During Play In Editor the setting changes the game localization preview, so the editor's own language never changes, and the start follows the editor's **Preview Game Language** (Editor Preferences > Region & Language) instead of the system. Nothing is written to config files.

## Offer voice languages

Localized dialogue loads in the culture of an asset group. To let players pick the voices:

1. Define the group in your project's `Config/DefaultGame.ini`:

   ```ini
   [Internationalization.AssetGroupClasses]
   +Audio=SoundWave
   +Audio=DialogueWave
   ```

2. Project Settings > Plugins > Rolly Settings > **Voice Languages**: list the cultures you recorded dialogue in (`en`, `de`, `fr`). **Voice Asset Group** names the group, Audio unless you named it otherwise.

**Voice Language** then offers **Match Text Language**, the default, followed by those languages. Sounds keep the language they loaded in, so the setting takes effect after a restart: the value is saved on Apply, and the row, the header and the toast say a restart is needed, with "Restart the game to hear voices in Deutsch." in the detail. On Match Text Language a new text language needs a restart for the voices too, and the row says so although its own value did not change. A text language without recorded voices plays the voices of your native culture, and the detail says which ("No voices in Polski, so characters speak English."). Outside the editor the choice is also written to `[Internationalization.AssetGroupCultures]` in GameUserSettings.ini. The engine reads that section at start only beside a language written in the same file, so while the voices have a language of their own, `[Internationalization]` Language is written too, the system's own language included, with the system's formats.

In the editor voices keep their language, because the editor never loads assets of another culture; test it in a packaged build.

## Show subtitles in another language

**Subtitle Language** is for a subtitle display that shows its lines through **Resolve Subtitle Text**: Rolly's own display ([Set up subtitles and the first-launch screen](https://rolly-docs.pages.dev/settings/guides/subtitles-and-first-launch/)), the Rolly Settings Subtitle Text block, or a widget of yours. The engine's canvas subtitles always follow the text language. It offers Match Text Language, then the game's languages, and shows once such a display is registered. It waits for Apply: until then subtitles stay in the language in effect.

The steps below are for a widget of yours; Rolly's display needs none.

### Blueprint

1. When your subtitle widget is constructed: **Get RollySettingsSubsystem**, then **Register Setting User** with the Setting Tag `Rolly.Settings.Language.Subtitles` and User Self.
2. For each line: **Resolve Subtitle Text** with the line's text, and show the result. On Match Text Language it returns the line as it is.
3. When the widget is destructed: **Unregister Setting User**.

**Resolve Subtitle Text** reads your game's compiled translations of the applied language (read once, when the choice applies) and finds the line by its namespace and key, checking that the translation was made from the same source text. Lines from string tables, assets and `LOCTEXT` resolve; a line built while the game runs (Format Text, a number) comes back unchanged. Split-screen players can each have their own: set the setting's Scope to Per Player.

### C++

```cpp
#include "Language/RollySettingsTextResolver.h"
#include "Subsystems/RollySettingsSubsystem.h"

void UMySubtitles::ShowLine(const URollySettingsSubsystem& Settings, const FText& Line)
{
	// In the player's Subtitle Language; FRollySettingsTextResolver::Resolve(Line, TEXT("de")) gives any culture.
	SetLineText(Settings.ResolveSubtitleText(Line));
}
```

## Make every language name readable

Language names are drawn in the theme's Primary Font. Before one shows, the screen checks that the font has all of its characters, in its own typefaces or its fallback but not in the engine's last-resort font. When one is missing, the name shows in the interface language with its code ("Japanese (ja)"), or as the code alone, and a setup warning names the language once per session. The language stays offered, and a player who keeps it gets screens whose translated text the font cannot draw: a packaged game has no last-resort font. Add a font with that script to the theme's Primary Font, for example as a sub-font or fallback of a composite font. The engine's default font draws the names of all the languages the engine is translated into.

## Limits

- Text Language lists the cultures with a compiled translation on disk; a culture you package without one does not show.
- Voice Language takes effect after a restart, since loaded sounds keep their language.
- Subtitle Language works for displays that use Resolve Subtitle Text; the engine's canvas subtitles always use the text language. Lines of the engine's legacy subtitle path arrive without their identity: they resolve only when the shown string is a whole translated text of the current language.
- Names in right-to-left scripts show correctly, but the layouts were not checked for right-to-left text.
- Not yet checked in a packaged build: the start in the saved language, voice languages with recorded dialogue, and fonts for Chinese, Japanese and Korean.
