adventurelib icon indicating copy to clipboard operation
adventurelib copied to clipboard

Translation engine (global variables in external module?)

Open XenonLab-Studio opened this issue 7 years ago • 2 comments

I've been looking for a similar project for years. A fantastic job, simple, easy to extend, and written in python! I love this library.

I was thinking that maybe it's a good idea to create external modules with global variables for the translation of the output of the engine. simply recall and use only the module for the desired language and the output will be translated. Obviously it will be enough to include a template module for the translation of the various languages.

Although languages such as Russian, Chinese, Japanese ... at the moment can not be used, I think it is a good solution for all European languages such as German, French, Italian, Spanish etc.

What do you think about it? I'm experimenting with a simple and effective solution.

XenonLab-Studio avatar Apr 28 '18 23:04 XenonLab-Studio

The gettext module in the Python standard library would offer support for this, and it's not actually that hard to use. It just needs documentation on how to use it with adventurelib.

lordmauve avatar Jul 28 '18 11:07 lordmauve

I've been looking for a similar project for years. A fantastic job, simple, easy to extend, and written in python! I love this library.

Thanks! :smile:

lordmauve avatar Jul 28 '18 11:07 lordmauve