diff --git a/elevenclock/__init__.py b/elevenclock/__init__.py index e8f0e2fb..2e182d74 100644 --- a/elevenclock/__init__.py +++ b/elevenclock/__init__.py @@ -26,7 +26,7 @@ from pynput.keyboard import Controller, Key from pynput.mouse import Controller as MouseController -from lang import lang_de, lang_fr, lang_ca, lang_es, lang_ru, lang_en, lang_tr, lang_pl, lang_it, lang_nl, lang_nb, lang_ko, lang_vi, lang_el, lang_zh_TW +from lang import lang_de, lang_fr, lang_ca, lang_es, lang_ru, lang_en, lang_tr, lang_pl, lang_it, lang_nl, lang_nb, lang_ko, lang_vi, lang_el, lang_zh_TW, lang_pt old_stdout = sys.stdout # Memorize the default stdout stream sys.stdout = buffer = io.StringIO() @@ -1195,7 +1195,7 @@ def restartElevenClockByLangChange(): self.updatesChBx.setChecked((getSettings("ForceLightTheme"))) self.updatesChBx.stateChanged.connect(lambda i: setSettings("ForceLightTheme", bool(i))) layout.addWidget(self.updatesChBx) - self.updatesChBx = QSettingsCheckBox(_("Force the clock to have white text")+" - It is required that the Dark Text checkbox is disabled") + self.updatesChBx = QSettingsCheckBox(_("Force the clock to have white text")+_(" - It is required that the Dark Text checkbox is disabled")) self.updatesChBx.setChecked((getSettings("ForceDarkTheme"))) self.updatesChBx.setStyleSheet(f"QWidget#stChkBg{{border-bottom-left-radius: {self.getPx(6)}px;border-bottom-right-radius: {self.getPx(6)}px;border-bottom: 1px;}}") self.updatesChBx.stateChanged.connect(lambda i: setSettings("ForceDarkTheme", bool(i))) @@ -1925,6 +1925,7 @@ def getPx(self, original) -> int: "nb": lang_nb, "nl": lang_nl, "pl": lang_pl, + "pt": lang_pt, "ru": lang_ru, "tr": lang_tr, "vi": lang_vi, @@ -1944,6 +1945,7 @@ def getPx(self, original) -> int: "nb": "Norwegian", "es": "Spanish", "pl": "Polish" , + "pt": "Portuguese", "ru": "Russian", "tr": "Turkish", "vi": "Vietnamese", diff --git a/elevenclock/lang/lang_ca.py b/elevenclock/lang/lang_ca.py index a3ccbfa5..4f41755e 100644 --- a/elevenclock/lang/lang_ca.py +++ b/elevenclock/lang/lang_ca.py @@ -8,6 +8,11 @@ lang2_5 = { "Hide the clock when RDP Client or Citrix Workspace are running": "Oculta el rellotge si s'està fent servir el client d'Escriptori Remot o el Citrix Workspace", + "Clock Appearance:": "Aparença del rellotge:", + "Force the clock to have black text": "Força el rellotge a tenir el text de color negre", + " - It is required that the Dark Text checkbox is disabled": " - Es necessita que la opció de Text de Color Negre estigui desactivada", + "Debbugging information:": "Informació de depuració", + "Open ElevenClock's log": "Obre el registre de l'ElevenClock", } lang2_4 = lang2_5 | { diff --git a/elevenclock/lang/lang_de.py b/elevenclock/lang/lang_de.py index af822d55..01b5c391 100644 --- a/elevenclock/lang/lang_de.py +++ b/elevenclock/lang/lang_de.py @@ -8,6 +8,11 @@ lang2_5 = { "Hide the clock when RDP Client or Citrix Workspace are running": "", + "Clock Appearance:": "", + "Force the clock to have black text": "", + " - It is required that the Dark Text checkbox is disabled": "", + "Debbugging information:": "", + "Open ElevenClock's log": "", } lang2_4 = lang2_5 | { diff --git a/elevenclock/lang/lang_el.py b/elevenclock/lang/lang_el.py index 4204c4b0..ba38f98b 100644 --- a/elevenclock/lang/lang_el.py +++ b/elevenclock/lang/lang_el.py @@ -8,6 +8,11 @@ lang2_5 = { "Hide the clock when RDP Client or Citrix Workspace are running": "", + "Clock Appearance:": "", + "Force the clock to have black text": "", + " - It is required that the Dark Text checkbox is disabled": "", + "Debbugging information:": "", + "Open ElevenClock's log": "", } lang2_4 = lang2_5 | { diff --git a/elevenclock/lang/lang_en.py b/elevenclock/lang/lang_en.py index 3883f6c9..cdc11c3c 100644 --- a/elevenclock/lang/lang_en.py +++ b/elevenclock/lang/lang_en.py @@ -8,6 +8,11 @@ lang2_5 = { "Hide the clock when RDP Client or Citrix Workspace are running": "", + "Clock Appearance:": "", + "Force the clock to have black text": "", + " - It is required that the Dark Text checkbox is disabled": "", + "Debbugging information:": "", + "Open ElevenClock's log": "", } lang2_4 = lang2_5 | { diff --git a/elevenclock/lang/lang_es.py b/elevenclock/lang/lang_es.py index cc29c790..e9081ba8 100644 --- a/elevenclock/lang/lang_es.py +++ b/elevenclock/lang/lang_es.py @@ -8,6 +8,11 @@ lang2_5 = { "Hide the clock when RDP Client or Citrix Workspace are running": "Ocultar el reloj si se está ejecutando el cliente de Escritorio Remoto o Citrix Workspace", + "Clock Appearance:": "Apariencia del reloj:", + "Force the clock to have black text": "Fuerza al reloj a mostrar el texto en negro", + " - It is required that the Dark Text checkbox is disabled": " - Se necesita que la opción de Texto en Negro esté desactivada", + "Debbugging information:": "Información de depuración", + "Open ElevenClock's log": "Abrir el regostro de ElevenClock", } lang2_4 = lang2_5 | { diff --git a/elevenclock/lang/lang_fr.py b/elevenclock/lang/lang_fr.py index 0c94a17b..ae6b088a 100644 --- a/elevenclock/lang/lang_fr.py +++ b/elevenclock/lang/lang_fr.py @@ -8,6 +8,11 @@ lang2_5 = { "Hide the clock when RDP Client or Citrix Workspace are running": "", + "Clock Appearance:": "", + "Force the clock to have black text": "", + " - It is required that the Dark Text checkbox is disabled": "", + "Debbugging information:": "", + "Open ElevenClock's log": "", } lang2_4 = lang2_5 | { diff --git a/elevenclock/lang/lang_it.py b/elevenclock/lang/lang_it.py index f30a627e..773c9583 100644 --- a/elevenclock/lang/lang_it.py +++ b/elevenclock/lang/lang_it.py @@ -8,6 +8,11 @@ lang2_5 = { "Hide the clock when RDP Client or Citrix Workspace are running": "", + "Clock Appearance:": "", + "Force the clock to have black text": "", + " - It is required that the Dark Text checkbox is disabled": "", + "Debbugging information:": "", + "Open ElevenClock's log": "", } lang2_4 = lang2_5 | { diff --git a/elevenclock/lang/lang_ko.py b/elevenclock/lang/lang_ko.py index 4433aed6..bb7423ae 100644 --- a/elevenclock/lang/lang_ko.py +++ b/elevenclock/lang/lang_ko.py @@ -8,6 +8,11 @@ lang2_5 = { "Hide the clock when RDP Client or Citrix Workspace are running": "", + "Clock Appearance:": "", + "Force the clock to have black text": "", + " - It is required that the Dark Text checkbox is disabled": "", + "Debbugging information:": "", + "Open ElevenClock's log": "", } lang2_4 = lang2_5 | { diff --git a/elevenclock/lang/lang_nb.py b/elevenclock/lang/lang_nb.py index fb1d59f2..2256e610 100644 --- a/elevenclock/lang/lang_nb.py +++ b/elevenclock/lang/lang_nb.py @@ -8,6 +8,11 @@ lang2_5 = { "Hide the clock when RDP Client or Citrix Workspace are running": "", + "Clock Appearance:": "", + "Force the clock to have black text": "", + " - It is required that the Dark Text checkbox is disabled": "", + "Debbugging information:": "", + "Open ElevenClock's log": "", } lang2_4 = lang2_5 | { diff --git a/elevenclock/lang/lang_nl.py b/elevenclock/lang/lang_nl.py index 3c724c2b..b0c1499b 100644 --- a/elevenclock/lang/lang_nl.py +++ b/elevenclock/lang/lang_nl.py @@ -8,6 +8,11 @@ lang2_5 = { "Hide the clock when RDP Client or Citrix Workspace are running": "", + "Clock Appearance:": "", + "Force the clock to have black text": "", + " - It is required that the Dark Text checkbox is disabled": "", + "Debbugging information:": "", + "Open ElevenClock's log": "", } lang2_4 = lang2_5 | { diff --git a/elevenclock/lang/lang_pl.py b/elevenclock/lang/lang_pl.py index 06af5c49..2aa7c884 100644 --- a/elevenclock/lang/lang_pl.py +++ b/elevenclock/lang/lang_pl.py @@ -8,6 +8,11 @@ lang2_5 = { "Hide the clock when RDP Client or Citrix Workspace are running": "Ukryj zegar, gdy działa klient RDP lub Citrix Workspace", + "Clock Appearance:": "", + "Force the clock to have black text": "", + " - It is required that the Dark Text checkbox is disabled": "", + "Debbugging information:": "", + "Open ElevenClock's log": "", } lang2_4 = lang2_5 | { diff --git a/elevenclock/lang/lang_pt.py b/elevenclock/lang/lang_pt.py index c235236a..ba710e8a 100644 --- a/elevenclock/lang/lang_pt.py +++ b/elevenclock/lang/lang_pt.py @@ -8,6 +8,11 @@ lang2_5 = { "Hide the clock when RDP Client or Citrix Workspace are running": "Esconder as horas quando o Ambiente de Trabalho Remoto ou o Citrix Workspace estiverem em execução", + "Clock Appearance:": "", + "Force the clock to have black text": "", + " - It is required that the Dark Text checkbox is disabled": "", + "Debbugging information:": "", + "Open ElevenClock's log": "", } lang2_4 = lang2_5 | { diff --git a/elevenclock/lang/lang_ru.py b/elevenclock/lang/lang_ru.py index 376fc839..75f691ba 100644 --- a/elevenclock/lang/lang_ru.py +++ b/elevenclock/lang/lang_ru.py @@ -8,6 +8,11 @@ lang2_5 = { "Hide the clock when RDP Client or Citrix Workspace are running": "", + "Clock Appearance:": "", + "Force the clock to have black text": "", + " - It is required that the Dark Text checkbox is disabled": "", + "Debbugging information:": "", + "Open ElevenClock's log": "", } lang2_4 = lang2_5 | { diff --git a/elevenclock/lang/lang_sample.py b/elevenclock/lang/lang_sample.py index 3883f6c9..cdc11c3c 100644 --- a/elevenclock/lang/lang_sample.py +++ b/elevenclock/lang/lang_sample.py @@ -8,6 +8,11 @@ lang2_5 = { "Hide the clock when RDP Client or Citrix Workspace are running": "", + "Clock Appearance:": "", + "Force the clock to have black text": "", + " - It is required that the Dark Text checkbox is disabled": "", + "Debbugging information:": "", + "Open ElevenClock's log": "", } lang2_4 = lang2_5 | { diff --git a/elevenclock/lang/lang_tr.py b/elevenclock/lang/lang_tr.py index 08497a68..26a5cd40 100644 --- a/elevenclock/lang/lang_tr.py +++ b/elevenclock/lang/lang_tr.py @@ -8,6 +8,11 @@ lang2_5 = { "Hide the clock when RDP Client or Citrix Workspace are running": "", + "Clock Appearance:": "", + "Force the clock to have black text": "", + " - It is required that the Dark Text checkbox is disabled": "", + "Debbugging information:": "", + "Open ElevenClock's log": "", } lang2_4 = lang2_5 | { diff --git a/elevenclock/lang/lang_vi.py b/elevenclock/lang/lang_vi.py index 2c9ba872..314338ea 100644 --- a/elevenclock/lang/lang_vi.py +++ b/elevenclock/lang/lang_vi.py @@ -8,6 +8,11 @@ lang2_5 = { "Hide the clock when RDP Client or Citrix Workspace are running": "", + "Clock Appearance:": "", + "Force the clock to have black text": "", + " - It is required that the Dark Text checkbox is disabled": "", + "Debbugging information:": "", + "Open ElevenClock's log": "", } lang2_4 = lang2_5 | { diff --git a/elevenclock/lang/lang_zh_TW.py b/elevenclock/lang/lang_zh_TW.py index 097f56c7..26805d34 100644 --- a/elevenclock/lang/lang_zh_TW.py +++ b/elevenclock/lang/lang_zh_TW.py @@ -8,6 +8,11 @@ lang2_5 = { "Hide the clock when RDP Client or Citrix Workspace are running": "", + "Clock Appearance:": "", + "Force the clock to have black text": "", + " - It is required that the Dark Text checkbox is disabled": "", + "Debbugging information:": "", + "Open ElevenClock's log": "", } lang2_4 = lang2_5 | {