If you are creating a new localisation file for your mod, the filename must end with _l_english.yml, for example mymod_l_english.yml. It appears no two localisation files can have the same file name.) (NB: this appears to not actually be the case, see for example flavor_bur.21.t in /Europa Universalis IV/localisation/flavor_events_l_english. STRING_WITH_QUOTES: "This string contains \"quotes\", therefore it's awesome!" In order to localize a string with quotes within it, these must first be escaped, like so: If so, the game will fail to parse all the lines that will follow the broken one. While the encodings listed above, UTF-8-BOM and ANSI, both allow for a wide range of characters, only characters that are contained within the CP-1252 set of characters will display correctly in-game.Īlso note that there must not be any space before the : that separates key and value. txt) should be encoded in ANSI and never with BOM. Localisation-files use UTF-8-BOM only, while the game's other text-files (. To ensure the correct encoding, copy a vanilla localization-file or use an advanced editor like Notepad++ to set it using the Convert to …-option within the encoding-menu. If a localisation-file is encoded as a single-byte encoding such as ISO 8859-1, the game will fail to read the file and you will receive Missing Localisation! instead of your intended text-string. The file must be encoded as UTF-8 with a byte order mark (UTF-8-BOM). The number after the colon is a version number. Note the extra space at the beginning of each line except the first, which is needed since each row is a subnode to the node called “l_english”.
Hre_province_restored:0 "Territory restored to the Empire" MENU_MESSAGES_DISABLE_ALL:0 "Disable all"
Localisation files link values in the eu4 files to actual 'texts' or 'strings', any value can be placed in any file, however it is better to keep similar key: value pairs in the same fileĮU4 uses a different localisation system compared to previous Paradox games. This article is timeless and should be accurate for any version of the game.