mirror of
https://github.com/anufrievroman/waypaper.git
synced 2024-09-11 16:26:14 +03:00
Fixing tranlation import
This commit is contained in:
parent
26371745f0
commit
af7684e96c
@ -10,22 +10,23 @@ from waypaper.changer import change_wallpaper
|
|||||||
from waypaper.common import get_random_file
|
from waypaper.common import get_random_file
|
||||||
from waypaper.aboutdata import AboutData
|
from waypaper.aboutdata import AboutData
|
||||||
from waypaper.options import FILL_OPTIONS, BACKEND_OPTIONS
|
from waypaper.options import FILL_OPTIONS, BACKEND_OPTIONS
|
||||||
|
from waypaper.translations import English, German, French, Russian, Polish, Chinese
|
||||||
|
|
||||||
aboutData = AboutData()
|
aboutData = AboutData()
|
||||||
cf = Config()
|
cf = Config()
|
||||||
|
|
||||||
if cf.lang == "de":
|
if cf.lang == "de":
|
||||||
from waypaper.translations import German as txt
|
txt = German
|
||||||
elif cf.lang == "fr":
|
elif cf.lang == "fr":
|
||||||
from waypaper.translations import French as txt
|
txt = French
|
||||||
elif cf.lang == "ru":
|
elif cf.lang == "ru":
|
||||||
from waypaper.translations import Russian as txt
|
txt = Russian
|
||||||
elif cf.lang == "pl":
|
elif cf.lang == "pl":
|
||||||
from waypaper.translations import Polish as txt
|
txt = Polish
|
||||||
elif cf.lang == "zh":
|
elif cf.lang == "zh":
|
||||||
from waypaper.translations import Chinese as txt
|
txt = Chinese
|
||||||
else:
|
else:
|
||||||
from waypaper.translations import English as txt
|
txt = English
|
||||||
|
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(prog = aboutData.applicationName(), description = txt.msg_desc,
|
parser = argparse.ArgumentParser(prog = aboutData.applicationName(), description = txt.msg_desc,
|
||||||
|
Loading…
Reference in New Issue
Block a user