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.
This commit is contained in:
blitzmann
2020-06-20 15:31:10 -04:00
parent 2214269cca
commit 7cf9326311
2 changed files with 3 additions and 0 deletions

View File

@@ -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

View File

@@ -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'):