From 7cf9326311907119f8c68c901e17a1881bf40eb7 Mon Sep 17 00:00:00 2001 From: blitzmann Date: Sat, 20 Jun 2020 15:31:10 -0400 Subject: [PATCH] Add language to eos config This should be accessible now when table mapping occurs, so we should be able to use it to determine which column to pull from for translation values. --- config.py | 1 + eos/config.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/config.py b/config.py index 5bdaec471..b039e01e6 100644 --- a/config.py +++ b/config.py @@ -184,6 +184,7 @@ def defPaths(customSavePath=None): # saveddata db location modifier, shouldn't ever need to touch this eos.config.saveddata_connectionstring = "sqlite:///" + saveDB + "?check_same_thread=False" eos.config.gamedata_connectionstring = "sqlite:///" + gameDB + "?check_same_thread=False" + eos.config.lang = language or eos.config.lang # initialize the settings from service.settings import EOSSettings diff --git a/eos/config.py b/eos/config.py index ce612880b..93faea892 100644 --- a/eos/config.py +++ b/eos/config.py @@ -13,6 +13,8 @@ saveddataCache = True gamedata_version = "" gamedata_date = "" gamedata_connectionstring = 'sqlite:///' + realpath(join(dirname(abspath(__file__)), "..", "eve.db")) +lang = "en_US" + pyfalog.debug("Gamedata connection string: {0}", gamedata_connectionstring) if istravis is True or hasattr(sys, '_called_from_test'):