Translation Files

Available translation file types, their descriptions and properties. The majority of the time the key prefix for translation keys need to be included or they won’t work. While this is not always the case, it’s preferable to follow these guidelines to avoid issues with missing translations and to make it cleaner when referencing the translation keys in code or scripts.

The pattern properties are patterns that the translation keys must match in order to be valid, they are simply more specific rules than just the prefix if you are interested in knowing the details. Those were defined from the vanilla translation files for the most part and might be incomplete or too specific.

Attributes

File Name

Attributes

Function

getText

Pattern Properties

^Attributes_Type_[A-Za-z_]+$, ^Attributes_ToosltipOverride_[A-Za-z_]+$

BodyParts

File Name

BodyParts

Function

getText

Pattern Properties

^BODYPART_[A-Z_]+$

Challenge

File Name

Challenge

Function

getText

Key Prefix

Challenge_

Pattern Properties

^Challenge_[A-Za-z0-9\s]+(_[A-Za-z0-9]+|InfoBox)$

ContextMenu

File Name

ContextMenu

Function

getText

Key Prefix

ContextMenu_

Pattern Properties

^ContextMenu_[A-Za-z0-9_]+$

Translations used in the context menus of the game.

Credits_Translator

File Name

Credits_Translator

Provides the names of the translators for the specific language code. This is basically useless for mods and only used by the game.

DynamicRadio

File Name

DynamicRadio

Function

getRadioText

Key Prefix

AEBS_

Pattern Properties

^AEBS_[A-Za-z0-9_]+$

Dynamic radio translations.

Entity

File Name

Entity

Function

getText

Key Prefix

EC_

Pattern Properties

^EC_[A-Za-z_]+$

Translations for entity UIs.

EvolvedRecipeName

File Name

EvolvedRecipeName

Function

Translator.getItemEvolvedRecipeName

Pattern Properties

^[A-Za-z0-9_]+\.[A-Za-z0-9_]+$

Translations for evolved recipe scripts.

Farming

File Name

Farming

Function

getText

Key Prefix

Farming_

Pattern Properties

^Farming_[A-Za-z0-9_\s-]+$

Translations for farming menus.

Fluids

File Name

Fluids

Function

getText

Key Prefix

Fluid_

Pattern Properties

^Fluid_[A-Za-z0-9_]+$

Translations for fluid related UI elements and fluid containers.

GameSound

File Name

GameSound

Function

getText

Key Prefix

GameSound_

Pattern Properties

^GameSound_[A-Za-z0-9_]+$

Game sounds and categories translations.

IG_UI

File Name

IG_UI

Function

getText

Key Prefix

IGUI_

Pattern Properties

^IGUI_[A-Za-z0-9_\s:\.\/'!-]+$

Translations for in-game user interface elements.

ItemName

File Name

ItemName

Function

getItemNameFromFullType

Pattern Properties

^[A-Za-z0-9_]+\.[A-Za-z0-9_]+$

Translations for item scripts. The key needs to be the full type of the item.

language

File Name

language

Used to define a new language for the game. It needs to be stored inside a folder named after the new language code, and the file itself must be named “language.json”.

Location_Generic

A translation file for the map. The filename needs to refer the file “map.info” in the mod’s media folder.

MakeUp

File Name

MakeUp

Function

getText

Pattern Properties

^MakeUp(Category|Type)_[A-Za-z0-9]+$

Translations for make up.

MapLabel

File Name

MapLabel

Function

getText

Key Prefix

MapLabel_

Pattern Properties

^MapLabel_[A-Za-z]+$

Mod

File Name

Mod

Translations for the mod.info file. Possible keys are “name” and “description”.

Moodles

File Name

Moodles

Function

getText

Key Prefix

Moodles_

Pattern Properties

^Moodles_[A-Za-z0-9_]+(_desc)?_lvl0-9$

Moodles status and descriptions translations

Moveables

File Name

Moveables

Function

Translator.getMoveableDisplayName

Pattern Properties

^[A-Za-z0-9_!\s]+$

Moveable tiles as items translations.

MultiStageBuild

File Name

MultiStageBuild

Function

Translator.getMultiStageBuild

Key Prefix

MultiStageBuild_

Pattern Properties

^MultiStageBuild_[A-Za-z0-9_]+$

Translations for multi stage build.

RadioData

File Name

RadioData

Function

getText

Key Prefix

RD_

Pattern Properties

^RD_[a-f0-9-]+$

Radio translations with the key being a GUID of the radio text.

RecipeGroups

File Name

RecipeGroups

Function

Translator.getRecipeGroupName

Key Prefix

RecipeGroup_

Pattern Properties

^RecipeGroup_[A-Za-z]+$

Recipes

File Name

Recipes

Function

getRecipeDisplayName

Pattern Properties

^[A-Za-z0-9_\(\): -]+$

Translations for the craftRecipe scripts. The key needs to be the ID of the craftRecipe block.

Recorded_Media

File Name

Recorded_Media

Function

getText

Key Prefix

RM_

Pattern Properties

^RM_[A-Za-z0-9_-]+$

Recorded media translations with the key being a GUID of the media text.

Sandbox

File Name

Sandbox

Function

getText

Key Prefix

Sandbox_

Pattern Properties

^Sandbox_[A-Za-z0-9_]+(_option[0-9]+|_tooltip)?$

Sandbox options translations.

Stash

File Name

Stash

Function

getText

Key Prefix

Stash_

Pattern Properties

^Stash_[A-Za-z0-9_]+$

Survivor maps translations.

SurvivalGuide

File Name

SurvivalGuide

Function

getText

Key Prefix

SurvivalGuide_

Pattern Properties

^SurvivalGuide_[A-Za-z0-9_]+$

Survival guide translations.

SurvivorNames

File Name

SurvivorNames

Function

getText

Pattern Properties

^Survivor(Name|Surname)_[A-Za-z0-9_\s\.'-]+$

All possible automatic character names. Used for random name generation of the player character or for zombies.

Tooltip

File Name

Tooltip

Function

getText

Key Prefix

Tooltip_

Pattern Properties

^Tooltip_[A-Za-z0-9_]+$

Tooltips used for UIs.

UI

File Name

UI

Function

getText

Key Prefix

UI_

Pattern Properties

^UI_[A-Za-z0-9_\s/\-]+$

Translation file for user interface elements.