mirror of
https://github.com/anufrievroman/waypaper.git
synced 2024-11-22 15:46:39 +03:00
Propagate spanish translation to main and app.
This commit is contained in:
parent
e75a485eec
commit
c41b2d926f
@ -10,7 +10,7 @@ from waypaper.changer import change_wallpaper
|
|||||||
from waypaper.common import get_random_file
|
from waypaper.common import get_random_file
|
||||||
from waypaper.config import Config
|
from waypaper.config import Config
|
||||||
from waypaper.options import BACKEND_OPTIONS, FILL_OPTIONS
|
from waypaper.options import BACKEND_OPTIONS, FILL_OPTIONS
|
||||||
from waypaper.translations import Chinese, English, French, German, Polish, Russian
|
from waypaper.translations import Chinese, English, French, German, Polish, Russian, Spanish
|
||||||
|
|
||||||
# Get application metadata.
|
# Get application metadata.
|
||||||
about = AboutData()
|
about = AboutData()
|
||||||
@ -28,6 +28,8 @@ elif cf.lang == "pl":
|
|||||||
txt = Polish()
|
txt = Polish()
|
||||||
elif cf.lang == "zh":
|
elif cf.lang == "zh":
|
||||||
txt = Chinese()
|
txt = Chinese()
|
||||||
|
elif cf.lang == "es":
|
||||||
|
txt = Spanish()
|
||||||
else:
|
else:
|
||||||
txt = English()
|
txt = English()
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ from waypaper.changer import change_wallpaper
|
|||||||
from waypaper.config import Config
|
from waypaper.config import Config
|
||||||
from waypaper.common import get_image_paths, get_random_file, get_monitor_names_hyprctl, get_monitor_names_swww
|
from waypaper.common import get_image_paths, get_random_file, get_monitor_names_hyprctl, get_monitor_names_swww
|
||||||
from waypaper.options import FILL_OPTIONS, SORT_OPTIONS, SORT_DISPLAYS
|
from waypaper.options import FILL_OPTIONS, SORT_OPTIONS, SORT_DISPLAYS
|
||||||
from waypaper.translations import Chinese, English, French, German, Polish, Russian
|
from waypaper.translations import Chinese, English, French, German, Polish, Russian, Spanish
|
||||||
|
|
||||||
gi.require_version("Gtk", "3.0")
|
gi.require_version("Gtk", "3.0")
|
||||||
from gi.repository import Gtk, GdkPixbuf, Gdk, GLib
|
from gi.repository import Gtk, GdkPixbuf, Gdk, GLib
|
||||||
@ -52,7 +52,7 @@ def cache_image(image_path: str, cache_dir: Path) -> None:
|
|||||||
class App(Gtk.Window):
|
class App(Gtk.Window):
|
||||||
"""Main application class that controls GUI"""
|
"""Main application class that controls GUI"""
|
||||||
|
|
||||||
def __init__(self, txt: Chinese|English|French|German|Polish|Russian) -> None:
|
def __init__(self, txt: Chinese|English|French|German|Polish|Russian|Spanish) -> None:
|
||||||
super().__init__(title="Waypaper")
|
super().__init__(title="Waypaper")
|
||||||
self.cf = Config()
|
self.cf = Config()
|
||||||
self.about = AboutData()
|
self.about = AboutData()
|
||||||
|
Loading…
Reference in New Issue
Block a user