Hi,
We’ve been developing an application that uses Unreal’s localization system to translate text in the UI. This works fine when packaging levels into one data file. But to reduce the amount of data that needs to be downloaded, we would like to have the application download levels as they are requested using the “Download maps on the fly” option. Pretty much everything works as we want except that the application doesn’t localize. We do this usually using the FInternationalization::Get().SetCurrentCulture() in C++ and just pass in the locale we want to translate to. I’ve tried passing the “-culture” option when traveling to a new level, but that didn’t seem to work either. It almost seems as if the localization data is either not being packaged or not being loaded in HTML5. Any ideas? Solutions?
Thanks
Are you using a localization target name other than “Game”? We discovered that the cooking/staging logic currently is hard coded to cook/stage only the “Game” target, not others. That issue is filed as Jira ticket UE-20248 currently.
Note: The translations for text in these maps is not located in the maps, but in the binary locres file for the localization target containing the text gathered from those maps. This means that the translations will be present, regardless of the map being downloaded on the fly. It is possible to download the binary locres files separately and load them up as necessary - if this is necessary, we can help you with that.
Aha, I don’t have access to the files at the moment but it is highly likely that I am using a different localization target name. Where do I change that? If I just change that to Game, then the localization files will be able to load? I’ll try that as soon as I get a chance.
I renamed all of my localization files according to this piece of documentation: https://docs.unrealengine.com/latest/INT/Gameplay/Localization/Setup/index.html and it didn’t work.
It should work if you rename the folder to Game - this is a workaround. Unfortunately, the DLC example there doesn’t work because of this issue.