Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extend localisation with possibility for having mod specific textfiles #270

Conversation

meszaros-lajos-gyorgy
Copy link
Contributor

@meszaros-lajos-gyorgy meszaros-lajos-gyorgy commented May 22, 2022

The game looks for language files in the following format utext_<language>.ini and if a modder wants to extend the language files then he/she has to include all the strings from the original file.
This modification allows modders to add files, like utext_mymod_english.ini or utext_my_custom_mod_english.ini.

The game will load the language files in the following order: utext_english.ini -> utext_mod1_english.ini -> utext_mod2_english.ini

Remaining todos:

  • update initLocalisation to glob all mod files after loading the main language file.

@Eli2
Copy link
Member

Eli2 commented May 22, 2022

I don't think this is needed the new xtext system should work for that usecase.
Just create a xtext_english_002_mymodname.ini

@meszaros-lajos-gyorgy
Copy link
Contributor Author

Indeed! Closing PR.

@meszaros-lajos-gyorgy meszaros-lajos-gyorgy deleted the feat/5-extend-localisation branch May 22, 2022 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants