summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2022-01-29 17:41:02 +0100
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2022-06-25 13:12:24 +0200
commit519a87a4715d4479884ff347ccbc3cd564ea5ba9 (patch)
tree67357275d9ec055d8f693dc668ef523622f1307a
parenta87a1db7c2fc5ec4adba0f625501781b0c168338 (diff)
downloadvdr-plugin-tvguide-519a87a4715d4479884ff347ccbc3cd564ea5ba9.tar.gz
vdr-plugin-tvguide-519a87a4715d4479884ff347ccbc3cd564ea5ba9.tar.bz2
Adapt epgsearch "allow empty" in searchtimer edit
-rw-r--r--po/ca_ES.po3
-rw-r--r--po/de_DE.po3
-rw-r--r--po/it_IT.po3
-rw-r--r--po/ru_RU.po3
-rw-r--r--po/sk_SK.po3
-rw-r--r--recmenus.c3
-rw-r--r--recmenus.h1
-rw-r--r--searchtimer.c6
-rw-r--r--searchtimer.h1
9 files changed, 25 insertions, 1 deletions
diff --git a/po/ca_ES.po b/po/ca_ES.po
index 51aff2c..87252cf 100644
--- a/po/ca_ES.po
+++ b/po/ca_ES.po
@@ -600,6 +600,9 @@ msgstr "expressió regular"
msgid "fuzzy"
msgstr ""
+msgid "allow empty"
+msgstr ""
+
msgid "Interval"
msgstr ""
diff --git a/po/de_DE.po b/po/de_DE.po
index 8739a10..a3e0fc2 100644
--- a/po/de_DE.po
+++ b/po/de_DE.po
@@ -597,6 +597,9 @@ msgstr "Regulärer Ausdruck"
msgid "fuzzy"
msgstr "unscharf"
+msgid "allow empty"
+msgstr "erlaube leere"
+
msgid "Interval"
msgstr "Bereich"
diff --git a/po/it_IT.po b/po/it_IT.po
index 41e6701..d4a1f65 100644
--- a/po/it_IT.po
+++ b/po/it_IT.po
@@ -597,6 +597,9 @@ msgstr "Regulärer Ausdruck"
msgid "fuzzy"
msgstr ""
+msgid "allow empty"
+msgstr ""
+
msgid "Interval"
msgstr ""
diff --git a/po/ru_RU.po b/po/ru_RU.po
index d435402..d692d9b 100644
--- a/po/ru_RU.po
+++ b/po/ru_RU.po
@@ -597,6 +597,9 @@ msgstr "регулярные выражения"
msgid "fuzzy"
msgstr ""
+msgid "allow empty"
+msgstr ""
+
msgid "Interval"
msgstr ""
diff --git a/po/sk_SK.po b/po/sk_SK.po
index 99f4ba9..5462a64 100644
--- a/po/sk_SK.po
+++ b/po/sk_SK.po
@@ -597,6 +597,9 @@ msgstr "regulrny vraz"
msgid "fuzzy"
msgstr ""
+msgid "allow empty"
+msgstr ""
+
msgid "Interval"
msgstr ""
diff --git a/recmenus.c b/recmenus.c
index 954c8f2..8b4b039 100644
--- a/recmenus.c
+++ b/recmenus.c
@@ -728,6 +728,7 @@ cRecMenuSearchTimerEdit::cRecMenuSearchTimerEdit(cTVGuideSearchTimer searchTimer
}
sT.GetSearchModes(&searchModes);
+ sT.GetSubTitleModes(&subTitleModes);
sT.GetUseChannelModes(&useChannelModes);
sT.GetCompareDateModes(&compareDateModes);
sT.GetSearchTimerModes(&searchTimerModes);
@@ -864,7 +865,7 @@ void cRecMenuSearchTimerEdit::CreateMenuItems(void) {
mainMenuItems.push_back(new cRecMenuItemInt(cString::sprintf("%s%s%s%s%s", *indent, *indent, *indent, *indent, tr("Only repeats within ... days")), 0, 999, false, &sT.repeatsWithinDays, rmsSearchTimerSave));
}
mainMenuItems.push_back(new cRecMenuItemBool(cString::sprintf("%s%s%s%s", *indent, *indent, *indent, tr("Compare Title")), false, &sT.compareTitle, rmsSearchTimerSave));
- mainMenuItems.push_back(new cRecMenuItemBool(cString::sprintf("%s%s%s%s", *indent, *indent, *indent, tr("Compare Subtitle")), false, &sT.compareSubtitle, rmsSearchTimerSave));
+ mainMenuItems.push_back(new cRecMenuItemSelect(cString::sprintf("%s%s%s%s", *indent, *indent, *indent, tr("Compare Subtitle")), subTitleModes, false, &sT.compareSubtitle, rmsSearchTimerSave));
mainMenuItems.push_back(new cRecMenuItemBool(cString::sprintf("%s%s%s%s", *indent, *indent, *indent, tr("Compare Description")), false, &sT.compareSummary, rmsSearchTimerSave, true));
if (sT.compareSummary) {
mainMenuItems.push_back(new cRecMenuItemInt(cString::sprintf("%s%s%s%s%s", *indent, *indent, *indent, *indent, tr("Min. match in %")), 1, 100, false, &sT.compareSummaryMatchInPercent, rmsSearchTimerSave));
diff --git a/recmenus.h b/recmenus.h
index ca8ab4f..a66f1df 100644
--- a/recmenus.h
+++ b/recmenus.h
@@ -218,6 +218,7 @@ class cRecMenuSearchTimerEdit: public cRecMenu {
private:
cTVGuideSearchTimer sT;
std::vector<std::string> searchModes;
+ std::vector<std::string> subTitleModes;
std::vector<std::string> useChannelModes;
std::vector<std::string> channelGroups;
std::vector<std::string> compareDateModes;
diff --git a/searchtimer.c b/searchtimer.c
index bfc3757..8df77b5 100644
--- a/searchtimer.c
+++ b/searchtimer.c
@@ -554,6 +554,12 @@ void cTVGuideSearchTimer::GetSearchModes(std::vector<std::string> *searchModes)
searchModes->push_back(tr("fuzzy"));
}
+void cTVGuideSearchTimer::GetSubTitleModes(std::vector<std::string> *subTitleModes) {
+ subTitleModes->push_back(trVDR("no"));
+ subTitleModes->push_back(trVDR("yes"));
+ subTitleModes->push_back(tr("allow empty"));
+}
+
void cTVGuideSearchTimer::GetUseChannelModes(std::vector<std::string> *useChannelModes) {
useChannelModes->push_back(tr("No"));
useChannelModes->push_back(tr("Interval"));
diff --git a/searchtimer.h b/searchtimer.h
index 0ab275a..0b41405 100644
--- a/searchtimer.h
+++ b/searchtimer.h
@@ -81,6 +81,7 @@ public:
int GetNumTimers(void);
int GetNumRecordings(void);
void GetSearchModes(std::vector<std::string> *searchModes);
+ void GetSubTitleModes(std::vector<std::string> *subTitleModes);
void GetUseChannelModes(std::vector<std::string> *useChannelModes);
void GetSearchTimerModes(std::vector<std::string> *searchTimerModes);
void GetCompareDateModes(std::vector<std::string> *compareDateModes);