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:
@@ -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
|
||||
|
||||
@@ -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'):
|
||||
|
||||
Reference in New Issue
Block a user