Hello, I’m trying to use string tables dynamic loaded from CSV files in my project. (Currently, I am using “regular” texts in the game, and I run some scriptlets to generate .po files that the localization team can work with, but I want to stop using these and use only the .csv files.)
However, even with the documentation saying “String Tables provide a way to centralize your localized text into one (or several) known locations, and then reference the entries within a string table from other assets or code in a robust way that allows for easy re-use of localized text.”, it basically stops there, and how to actually implement localized texts using string tables seems necessary to do additional research on Google or ask in the answer hub, like I am doing now. Which is very frustrating…
Anyway, I already able to do some things, like:
- The CSV files are already being loaded with the game module (I am calling the LOCTABLE_FROMFILE_GAME macro in my StartupModule function)
- I am able to use the strings in Blueprints
However, to support multiple languages, I have no idea what I should do. I mean, if I copy the .csv files, translate the strings of each row to another language, what should I do with the file now? Should I run some scriptlet? Should I put the new .csv files in a specific folder? Should I configure something? Should I manually load the .csv files for the language I want?
I’m using UE 4.22.
(Also, the docs say “CSV string tables aren’t staged automatically. It is recommended that you place your CSV string tables in a known folder and then add them to the Additional Non-Asset Directories to Package in your project’s Packaging settings.”, which didn’t work for me. However, I was able to make the string table load in the package build by adding the folder into the Additional Non-Asset Directories to COPY.)