Skip to content

Commit

Permalink
Add portuguese and update all language files with the latest definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
marticliment committed Oct 30, 2021
1 parent eb26a14 commit 811e2a7
Show file tree
Hide file tree
Showing 18 changed files with 89 additions and 2 deletions.
6 changes: 4 additions & 2 deletions elevenclock/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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)))
Expand Down Expand Up @@ -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,
Expand All @@ -1944,6 +1945,7 @@ def getPx(self, original) -> int:
"nb": "Norwegian",
"es": "Spanish",
"pl": "Polish" ,
"pt": "Portuguese",
"ru": "Russian",
"tr": "Turkish",
"vi": "Vietnamese",
Expand Down
5 changes: 5 additions & 0 deletions elevenclock/lang/lang_ca.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 | {
Expand Down
5 changes: 5 additions & 0 deletions elevenclock/lang/lang_de.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 | {
Expand Down
5 changes: 5 additions & 0 deletions elevenclock/lang/lang_el.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 | {
Expand Down
5 changes: 5 additions & 0 deletions elevenclock/lang/lang_en.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 | {
Expand Down
5 changes: 5 additions & 0 deletions elevenclock/lang/lang_es.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 | {
Expand Down
5 changes: 5 additions & 0 deletions elevenclock/lang/lang_fr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 | {
Expand Down
5 changes: 5 additions & 0 deletions elevenclock/lang/lang_it.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 | {
Expand Down
5 changes: 5 additions & 0 deletions elevenclock/lang/lang_ko.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 | {
Expand Down
5 changes: 5 additions & 0 deletions elevenclock/lang/lang_nb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 | {
Expand Down
5 changes: 5 additions & 0 deletions elevenclock/lang/lang_nl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 | {
Expand Down
5 changes: 5 additions & 0 deletions elevenclock/lang/lang_pl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 | {
Expand Down
5 changes: 5 additions & 0 deletions elevenclock/lang/lang_pt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 | {
Expand Down
5 changes: 5 additions & 0 deletions elevenclock/lang/lang_ru.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 | {
Expand Down
5 changes: 5 additions & 0 deletions elevenclock/lang/lang_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 | {
Expand Down
5 changes: 5 additions & 0 deletions elevenclock/lang/lang_tr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 | {
Expand Down
5 changes: 5 additions & 0 deletions elevenclock/lang/lang_vi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 | {
Expand Down
5 changes: 5 additions & 0 deletions elevenclock/lang/lang_zh_TW.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 | {
Expand Down

0 comments on commit 811e2a7

Please sign in to comment.