Localization Error Demo
V mod for Space Engineers
description
This was created for Keen QA team to test the localization error in their software when implemented in mods. Nothing special here
Here's the bug:
1. Include this mod and load the world save
2. Create a Custom_Cube
3. Open a terminal on the cube (it's a cargo container, so just try and access the cargo)
4. Go to control panel and you see the English name and description of a custom cube
5. Save the world and exit
6. Reload the saved world and check the cube
7. Control panel now shows the localization variable name instead of the translation
This is because Keen is stripping out the {LOC: } wrappers around the variable names before saving that we modders need to use to get the system to recognize we have our own custom localization.
Vanilla Example: DisplayName_Block_SmallCargoContainer
Mod Example: {LOC:DisplayName_Custom_Cube}
So when you create a block you see the translation as expected everywhere in the UI, but when you save and reload you see DisplayName_Custom_Cube in the control panel instead of the translation

0 Comments for Localization Error Demo