soxidus / Boardgame-Bot

A Boardgame Bot for your Telegram group to plan/manage gamenights and suggest games to play.
MIT License
2 stars 0 forks source link

English Dialogue option #96

Open karacolada opened 4 years ago

karacolada commented 4 years ago

As of now, the bot commands and answers are mostly in German. I think it would be fairly easy to broaden the language support and support English as well.

My idea would be to have a variable "language" in the configuration file. During ./configure, the categories are set up in the specified language. In main.py, the command handlers get different command names according to the selected language. And instead of having dialogue directly in code, there would be different "dialogue snippets" like "failed command", "register_new_game_player", "register_new_game_title" that are then read from a dialogue file (maybe in JSON, if that makes sense?). The path to this dialogue file can also be set during ./configure - that way, it either reads from the English one ore the German one.