diff --git a/epgsearch/po/EPGSearch.pot b/epgsearch/po/EPGSearch.pot index a90c0d3cc..e35dd1bd4 100644 --- a/epgsearch/po/EPGSearch.pot +++ b/epgsearch/po/EPGSearch.pot @@ -98,6 +98,9 @@ msgstr "" msgid "Export selected as AutoTimer" msgstr "" +msgid "Delete text '%s' from history?" +msgstr "" + msgid "History" msgstr "" @@ -194,7 +197,7 @@ msgstr "" msgid "Select channel" msgstr "" -msgid "Select item for search and press 'OK' or edit item with yellow button." +msgid "Select item for search and press 'OK' or edit item with yellow button or delete item with blue button." msgstr "" msgid "Select type for filter search. Press button P +/- for show/hide filter in description after search." diff --git a/epgsearch/po/ar.po b/epgsearch/po/ar.po index 68c73de43..fe529e743 100644 --- a/epgsearch/po/ar.po +++ b/epgsearch/po/ar.po @@ -105,6 +105,9 @@ msgstr "إدخال نص للبحث عن" msgid "Export selected as AutoTimer" msgstr "حفظ البحث حسب المؤقت التلقائي" +msgid "Delete text '%s' from history?" +msgstr "" + #, fuzzy msgid "History" msgstr "بدون تاريخ" @@ -209,7 +212,7 @@ msgstr "" msgid "Select channel" msgstr "إنتقل إلى القناة" -msgid "Select item for search and press 'OK' or edit item with yellow button." +msgid "Select item for search and press 'OK' or edit item with yellow button or delete item with blue button." msgstr "" msgid "Select type for filter search. Press button P +/- for show/hide filter in description after search." diff --git a/epgsearch/po/cs.po b/epgsearch/po/cs.po index c7bd84d65..de66f4b8f 100644 --- a/epgsearch/po/cs.po +++ b/epgsearch/po/cs.po @@ -3,7 +3,7 @@ msgstr "" "Project-Id-Version: Enigma 2 EPGSearch Plugin\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-05-12 14:32+0200\n" -"PO-Revision-Date: 2023-12-19 12:10+0100\n" +"PO-Revision-Date: 2024-11-12 09:27+0100\n" "Last-Translator: ims \n" "Language-Team: PLi \n" "Language: cs_CZ\n" @@ -11,7 +11,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" -"X-Generator: Poedit 3.4.1\n" +"X-Generator: Poedit 3.5\n" #, python-format msgid " (%d min)" @@ -94,6 +94,9 @@ msgstr "Zadejte text pro hledání" msgid "Export selected as AutoTimer" msgstr "Exportovat vybrané jako AutoTimer" +msgid "Delete text '%s' from history?" +msgstr "Odstranit text '%s' z historie?" + msgid "History" msgstr "Historie" @@ -190,8 +193,8 @@ msgstr "Zvolte akci:" msgid "Select channel" msgstr "Vyberte kanál" -msgid "Select item for search and press 'OK' or edit item with yellow button." -msgstr "Zvolte položku pro hledání a stiskněte 'OK' nebo použijte žluté tlačítko pro úpravu." +msgid "Select item for search and press 'OK' or edit item with yellow button or delete item with blue button." +msgstr "Zvolte položku pro hledání a stiskněte 'OK' nebo použijte žluté tlačítko pro úpravu nebo modré tlačítko pro odstranění." msgid "Select type for filter search. Press button P +/- for show/hide filter in description after search." msgstr "Vyberte typ filtru pro vyhledávání. Stiskněte P+/- pro zobrazení / skrytí filtru v popisu po vyhledání." diff --git a/epgsearch/po/de.po b/epgsearch/po/de.po index f9c9a82a4..ec95a3799 100644 --- a/epgsearch/po/de.po +++ b/epgsearch/po/de.po @@ -98,6 +98,9 @@ msgstr "Zu suchenden Text eingeben" msgid "Export selected as AutoTimer" msgstr "Auswahl als AutoTimer exportieren" +msgid "Delete text '%s' from history?" +msgstr "" + msgid "History" msgstr "Verlauf" @@ -194,7 +197,8 @@ msgstr "Wähle Aktion :" msgid "Select channel" msgstr "Kanal auswählen" -msgid "Select item for search and press 'OK' or edit item with yellow button." +#, fuzzy +msgid "Select item for search and press 'OK' or edit item with yellow button or delete item with blue button." msgstr "Wählen Sie das zu suchende Element aus und drücken Sie „OK“ oder bearbeiten Sie das Element mit der gelben Taste." msgid "Select type for filter search. Press button P +/- for show/hide filter in description after search." diff --git a/epgsearch/po/es.po b/epgsearch/po/es.po index befc4fa89..80a64ef19 100644 --- a/epgsearch/po/es.po +++ b/epgsearch/po/es.po @@ -104,6 +104,9 @@ msgstr "Introduzca texto a buscar" msgid "Export selected as AutoTimer" msgstr "" +msgid "Delete text '%s' from history?" +msgstr "" + msgid "History" msgstr "Historia" @@ -204,7 +207,7 @@ msgstr "" msgid "Select channel" msgstr "" -msgid "Select item for search and press 'OK' or edit item with yellow button." +msgid "Select item for search and press 'OK' or edit item with yellow button or delete item with blue button." msgstr "" msgid "Select type for filter search. Press button P +/- for show/hide filter in description after search." diff --git a/epgsearch/po/fa.po b/epgsearch/po/fa.po index c540dbc7e..f7f97996a 100644 --- a/epgsearch/po/fa.po +++ b/epgsearch/po/fa.po @@ -105,6 +105,9 @@ msgstr "وارد کردن یک متن به منظور جستجو برای " msgid "Export selected as AutoTimer" msgstr "صادر کردن منتخب به عنوان یک تایمر خودکار " +msgid "Delete text '%s' from history?" +msgstr "" + msgid "History" msgstr "پیشینه" @@ -204,7 +207,7 @@ msgstr "" msgid "Select channel" msgstr "" -msgid "Select item for search and press 'OK' or edit item with yellow button." +msgid "Select item for search and press 'OK' or edit item with yellow button or delete item with blue button." msgstr "" msgid "Select type for filter search. Press button P +/- for show/hide filter in description after search." diff --git a/epgsearch/po/fi.po b/epgsearch/po/fi.po index 7f8a27490..a9a94f79b 100644 --- a/epgsearch/po/fi.po +++ b/epgsearch/po/fi.po @@ -102,6 +102,9 @@ msgstr "Syötä haettava teksti" msgid "Export selected as AutoTimer" msgstr "Vie valitut AutoTimeriin" +msgid "Delete text '%s' from history?" +msgstr "" + msgid "History" msgstr "Historia" @@ -202,7 +205,7 @@ msgstr "" msgid "Select channel" msgstr "" -msgid "Select item for search and press 'OK' or edit item with yellow button." +msgid "Select item for search and press 'OK' or edit item with yellow button or delete item with blue button." msgstr "" msgid "Select type for filter search. Press button P +/- for show/hide filter in description after search." diff --git a/epgsearch/po/fr.po b/epgsearch/po/fr.po index 89f26ac1d..5c54fefaf 100644 --- a/epgsearch/po/fr.po +++ b/epgsearch/po/fr.po @@ -99,6 +99,9 @@ msgstr "Entrer le texte à rechercher" msgid "Export selected as AutoTimer" msgstr "Exporter la sélection en tant qu'AutoTimer" +msgid "Delete text '%s' from history?" +msgstr "" + msgid "History" msgstr "Historique" @@ -195,7 +198,8 @@ msgstr "Choisir l'action:" msgid "Select channel" msgstr "Sélectionner une chaîne" -msgid "Select item for search and press 'OK' or edit item with yellow button." +#, fuzzy +msgid "Select item for search and press 'OK' or edit item with yellow button or delete item with blue button." msgstr "Sélectionnez l’élément à rechercher et appuyez sur « OK » ou modifiez l’élément avec le bouton jaune." msgid "Select type for filter search. Press button P +/- for show/hide filter in description after search." diff --git a/epgsearch/po/it.po b/epgsearch/po/it.po index 79dd7853c..250fcfe4d 100644 --- a/epgsearch/po/it.po +++ b/epgsearch/po/it.po @@ -103,6 +103,9 @@ msgstr "Inserire il testo da cercare" msgid "Export selected as AutoTimer" msgstr "Esportare la selezione come AutoTimer" +msgid "Delete text '%s' from history?" +msgstr "" + msgid "History" msgstr "History" @@ -203,7 +206,7 @@ msgstr "" msgid "Select channel" msgstr "" -msgid "Select item for search and press 'OK' or edit item with yellow button." +msgid "Select item for search and press 'OK' or edit item with yellow button or delete item with blue button." msgstr "" msgid "Select type for filter search. Press button P +/- for show/hide filter in description after search." diff --git a/epgsearch/po/lt.po b/epgsearch/po/lt.po index 395eeab80..7d5e8ffc4 100644 --- a/epgsearch/po/lt.po +++ b/epgsearch/po/lt.po @@ -99,6 +99,9 @@ msgstr "Įrašykite ieškomą tekstą" msgid "Export selected as AutoTimer" msgstr "Eksportuoti pasirinktą, kaip autolaikmatį" +msgid "Delete text '%s' from history?" +msgstr "" + msgid "History" msgstr "Istorija" @@ -195,7 +198,8 @@ msgstr "Pasirinkite veiksmą:" msgid "Select channel" msgstr "Pasirinkite kanalą" -msgid "Select item for search and press 'OK' or edit item with yellow button." +#, fuzzy +msgid "Select item for search and press 'OK' or edit item with yellow button or delete item with blue button." msgstr "Pasirinkite ieškomą elementą ir spauskite 'OK', arba 'GELTONU' mygtuku jį redaguokite." msgid "Select type for filter search. Press button P +/- for show/hide filter in description after search." diff --git a/epgsearch/po/lv.po b/epgsearch/po/lv.po index b2fe3217c..af2700d87 100644 --- a/epgsearch/po/lv.po +++ b/epgsearch/po/lv.po @@ -95,6 +95,9 @@ msgstr "Ievadiet tekstu kuru meklēt" msgid "Export selected as AutoTimer" msgstr "Eksportēt iezīmēto kā auto taimeri" +msgid "Delete text '%s' from history?" +msgstr "" + msgid "History" msgstr "Vēsture" @@ -191,7 +194,8 @@ msgstr "Izvēlieties darbību:" msgid "Select channel" msgstr "Izvēlieties kanālu" -msgid "Select item for search and press 'OK' or edit item with yellow button." +#, fuzzy +msgid "Select item for search and press 'OK' or edit item with yellow button or delete item with blue button." msgstr "Izvēlieties meklējamo tekstu un nospiediet 'Lietot' vai rediģējiet tekstu ar dzelteno pogu." msgid "Select type for filter search. Press button P +/- for show/hide filter in description after search." diff --git a/epgsearch/po/nl.po b/epgsearch/po/nl.po index 0d41822d5..770f8e741 100644 --- a/epgsearch/po/nl.po +++ b/epgsearch/po/nl.po @@ -101,6 +101,9 @@ msgstr "Voer te zoeken tekst in:" msgid "Export selected as AutoTimer" msgstr "Exporteer het geselecteerde als AutoTimer" +msgid "Delete text '%s' from history?" +msgstr "" + msgid "History" msgstr "Historiek" @@ -199,7 +202,7 @@ msgstr "Kies de actie:" msgid "Select channel" msgstr "Kies de zender" -msgid "Select item for search and press 'OK' or edit item with yellow button." +msgid "Select item for search and press 'OK' or edit item with yellow button or delete item with blue button." msgstr "" msgid "Select type for filter search. Press button P +/- for show/hide filter in description after search." diff --git a/epgsearch/po/ru.po b/epgsearch/po/ru.po index 984295929..8c576bb6a 100644 --- a/epgsearch/po/ru.po +++ b/epgsearch/po/ru.po @@ -94,6 +94,9 @@ msgstr "Ввод текста поиска" msgid "Export selected as AutoTimer" msgstr "Экспорт выбранного как Автотаймер" +msgid "Delete text '%s' from history?" +msgstr "" + msgid "History" msgstr "История" @@ -190,7 +193,8 @@ msgstr "Выберите действие:" msgid "Select channel" msgstr "Выбор канала" -msgid "Select item for search and press 'OK' or edit item with yellow button." +#, fuzzy +msgid "Select item for search and press 'OK' or edit item with yellow button or delete item with blue button." msgstr "Выберите элемент для поиска и нажмите 'OK' или отредактируйте элемент с помощью желтой кнопки." msgid "Select type for filter search. Press button P +/- for show/hide filter in description after search." diff --git a/epgsearch/po/sk.po b/epgsearch/po/sk.po index a135349d6..0ef3f6a82 100644 --- a/epgsearch/po/sk.po +++ b/epgsearch/po/sk.po @@ -96,6 +96,9 @@ msgstr "Zadajte text pre hľadanie" msgid "Export selected as AutoTimer" msgstr "Exportovať vybrané ako AutoTimer" +msgid "Delete text '%s' from history?" +msgstr "" + msgid "History" msgstr "História" @@ -192,7 +195,7 @@ msgstr "Zvoliť akciu:" msgid "Select channel" msgstr "Voľba kanálu" -msgid "Select item for search and press 'OK' or edit item with yellow button." +msgid "Select item for search and press 'OK' or edit item with yellow button or delete item with blue button." msgstr "" msgid "Select type for filter search. Press button P +/- for show/hide filter in description after search." diff --git a/epgsearch/po/sl.po b/epgsearch/po/sl.po index 7b1e01ec4..aa7e359c1 100644 --- a/epgsearch/po/sl.po +++ b/epgsearch/po/sl.po @@ -99,6 +99,9 @@ msgstr "Vpis besedila za namen iskanja" msgid "Export selected as AutoTimer" msgstr "Izvoz izbranega v AutoTimer vtičnik" +msgid "Delete text '%s' from history?" +msgstr "" + msgid "History" msgstr "Zgodovina" @@ -199,7 +202,7 @@ msgstr "" msgid "Select channel" msgstr "" -msgid "Select item for search and press 'OK' or edit item with yellow button." +msgid "Select item for search and press 'OK' or edit item with yellow button or delete item with blue button." msgstr "" msgid "Select type for filter search. Press button P +/- for show/hide filter in description after search." diff --git a/epgsearch/po/sr.po b/epgsearch/po/sr.po index a9edf806e..47e210842 100644 --- a/epgsearch/po/sr.po +++ b/epgsearch/po/sr.po @@ -106,6 +106,9 @@ msgstr "Unesi tekst za traženje" msgid "Export selected as AutoTimer" msgstr "Izvezi izabrano kao autotajmer" +msgid "Delete text '%s' from history?" +msgstr "" + msgid "History" msgstr "Istorija" @@ -205,7 +208,7 @@ msgstr "" msgid "Select channel" msgstr "" -msgid "Select item for search and press 'OK' or edit item with yellow button." +msgid "Select item for search and press 'OK' or edit item with yellow button or delete item with blue button." msgstr "" msgid "Select type for filter search. Press button P +/- for show/hide filter in description after search." diff --git a/epgsearch/po/sv.po b/epgsearch/po/sv.po index c006f4aed..b73c7c11a 100644 --- a/epgsearch/po/sv.po +++ b/epgsearch/po/sv.po @@ -103,6 +103,9 @@ msgstr "Skriv in text att söka efter" msgid "Export selected as AutoTimer" msgstr "Exportera vald som AutoTimer" +msgid "Delete text '%s' from history?" +msgstr "" + msgid "History" msgstr "Historik" @@ -203,7 +206,7 @@ msgstr "" msgid "Select channel" msgstr "" -msgid "Select item for search and press 'OK' or edit item with yellow button." +msgid "Select item for search and press 'OK' or edit item with yellow button or delete item with blue button." msgstr "" msgid "Select type for filter search. Press button P +/- for show/hide filter in description after search." diff --git a/epgsearch/po/tr.po b/epgsearch/po/tr.po index 542e5fcb7..7506e327f 100644 --- a/epgsearch/po/tr.po +++ b/epgsearch/po/tr.po @@ -101,6 +101,9 @@ msgstr "Arama metnini girin" msgid "Export selected as AutoTimer" msgstr "Seçililenleri AutoTimer olarak dışarı ver" +msgid "Delete text '%s' from history?" +msgstr "" + msgid "History" msgstr "Geçmiş" @@ -200,7 +203,7 @@ msgstr "" msgid "Select channel" msgstr "" -msgid "Select item for search and press 'OK' or edit item with yellow button." +msgid "Select item for search and press 'OK' or edit item with yellow button or delete item with blue button." msgstr "" msgid "Select type for filter search. Press button P +/- for show/hide filter in description after search." diff --git a/epgsearch/src/EPGSearch.py b/epgsearch/src/EPGSearch.py index df7753732..f1c147cb4 100644 --- a/epgsearch/src/EPGSearch.py +++ b/epgsearch/src/EPGSearch.py @@ -581,6 +581,7 @@ def __init__(self, session, *args): }) self["actions"].csel = self + self.onLayoutFinish.append(self.onCreate) # end stripped copy of EPGSelection.__init__ self.select = False @@ -1242,12 +1243,14 @@ def __init__(self, session, data): "red": self.exit, "green": self.select, "yellow": self.edit, + "blue": self.remove, }, -2) self["key_red"] = Button(_("Cancel")) self["key_green"] = Button(_("OK")) self["key_yellow"] = Button(_("Edit & search")) - self["help"] = Label(_("Select item for search and press 'OK' or edit item with yellow button.")) + self["key_blue"] = Button(_("Delete")) + self["help"] = Label(_("Select item for search and press 'OK' or edit item with yellow button or delete item with blue button.")) def select(self): item = self["history"].getCurrent() @@ -1263,5 +1266,17 @@ def result(text): self.close(text) self.session.openWithCallback(result, VirtualKeyBoard, title=_("Modify searched text"), text=item) + def remove(self): + item = self["history"].getCurrent() + if item: + def delete_item(answer=False): + if answer: + index = self["history"].getSelectedIndex() + history = self["history"].list + new_history = history[:index] + history[index + 1:] + self["history"].setList(new_history) + config.plugins.epgsearch.history.value = new_history + text = _("Delete text '%s' from history?") % item + self.session.openWithCallback(delete_item, MessageBox, text, type=MessageBox.TYPE_YESNO, default=False) def exit(self): self.close(False)