From 97ffd037cd978db8837545a2de556173371622ce Mon Sep 17 00:00:00 2001 From: Anish Sane Date: Wed, 16 Aug 2023 19:26:33 +0530 Subject: [PATCH 1/2] Add CECstandby option in the power menu. For regular set top box users, it is convinient to be able to turn off the TV from the set top box menu. With running Kodi on single-board-computers like RaspberryPi being common, this button provides an easier option to turn off the TV. --- xml/DialogButtonMenu.xml | 9 +++++++++ xml/Embuary_SkinSettings.xml | 8 +++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/xml/DialogButtonMenu.xml b/xml/DialogButtonMenu.xml index 8e22e5bd..3a0bf4ec 100644 --- a/xml/DialogButtonMenu.xml +++ b/xml/DialogButtonMenu.xml @@ -150,6 +150,15 @@ + + + + PlayerControl(Stop) + Dialog.Close(all,true) + CECStandby + red + Skin.HasSetting(ShowCecStandby) + diff --git a/xml/Embuary_SkinSettings.xml b/xml/Embuary_SkinSettings.xml index f3a7376a..dd040e60 100644 --- a/xml/Embuary_SkinSettings.xml +++ b/xml/Embuary_SkinSettings.xml @@ -857,6 +857,12 @@ System.HasShutdown + + SettingsButton + Skin.ToggleSetting(ShowCecStandby) + Skin.HasSetting(ShowCecStandby) + + @@ -969,4 +975,4 @@ - \ No newline at end of file + From 24893df94594fc7d3679d4cfafe1752fdbd45f27 Mon Sep 17 00:00:00 2001 From: Anish Sane Date: Wed, 16 Aug 2023 20:30:42 +0530 Subject: [PATCH 2/2] Localize the 'Turn off the TV' string. --- language/resource.language.da_DK/strings.po | 5 +++++ language/resource.language.de_DE/strings.po | 5 +++++ language/resource.language.en_GB/strings.po | 5 +++++ language/resource.language.es_ES/strings.po | 5 +++++ language/resource.language.es_MX/strings.po | 5 +++++ language/resource.language.fr_FR/strings.po | 5 +++++ language/resource.language.hu_HU/strings.po | 5 +++++ language/resource.language.it_IT/strings.po | 5 +++++ language/resource.language.ko_KR/strings.po | 5 +++++ language/resource.language.nl_NL/strings.po | 5 +++++ language/resource.language.pl_PL/strings.po | 5 +++++ language/resource.language.pt_BR/strings.po | 5 +++++ language/resource.language.pt_PT/strings.po | 5 +++++ language/resource.language.ru_RU/strings.po | 5 +++++ language/resource.language.sv_SE/strings.po | 5 +++++ language/resource.language.tr_TR/strings.po | 5 +++++ language/resource.language.zh_CN/strings.po | 5 +++++ xml/DialogButtonMenu.xml | 2 +- xml/Embuary_SkinSettings.xml | 2 +- 19 files changed, 87 insertions(+), 2 deletions(-) diff --git a/language/resource.language.da_DK/strings.po b/language/resource.language.da_DK/strings.po index 9e5caf19..573a0b1c 100644 --- a/language/resource.language.da_DK/strings.po +++ b/language/resource.language.da_DK/strings.po @@ -1691,3 +1691,8 @@ msgstr "Holdet" msgctxt "#31322" msgid "More seasons" msgstr "Flere sæsoner" + +#: /xml/DialogButtonMenu.xml +msgctxt "#31417" +msgid "Turn off the TV" +msgstr "Sluk for tv'et" diff --git a/language/resource.language.de_DE/strings.po b/language/resource.language.de_DE/strings.po index 6a25a1dd..0c7c48d1 100644 --- a/language/resource.language.de_DE/strings.po +++ b/language/resource.language.de_DE/strings.po @@ -2178,3 +2178,8 @@ msgstr "OK, zur Whitelist hinzufügen" msgctxt "#31412" msgid "Restart Kodi" msgstr "Kodi neustarten" + +#: /xml/DialogButtonMenu.xml +msgctxt "#31417" +msgid "Turn off the TV" +msgstr "Schalte den Fernseher aus" diff --git a/language/resource.language.en_GB/strings.po b/language/resource.language.en_GB/strings.po index dbf1ec10..05dfb4a7 100644 --- a/language/resource.language.en_GB/strings.po +++ b/language/resource.language.en_GB/strings.po @@ -2102,3 +2102,8 @@ msgstr "" msgctxt "#31416" msgid "Media type" msgstr "" + +#: /xml/DialogButtonMenu.xml +msgctxt "#31417" +msgid "Turn off the TV" +msgstr "Turn off the TV" diff --git a/language/resource.language.es_ES/strings.po b/language/resource.language.es_ES/strings.po index 61631e27..48078b4a 100644 --- a/language/resource.language.es_ES/strings.po +++ b/language/resource.language.es_ES/strings.po @@ -2168,3 +2168,8 @@ msgstr "" msgctxt "#31411" msgid "OK, add found to whitelist" msgstr "" + +#: /xml/DialogButtonMenu.xml +msgctxt "#31417" +msgid "Turn off the TV" +msgstr "Apagar la televisión" diff --git a/language/resource.language.es_MX/strings.po b/language/resource.language.es_MX/strings.po index ddec5185..c6cfe4f4 100644 --- a/language/resource.language.es_MX/strings.po +++ b/language/resource.language.es_MX/strings.po @@ -2182,3 +2182,8 @@ msgstr "OK, agregar lo encontrado a la lista blanca" msgctxt "#31412" msgid "Restart Kodi" msgstr "Reiniciar Kodi" + +#: /xml/DialogButtonMenu.xml +msgctxt "#31417" +msgid "Turn off the TV" +msgstr "Apagar la televisión" diff --git a/language/resource.language.fr_FR/strings.po b/language/resource.language.fr_FR/strings.po index 2db65590..179e7fca 100644 --- a/language/resource.language.fr_FR/strings.po +++ b/language/resource.language.fr_FR/strings.po @@ -2165,3 +2165,8 @@ msgstr "" msgctxt "#31411" msgid "OK, add found to whitelist" msgstr "" + +#: /xml/DialogButtonMenu.xml +msgctxt "#31417" +msgid "Turn off the TV" +msgstr "Éteins la télévision" diff --git a/language/resource.language.hu_HU/strings.po b/language/resource.language.hu_HU/strings.po index 8da7ca24..88727b8e 100644 --- a/language/resource.language.hu_HU/strings.po +++ b/language/resource.language.hu_HU/strings.po @@ -1337,3 +1337,8 @@ msgstr "hub" msgctxt "#31254" msgid "Hide main menu and only show widgets" msgstr "A főmenü elrejtése és csak a modulok megjelenítése" + +#: /xml/DialogButtonMenu.xml +msgctxt "#31417" +msgid "Turn off the TV" +msgstr "Kapcsolja ki a TV-t" diff --git a/language/resource.language.it_IT/strings.po b/language/resource.language.it_IT/strings.po index 30aafe72..b4f4b45f 100644 --- a/language/resource.language.it_IT/strings.po +++ b/language/resource.language.it_IT/strings.po @@ -2182,3 +2182,8 @@ msgstr "OK, aggiungi trovato alla whitelist" msgctxt "#31412" msgid "Restart Kodi" msgstr "Riavvia Kodi" + +#: /xml/DialogButtonMenu.xml +msgctxt "#31417" +msgid "Turn off the TV" +msgstr "Spegni la televisione" diff --git a/language/resource.language.ko_KR/strings.po b/language/resource.language.ko_KR/strings.po index ba368a37..3bf955fb 100644 --- a/language/resource.language.ko_KR/strings.po +++ b/language/resource.language.ko_KR/strings.po @@ -1715,3 +1715,8 @@ msgstr "재생 및 미디어 작업의 동작 변경" msgctxt "#31330" msgid "Playback & media" msgstr "재생 & 미디어" + +#: /xml/DialogButtonMenu.xml +msgctxt "#31417" +msgid "Turn off the TV" +msgstr "TV를 꺼" diff --git a/language/resource.language.nl_NL/strings.po b/language/resource.language.nl_NL/strings.po index 245b10c2..25b5af8e 100644 --- a/language/resource.language.nl_NL/strings.po +++ b/language/resource.language.nl_NL/strings.po @@ -2180,3 +2180,8 @@ msgstr "OK, gevonden items toevoegen aan witte lijst" msgctxt "#31412" msgid "Restart Kodi" msgstr "Kodi opnieuw opstarten" + +#: /xml/DialogButtonMenu.xml +msgctxt "#31417" +msgid "Turn off the TV" +msgstr "Zet de tv uit" diff --git a/language/resource.language.pl_PL/strings.po b/language/resource.language.pl_PL/strings.po index cae83924..7d7a45df 100644 --- a/language/resource.language.pl_PL/strings.po +++ b/language/resource.language.pl_PL/strings.po @@ -2171,3 +2171,8 @@ msgstr "OK, dodaj znalezione do listy wyjątków" msgctxt "#31412" msgid "Restart Kodi" msgstr "Uruchom ponownie Kodi" + +#: /xml/DialogButtonMenu.xml +msgctxt "#31417" +msgid "Turn off the TV" +msgstr "Wyłączyć telewizor" diff --git a/language/resource.language.pt_BR/strings.po b/language/resource.language.pt_BR/strings.po index 7f0c8e7a..f8769e66 100644 --- a/language/resource.language.pt_BR/strings.po +++ b/language/resource.language.pt_BR/strings.po @@ -2165,3 +2165,8 @@ msgstr "" msgctxt "#31411" msgid "OK, add found to whitelist" msgstr "" + +#: /xml/DialogButtonMenu.xml +msgctxt "#31417" +msgid "Turn off the TV" +msgstr "Desligue a televisão" diff --git a/language/resource.language.pt_PT/strings.po b/language/resource.language.pt_PT/strings.po index 184387e4..47979721 100644 --- a/language/resource.language.pt_PT/strings.po +++ b/language/resource.language.pt_PT/strings.po @@ -2156,3 +2156,8 @@ msgstr "" msgctxt "#31411" msgid "OK, add found to whitelist" msgstr "" + +#: /xml/DialogButtonMenu.xml +msgctxt "#31417" +msgid "Turn off the TV" +msgstr "Desligue a televisão" diff --git a/language/resource.language.ru_RU/strings.po b/language/resource.language.ru_RU/strings.po index 4563c4e6..166df88b 100644 --- a/language/resource.language.ru_RU/strings.po +++ b/language/resource.language.ru_RU/strings.po @@ -2173,3 +2173,8 @@ msgstr "Хорошо, добавить в белый список" msgctxt "#31412" msgid "Restart Kodi" msgstr "Перезапустить Kodi" + +#: /xml/DialogButtonMenu.xml +msgctxt "#31417" +msgid "Turn off the TV" +msgstr "Выключить телевизор" diff --git a/language/resource.language.sv_SE/strings.po b/language/resource.language.sv_SE/strings.po index 300be995..5cb3e686 100644 --- a/language/resource.language.sv_SE/strings.po +++ b/language/resource.language.sv_SE/strings.po @@ -1047,3 +1047,8 @@ msgstr "Göm etiketter" msgctxt "#31199" msgid "Slide" msgstr "" + +#: /xml/DialogButtonMenu.xml +msgctxt "#31417" +msgid "Turn off the TV" +msgstr "Stäng av tv: n" diff --git a/language/resource.language.tr_TR/strings.po b/language/resource.language.tr_TR/strings.po index 128d6b84..41850053 100644 --- a/language/resource.language.tr_TR/strings.po +++ b/language/resource.language.tr_TR/strings.po @@ -2200,3 +2200,8 @@ msgstr "Sağlayıcı" msgctxt "#31416" msgid "Media type" msgstr "Medya türü" + +#: /xml/DialogButtonMenu.xml +msgctxt "#31417" +msgid "Turn off the TV" +msgstr "Televizyonu kapat" diff --git a/language/resource.language.zh_CN/strings.po b/language/resource.language.zh_CN/strings.po index 0af9b35c..bf13d87f 100644 --- a/language/resource.language.zh_CN/strings.po +++ b/language/resource.language.zh_CN/strings.po @@ -2127,3 +2127,8 @@ msgstr "好,将找到的添加到白名单" msgctxt "#31412" msgid "Restart Kodi" msgstr "重新启动Kodi" + +#: /xml/DialogButtonMenu.xml +msgctxt "#31417" +msgid "Turn off the TV" +msgstr "关掉电视" diff --git a/xml/DialogButtonMenu.xml b/xml/DialogButtonMenu.xml index 3a0bf4ec..95bf39da 100644 --- a/xml/DialogButtonMenu.xml +++ b/xml/DialogButtonMenu.xml @@ -151,7 +151,7 @@ - + PlayerControl(Stop) Dialog.Close(all,true) diff --git a/xml/Embuary_SkinSettings.xml b/xml/Embuary_SkinSettings.xml index dd040e60..86eddb53 100644 --- a/xml/Embuary_SkinSettings.xml +++ b/xml/Embuary_SkinSettings.xml @@ -861,7 +861,7 @@ SettingsButton Skin.ToggleSetting(ShowCecStandby) Skin.HasSetting(ShowCecStandby) - +