I created a Spanish localization languaje for my game:
Gathered, counted, compiled…everything looks good.
I test it in the editor by changing editor preferences and works.
I checked and adjusted all my widgets and I can swap language pressing the world icon on the top.
Everything looks ok.
I have the Localization\Game folder and inside I have both english and spanish:
both en and en-ES folders contain two files:
localization to package:
I want to change language at runtime for testing by using this:
when switching to english it seems to work ok. this is the log:
LogPackageLocalizationCache: Processed 36 localized package path(s) for 1 prioritized culture(s) in 0.013046 seconds
LogSlate: FontCache flush requested. Reason: Culture for localization was changed
LogBlueprintUserMessages: [PC_MainMenu_C_0] Server: english
LogSlate: InvalidateAllWidgets triggered. All widgets were invalidated
LogSlate: Took 0.000198 seconds to synchronously load lazily loaded font '../../../Engine/Content/Slate/Fonts/Roboto-Regular.ttf' (155K)
LogSlate: Took 0.000168 seconds to synchronously load lazily loaded font '../../../Engine/Content/Slate/Fonts/DroidSansMono.ttf' (77K)
LogSlate: Took 0.000130 seconds to synchronously load lazily loaded font '../../../Engine/Content/Slate/Fonts/Roboto-Bold.ttf' (160K)```
but when I try to go to spanish is not working and I got this:
LogPackageLocalizationCache: Processed 36 localized package path(s) for 2 prioritized culture(s) in 0.014923 seconds
LogSlate: FontCache flush requested. Reason: Culture for localization was changed
LogTextLocalizationResource: LocRes '../../../Engine/Content/Localization/Editor/es-ES/Editor.locres' could not be opened for reading!
LogTextLocalizationResource: LocRes '../../../Engine/Content/Localization/EditorTutorials/es-ES/EditorTutorials.locres' could not be opened for reading!
LogTextLocalizationResource: LocRes '../../../Engine/Content/Localization/Keywords/es-ES/Keywords.locres' could not be opened for reading!
LogTextLocalizationResource: LocRes '../../../Engine/Content/Localization/Category/es-ES/Category.locres' could not be opened for reading!
LogTextLocalizationResource: LocRes '../../../Engine/Content/Localization/ToolTips/es-ES/ToolTips.locres' could not be opened for reading!
LogTextLocalizationResource: LocRes '../../../Engine/Content/Localization/PropertyNames/es-ES/PropertyNames.locres' could not be opened for reading!
LogTextLocalizationResource: LocRes '../../../Engine/Content/Localization/Engine/es-ES/Engine.locres' could not be opened for reading!
LogTextLocalizationResource: LocRes '../../../Engine/Plugins/Online/OnlineFramework/Content/Localization/OnlineFramework/es-ES/OnlineFramework.locres' could not be opened for reading!
LogTextLocalizationResource: LocRes '../../../Engine/Plugins/Online/OnlineSubsystem/Content/Localization/OnlineSubsystem/es-ES/OnlineSubsystem.locres' could not be opened for reading!
LogTextLocalizationResource: LocRes '../../../Engine/Plugins/Online/OnlineSubsystemUtils/Content/Localization/OnlineSubsystemUtils/es-ES/OnlineSubsystemUtils.locres' could not be opened for reading!
LogTextLocalizationResource: LocRes '../../../Engine/Content/Localization/Editor/es/Editor.locres' could not be opened for reading!
LogTextLocalizationResource: LocRes '../../../Engine/Content/Localization/EditorTutorials/es/EditorTutorials.locres' could not be opened for reading!
LogTextLocalizationResource: LocRes '../../../Engine/Content/Localization/Keywords/es/Keywords.locres' could not be opened for reading!
LogTextLocalizationResource: LocRes '../../../Engine/Content/Localization/Category/es/Category.locres' could not be opened for reading!
LogTextLocalizationResource: LocRes '../../../Engine/Content/Localization/ToolTips/es/ToolTips.locres' could not be opened for reading!
LogTextLocalizationResource: LocRes '../../../Engine/Content/Localization/PropertyNames/es/PropertyNames.locres' could not be opened for reading!
LogTextLocalizationResource: LocRes '../../../Engine/Content/Localization/Engine/es/Engine.locres' could not be opened for reading!
LogBlueprintUserMessages: [PC_MainMenu_C_0] Server: spanish
LogSlate: InvalidateAllWidgets triggered. All widgets were invalidated
I also added this in my DefaultEngine.ini:
[Internationalization]
+CulturesToStage=en
+CulturesToStage=es-ES
and this in my DefaultGame.ini:
[Internationalization]
Culture=en
still not working.
I just get Spanish if I set it in the editor preferences like this:
any help?