diff options
Diffstat (limited to 'src/translation.cpp')
-rw-r--r-- | src/translation.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/translation.cpp b/src/translation.cpp index d17467ce7..8bbaee0a3 100644 --- a/src/translation.cpp +++ b/src/translation.cpp @@ -20,9 +20,18 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "translation.h" #include "log.h" #include "util/string.h" +#include <unordered_map> -static Translations main_translations; -Translations *g_translations = &main_translations; + +#ifndef SERVER +// Client translations +Translations client_translations; +Translations *g_client_translations = &client_translations; +#endif + +// Per language server translations +std::unordered_map<std::string,Translations> server_translations; +std::unordered_map<std::string,Translations> *g_server_translations = &server_translations; Translations::~Translations() { |