oof icon indicating copy to clipboard operation
oof copied to clipboard

[Enhancement] Add a language module

Open LuaFan2 opened this issue 5 years ago • 1 comments

It would be nice (because changing library core files isn't nice) to make a language module to get phrases accorded to specified language from config. Because English language of course is world-wide, but some owners may prefer that players receive information exclusively in their own language. I can translate the phrases into Russian because I have the necessary knowledge. Also if you approve the idea, then soon I can close the issue

LuaFan2 avatar Aug 16 '20 19:08 LuaFan2

That's a great idea, though it presents an interesting implementation problem. It could be a completely separate module, but then you run the risk of NAPI being modified and the language module not having associated strings in certain languages. It would also be a challenge to edit all of the existing NAPI messages from outside of the module.

I think it'd be best to include a shared localization core inside NAPI and then possibly add other languages in that same directory/subdirectory. And then if you want to make a module that supports multiple languages, you can use the localization API that was added to NAPI, but specify all of the strings within your module. Kinda throwing ideas here since we don't have experience in this area.

benank avatar Aug 16 '20 19:08 benank