in0finite / SanAndreasUnity

Open source reimplementation of GTA San Andreas game engine in Unity
https://discord.gg/p6jjud5
MIT License
2.15k stars 353 forks source link

GXT Multilingualism support? #24

Closed lexnewgate closed 4 years ago

lexnewgate commented 5 years ago

There is a language setting in GTX importer.

Should I just hardcoded or put it in config?

If put it in config, then where should I put it? Unity Preference or config.json?

Or we just use English Version for now.

in0finite commented 5 years ago

The simplest solution is to only use american.

But if we want to make it multilangual, we should enumerate all files in text directory. This way it will support even additional gxt files (if someone added them). And set american as default.

in0finite commented 5 years ago

The default language could be set in Options (playerprefs), or config.user.json. For now, it's better to put it in config, since gxt is not used yet.

lexnewgate commented 5 years ago

Sure. I will refactor in next two days.