make language changeable
This commit is contained in:
@@ -2,7 +2,11 @@ import gettext
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
from settingsstore import SettingsStore
|
||||
|
||||
settings = SettingsStore.load()
|
||||
locale = os.environ['LANG'] if os.environ['LANG'] else "en"
|
||||
locale = settings.session.get('general', 'lang', fallback=locale)
|
||||
|
||||
_ = False
|
||||
src_dir = Path(__file__).resolve().parent.parent
|
||||
|
||||
Reference in New Issue
Block a user