mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-25 04:02:14 +01:00
add translation for action
This commit is contained in:
@@ -22,6 +22,7 @@ translations = {
|
|||||||
'position': "Posisie",
|
'position': "Posisie",
|
||||||
'state': "Toestand",
|
'state': "Toestand",
|
||||||
'currently': "Tans",
|
'currently': "Tans",
|
||||||
|
'operation': "Operasie",
|
||||||
},
|
},
|
||||||
'ar': {
|
'ar': {
|
||||||
'ACTIVATE': "تفعيل",
|
'ACTIVATE': "تفعيل",
|
||||||
@@ -46,6 +47,7 @@ translations = {
|
|||||||
'position': "موضع",
|
'position': "موضع",
|
||||||
'state': "الحالة",
|
'state': "الحالة",
|
||||||
'currently': "حاليا",
|
'currently': "حاليا",
|
||||||
|
'operation': "الوضع",
|
||||||
},
|
},
|
||||||
'bg': {
|
'bg': {
|
||||||
'ACTIVATE': "Активирай",
|
'ACTIVATE': "Активирай",
|
||||||
@@ -71,6 +73,7 @@ translations = {
|
|||||||
'position': "Позиция",
|
'position': "Позиция",
|
||||||
'state': "Състояние",
|
'state': "Състояние",
|
||||||
'currently': "В момента",
|
'currently': "В момента",
|
||||||
|
'operation': "Режим",
|
||||||
},
|
},
|
||||||
'ca': {
|
'ca': {
|
||||||
'PRESS': "Prem",
|
'PRESS': "Prem",
|
||||||
@@ -97,6 +100,7 @@ translations = {
|
|||||||
'position': "Posició",
|
'position': "Posició",
|
||||||
'state': "Estat",
|
'state': "Estat",
|
||||||
'currently': "Actual",
|
'currently': "Actual",
|
||||||
|
'operation': "Funcionament",
|
||||||
},
|
},
|
||||||
'cs': {
|
'cs': {
|
||||||
'PRESS': "Stisknutí",
|
'PRESS': "Stisknutí",
|
||||||
@@ -123,6 +127,7 @@ translations = {
|
|||||||
'position': "Pozice",
|
'position': "Pozice",
|
||||||
'state': "Stav",
|
'state': "Stav",
|
||||||
'currently': "Aktuálně",
|
'currently': "Aktuálně",
|
||||||
|
'operation': "Provoz",
|
||||||
},
|
},
|
||||||
'da': {
|
'da': {
|
||||||
'PRESS': "Tryk",
|
'PRESS': "Tryk",
|
||||||
@@ -149,6 +154,7 @@ translations = {
|
|||||||
'position': "Position",
|
'position': "Position",
|
||||||
'state': "Tilstand",
|
'state': "Tilstand",
|
||||||
'currently': "Aktuelt",
|
'currently': "Aktuelt",
|
||||||
|
'operation': "Drifttype",
|
||||||
},
|
},
|
||||||
'de': {
|
'de': {
|
||||||
'PRESS': "Drücken",
|
'PRESS': "Drücken",
|
||||||
@@ -175,6 +181,7 @@ translations = {
|
|||||||
'position': "Position",
|
'position': "Position",
|
||||||
'state': "Zustand",
|
'state': "Zustand",
|
||||||
'currently': "Aktuell",
|
'currently': "Aktuell",
|
||||||
|
'operation': "Aktion",
|
||||||
},
|
},
|
||||||
'el': {
|
'el': {
|
||||||
'PRESS': "Πατήστε",
|
'PRESS': "Πατήστε",
|
||||||
@@ -201,6 +208,7 @@ translations = {
|
|||||||
'position': "Θέση",
|
'position': "Θέση",
|
||||||
'state': "Κατάσταση",
|
'state': "Κατάσταση",
|
||||||
'currently': "Αυτή τη στιγμή",
|
'currently': "Αυτή τη στιγμή",
|
||||||
|
'operation': "Λειτουργία",
|
||||||
},
|
},
|
||||||
'en': {
|
'en': {
|
||||||
'PRESS': "Press",
|
'PRESS': "Press",
|
||||||
@@ -227,6 +235,7 @@ translations = {
|
|||||||
'position': "Position",
|
'position': "Position",
|
||||||
'state': "State",
|
'state': "State",
|
||||||
'currently': "Currently",
|
'currently': "Currently",
|
||||||
|
'operation': "Operation",
|
||||||
},
|
},
|
||||||
'es': {
|
'es': {
|
||||||
'PRESS': "Pulsa",
|
'PRESS': "Pulsa",
|
||||||
@@ -253,6 +262,7 @@ translations = {
|
|||||||
'position': "Posición",
|
'position': "Posición",
|
||||||
'state': "Estado",
|
'state': "Estado",
|
||||||
'currently': "Actualmente",
|
'currently': "Actualmente",
|
||||||
|
'operation': "Modo",
|
||||||
},
|
},
|
||||||
'et': {
|
'et': {
|
||||||
'PRESS': "Vajuta nuppu",
|
'PRESS': "Vajuta nuppu",
|
||||||
@@ -279,6 +289,7 @@ translations = {
|
|||||||
'position': "Asend",
|
'position': "Asend",
|
||||||
'state': "Olek",
|
'state': "Olek",
|
||||||
'currently': "Hetkel",
|
'currently': "Hetkel",
|
||||||
|
'operation': "Töörežiim",
|
||||||
},
|
},
|
||||||
'fa': {
|
'fa': {
|
||||||
'ACTIVATE': "فعال سازی",
|
'ACTIVATE': "فعال سازی",
|
||||||
@@ -303,6 +314,7 @@ translations = {
|
|||||||
'position': "موقعیت",
|
'position': "موقعیت",
|
||||||
'state': "حالت",
|
'state': "حالت",
|
||||||
'currently': "در حال حاضر",
|
'currently': "در حال حاضر",
|
||||||
|
'operation': "عملیات",
|
||||||
},
|
},
|
||||||
'fi': {
|
'fi': {
|
||||||
'PRESS': "Paina",
|
'PRESS': "Paina",
|
||||||
@@ -329,6 +341,7 @@ translations = {
|
|||||||
'position': "Sijainti",
|
'position': "Sijainti",
|
||||||
'state': "Tila",
|
'state': "Tila",
|
||||||
'currently': "Tällä hetkellä",
|
'currently': "Tällä hetkellä",
|
||||||
|
'operation': "Toiminto",
|
||||||
},
|
},
|
||||||
'fr': {
|
'fr': {
|
||||||
'PRESS': "Appui",
|
'PRESS': "Appui",
|
||||||
@@ -355,6 +368,7 @@ translations = {
|
|||||||
'position': "Position",
|
'position': "Position",
|
||||||
'state': "État",
|
'state': "État",
|
||||||
'currently': "Actuellement",
|
'currently': "Actuellement",
|
||||||
|
'operation': "Opération",
|
||||||
},
|
},
|
||||||
'he': {
|
'he': {
|
||||||
'PRESS': "לחיצה",
|
'PRESS': "לחיצה",
|
||||||
@@ -381,6 +395,7 @@ translations = {
|
|||||||
'position': "מיקום",
|
'position': "מיקום",
|
||||||
'state': "מצב",
|
'state': "מצב",
|
||||||
'currently': "כעת",
|
'currently': "כעת",
|
||||||
|
'operation': "פעולה",
|
||||||
},
|
},
|
||||||
'hr': {
|
'hr': {
|
||||||
'ACTIVATE': "Aktivirati",
|
'ACTIVATE': "Aktivirati",
|
||||||
@@ -405,6 +420,7 @@ translations = {
|
|||||||
'position': "Pozicija",
|
'position': "Pozicija",
|
||||||
'state': "Stanje",
|
'state': "Stanje",
|
||||||
'currently': "Trenutno",
|
'currently': "Trenutno",
|
||||||
|
'operation': "operacija",
|
||||||
},
|
},
|
||||||
'hu': {
|
'hu': {
|
||||||
'PRESS': "Gombnyomás",
|
'PRESS': "Gombnyomás",
|
||||||
@@ -431,6 +447,7 @@ translations = {
|
|||||||
'position': "Pozíció",
|
'position': "Pozíció",
|
||||||
'state': "Állapot",
|
'state': "Állapot",
|
||||||
'currently': "Jelenleg",
|
'currently': "Jelenleg",
|
||||||
|
'operation': "Működés",
|
||||||
},
|
},
|
||||||
'hy': {
|
'hy': {
|
||||||
'ACTIVATE': "Ակտիվացնել",
|
'ACTIVATE': "Ակտիվացնել",
|
||||||
@@ -454,6 +471,7 @@ translations = {
|
|||||||
'position': "Դիրք",
|
'position': "Դիրք",
|
||||||
'state': "Պետություն",
|
'state': "Պետություն",
|
||||||
'currently': "Ներկայումս",
|
'currently': "Ներկայումս",
|
||||||
|
'operation': "Գործողություն",
|
||||||
},
|
},
|
||||||
'id': {
|
'id': {
|
||||||
'PRESS': "Tekan",
|
'PRESS': "Tekan",
|
||||||
@@ -480,6 +498,7 @@ translations = {
|
|||||||
'position': "Posisi",
|
'position': "Posisi",
|
||||||
'state': "Status",
|
'state': "Status",
|
||||||
'currently': "Saat ini",
|
'currently': "Saat ini",
|
||||||
|
'operation': "Operasi",
|
||||||
},
|
},
|
||||||
'is': {
|
'is': {
|
||||||
'PRESS': "Ýttu á",
|
'PRESS': "Ýttu á",
|
||||||
@@ -505,6 +524,7 @@ translations = {
|
|||||||
'position': "Staðsetning",
|
'position': "Staðsetning",
|
||||||
'state': "Staða",
|
'state': "Staða",
|
||||||
'currently': "Er núna",
|
'currently': "Er núna",
|
||||||
|
'operation': "Aðgerð",
|
||||||
},
|
},
|
||||||
'it': {
|
'it': {
|
||||||
'PRESS': "Premi",
|
'PRESS': "Premi",
|
||||||
@@ -531,6 +551,7 @@ translations = {
|
|||||||
'position': "Apertura",
|
'position': "Apertura",
|
||||||
'state': "Stato",
|
'state': "Stato",
|
||||||
'currently': "Attualmente",
|
'currently': "Attualmente",
|
||||||
|
'operation': "Operazione",
|
||||||
},
|
},
|
||||||
'lb': {
|
'lb': {
|
||||||
'ACTIVATE': "Aktivéieren",
|
'ACTIVATE': "Aktivéieren",
|
||||||
@@ -555,6 +576,7 @@ translations = {
|
|||||||
'position': "Positioun",
|
'position': "Positioun",
|
||||||
'state': "Zoustand",
|
'state': "Zoustand",
|
||||||
'currently': "Momentan",
|
'currently': "Momentan",
|
||||||
|
'operation': "Aktioun",
|
||||||
},
|
},
|
||||||
'lt': {
|
'lt': {
|
||||||
'ACTIVATE': "Suaktyvinti",
|
'ACTIVATE': "Suaktyvinti",
|
||||||
@@ -578,6 +600,7 @@ translations = {
|
|||||||
'position': "Padėtis",
|
'position': "Padėtis",
|
||||||
'state': "Būsena",
|
'state': "Būsena",
|
||||||
'currently': "Šiuo metu",
|
'currently': "Šiuo metu",
|
||||||
|
'operation': "Operacija",
|
||||||
},
|
},
|
||||||
'lv': {
|
'lv': {
|
||||||
'ACTIVATE': "Aktivizēt",
|
'ACTIVATE': "Aktivizēt",
|
||||||
@@ -601,6 +624,7 @@ translations = {
|
|||||||
'position': "Pozīcija",
|
'position': "Pozīcija",
|
||||||
'state': "Stāvoklis",
|
'state': "Stāvoklis",
|
||||||
'currently': "Pašlaik",
|
'currently': "Pašlaik",
|
||||||
|
'operation': "Darbība",
|
||||||
},
|
},
|
||||||
'nb': {
|
'nb': {
|
||||||
'PRESS': "trykk",
|
'PRESS': "trykk",
|
||||||
@@ -627,6 +651,7 @@ translations = {
|
|||||||
'position': "Posisjon",
|
'position': "Posisjon",
|
||||||
'state': "Tilstand",
|
'state': "Tilstand",
|
||||||
'currently': "Er nå",
|
'currently': "Er nå",
|
||||||
|
'operation': "Operasjon",
|
||||||
},
|
},
|
||||||
'nl': {
|
'nl': {
|
||||||
'PRESS': "Klik",
|
'PRESS': "Klik",
|
||||||
@@ -653,6 +678,7 @@ translations = {
|
|||||||
'position': "Positie",
|
'position': "Positie",
|
||||||
'state': "Staat",
|
'state': "Staat",
|
||||||
'currently': "Momenteel",
|
'currently': "Momenteel",
|
||||||
|
'operation': "Werking",
|
||||||
},
|
},
|
||||||
'nn': {
|
'nn': {
|
||||||
'ACTIVATE': "Aktiver",
|
'ACTIVATE': "Aktiver",
|
||||||
@@ -678,6 +704,7 @@ translations = {
|
|||||||
'position': "Posisjon",
|
'position': "Posisjon",
|
||||||
'state': "Tilstand",
|
'state': "Tilstand",
|
||||||
'currently': "Akkurat no",
|
'currently': "Akkurat no",
|
||||||
|
'operation': "Operasjon",
|
||||||
},
|
},
|
||||||
'pl': {
|
'pl': {
|
||||||
'PRESS': "Naciśnij",
|
'PRESS': "Naciśnij",
|
||||||
@@ -704,6 +731,7 @@ translations = {
|
|||||||
'position': "Pozycja",
|
'position': "Pozycja",
|
||||||
'state': "Stan",
|
'state': "Stan",
|
||||||
'currently': "Obecnie",
|
'currently': "Obecnie",
|
||||||
|
'operation': "Tryb pracy",
|
||||||
},
|
},
|
||||||
'pt': {
|
'pt': {
|
||||||
'PRESS': "Pressione",
|
'PRESS': "Pressione",
|
||||||
@@ -729,6 +757,7 @@ translations = {
|
|||||||
'position': "Posição",
|
'position': "Posição",
|
||||||
'state': "Estado",
|
'state': "Estado",
|
||||||
'currently': "Atualmente",
|
'currently': "Atualmente",
|
||||||
|
'operation': "Operação",
|
||||||
},
|
},
|
||||||
'ro': {
|
'ro': {
|
||||||
'ACTIVATE': "Activați",
|
'ACTIVATE': "Activați",
|
||||||
@@ -754,6 +783,7 @@ translations = {
|
|||||||
'position': "Poziţie",
|
'position': "Poziţie",
|
||||||
'state': "Status",
|
'state': "Status",
|
||||||
'currently': "În prezent",
|
'currently': "În prezent",
|
||||||
|
'operation': "Operație",
|
||||||
},
|
},
|
||||||
'ru': {
|
'ru': {
|
||||||
'PRESS': "Нажать",
|
'PRESS': "Нажать",
|
||||||
@@ -780,6 +810,7 @@ translations = {
|
|||||||
'position': "Положение",
|
'position': "Положение",
|
||||||
'state': "Состояние",
|
'state': "Состояние",
|
||||||
'currently': "Сейчас",
|
'currently': "Сейчас",
|
||||||
|
'operation': "Режим работы",
|
||||||
},
|
},
|
||||||
'sk': {
|
'sk': {
|
||||||
'ACTIVATE': "Aktivovať",
|
'ACTIVATE': "Aktivovať",
|
||||||
@@ -805,6 +836,7 @@ translations = {
|
|||||||
'position': "Poloha",
|
'position': "Poloha",
|
||||||
'state': "Stav",
|
'state': "Stav",
|
||||||
'currently': "Aktuálne",
|
'currently': "Aktuálne",
|
||||||
|
'operation': "Prevádzka",
|
||||||
},
|
},
|
||||||
'sl': {
|
'sl': {
|
||||||
'PRESS': "Pritisnite",
|
'PRESS': "Pritisnite",
|
||||||
@@ -830,6 +862,7 @@ translations = {
|
|||||||
'position': "Položaj",
|
'position': "Položaj",
|
||||||
'state': "Stanje",
|
'state': "Stanje",
|
||||||
'currently': "Trenutno",
|
'currently': "Trenutno",
|
||||||
|
'operation': "Delovanje",
|
||||||
},
|
},
|
||||||
'sv': {
|
'sv': {
|
||||||
'PRESS': "Tryck",
|
'PRESS': "Tryck",
|
||||||
@@ -856,6 +889,7 @@ translations = {
|
|||||||
'position': "Position",
|
'position': "Position",
|
||||||
'state': "Tillstånd",
|
'state': "Tillstånd",
|
||||||
'currently': "Nuvarande",
|
'currently': "Nuvarande",
|
||||||
|
'operation': "Driftläge",
|
||||||
},
|
},
|
||||||
'th': {
|
'th': {
|
||||||
'PRESS': "กด",
|
'PRESS': "กด",
|
||||||
@@ -880,6 +914,7 @@ translations = {
|
|||||||
'position': "ตำแหน่ง",
|
'position': "ตำแหน่ง",
|
||||||
'state': "สถานะ",
|
'state': "สถานะ",
|
||||||
'currently': "ในขณะนี้",
|
'currently': "ในขณะนี้",
|
||||||
|
'operation': "การทำงาน",
|
||||||
},
|
},
|
||||||
'tr': {
|
'tr': {
|
||||||
'PRESS': "Basınız",
|
'PRESS': "Basınız",
|
||||||
@@ -906,6 +941,7 @@ translations = {
|
|||||||
'position': "Pozisyon",
|
'position': "Pozisyon",
|
||||||
'state': "Durum",
|
'state': "Durum",
|
||||||
'currently': "Şu an",
|
'currently': "Şu an",
|
||||||
|
'operation': "İşlem",
|
||||||
},
|
},
|
||||||
'uk': {
|
'uk': {
|
||||||
'PRESS': "Натисніть",
|
'PRESS': "Натисніть",
|
||||||
@@ -931,6 +967,7 @@ translations = {
|
|||||||
'position': "Положення",
|
'position': "Положення",
|
||||||
'state': "Статус",
|
'state': "Статус",
|
||||||
'currently': "В даний час",
|
'currently': "В даний час",
|
||||||
|
'operation': "Режим",
|
||||||
},
|
},
|
||||||
'vi': {
|
'vi': {
|
||||||
'ACTIVATE': "Kích hoạt",
|
'ACTIVATE': "Kích hoạt",
|
||||||
@@ -955,6 +992,7 @@ translations = {
|
|||||||
'position': "Vị trí",
|
'position': "Vị trí",
|
||||||
'state': "Trạng thái",
|
'state': "Trạng thái",
|
||||||
'currently': "Hiện tại",
|
'currently': "Hiện tại",
|
||||||
|
'operation': "Chế độ hoạt động",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -965,3 +1003,4 @@ def get_translation(locale, input):
|
|||||||
return translations.get(locale).get(input, en_fallback_res)
|
return translations.get(locale).get(input, en_fallback_res)
|
||||||
else:
|
else:
|
||||||
return en_fallback_res
|
return en_fallback_res
|
||||||
|
|
||||||
|
|||||||
@@ -307,8 +307,9 @@ class LuiPagesGen(object):
|
|||||||
|
|
||||||
currently_translation = get_translation(self._locale, "currently")
|
currently_translation = get_translation(self._locale, "currently")
|
||||||
state_translation = get_translation(self._locale, "state")
|
state_translation = get_translation(self._locale, "state")
|
||||||
|
action_translation = get_translation(self._locale, "operation")
|
||||||
|
|
||||||
command = f"entityUpd~{heading}~{navigation}~{item}~{current_temp} {temperature_unit}~{dest_temp}~{status}~{min_temp}~{max_temp}~{step_temp}{icon_res}~{currently_translation}~{state_translation}~~{temperature_unit_icon}"
|
command = f"entityUpd~{heading}~{navigation}~{item}~{current_temp} {temperature_unit}~{dest_temp}~{status}~{min_temp}~{max_temp}~{step_temp}{icon_res}~{currently_translation}~{state_translation}~{action_translation}~{temperature_unit_icon}"
|
||||||
self._send_mqtt_msg(command)
|
self._send_mqtt_msg(command)
|
||||||
|
|
||||||
def generate_media_page(self, navigation, title, entity):
|
def generate_media_page(self, navigation, title, entity):
|
||||||
|
|||||||
Reference in New Issue
Block a user