mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
Refactor cRecMenuSearchTimerCreateConfirm
This commit is contained in:
parent
f900446195
commit
7f7a16498c
@ -459,7 +459,7 @@ msgstr ""
|
||||
msgid "Delete Search Timer and created Timers"
|
||||
msgstr ""
|
||||
|
||||
msgid "Search Timer sucessfully created."
|
||||
msgid "Search Timer sucessfully created"
|
||||
msgstr "S'ha creat cerca de temporitzador"
|
||||
|
||||
msgid "Search Timer update initialised"
|
||||
|
@ -456,7 +456,7 @@ msgstr "Nur Suchtimer löschen"
|
||||
msgid "Delete Search Timer and created Timers"
|
||||
msgstr "Suchtimer und erzeugte Timer löschen"
|
||||
|
||||
msgid "Search Timer sucessfully created."
|
||||
msgid "Search Timer sucessfully created"
|
||||
msgstr "Suchtimer erfolgreich angelegt"
|
||||
|
||||
msgid "Search Timer update initialised"
|
||||
|
@ -456,7 +456,7 @@ msgstr "Elimina solo il Search Timer"
|
||||
msgid "Delete Search Timer and created Timers"
|
||||
msgstr "Elimina il Search Timer e Timers creati"
|
||||
|
||||
msgid "Search Timer sucessfully created."
|
||||
msgid "Search Timer sucessfully created"
|
||||
msgstr "Search Timer creato con successo"
|
||||
|
||||
msgid "Search Timer update initialised"
|
||||
|
@ -456,7 +456,7 @@ msgstr ""
|
||||
msgid "Delete Search Timer and created Timers"
|
||||
msgstr ""
|
||||
|
||||
msgid "Search Timer sucessfully created."
|
||||
msgid "Search Timer sucessfully created"
|
||||
msgstr "Поисковый таймер создан"
|
||||
|
||||
msgid "Search Timer update initialised"
|
||||
|
@ -456,8 +456,8 @@ msgstr ""
|
||||
msgid "Delete Search Timer and created Timers"
|
||||
msgstr ""
|
||||
|
||||
msgid "Search Timer sucessfully created."
|
||||
msgstr "Vyhµadávaè plánu vytvorený."
|
||||
msgid "Search Timer sucessfully created"
|
||||
msgstr "Vyhµadávaè plánu vytvorený"
|
||||
|
||||
msgid "Search Timer update initialised"
|
||||
msgstr "Vyhladávaè plánu inicializovaný"
|
||||
|
23
recmenus.c
23
recmenus.c
@ -975,19 +975,22 @@ cTVGuideSearchTimer cRecMenuSearchTimerDeleteConfirm::GetSearchTimer(void) {
|
||||
}
|
||||
|
||||
// --- cRecMenuSearchTimerCreateConfirm ---------------------------------------------------------
|
||||
cRecMenuSearchTimerCreateConfirm::cRecMenuSearchTimerCreateConfirm(bool success) {
|
||||
cRecMenuSearchTimerCreateConfirm::cRecMenuSearchTimerCreateConfirm(bool success) { // OK
|
||||
SetWidthPercent(50);
|
||||
|
||||
cString message1a = tr("Search Timer sucessfully created.");
|
||||
cString message1b = tr ("Search Timer update initialised");
|
||||
cString message1 = cString::sprintf("%s\n%s", *message1a, *message1b);
|
||||
cString message2 = tr("Search Timer NOT sucessfully created");
|
||||
cString infoText = success?message1:message2;
|
||||
cRecMenuItemInfo *infoItem = new cRecMenuItemInfo(*infoText);
|
||||
infoItem->CalculateHeight(width - 2 * border);
|
||||
AddMenuItem(infoItem);
|
||||
int i = 1;
|
||||
cString line1 = "";
|
||||
cString line2 = "";
|
||||
if (success) {
|
||||
line1 = tr("Search Timer sucessfully created");
|
||||
line2 = tr("Search Timer update initialised");
|
||||
i = 2;
|
||||
} else {
|
||||
line1 = tr("Search Timer NOT sucessfully created");
|
||||
}
|
||||
|
||||
AddMenuItem(new cRecMenuItemButton(tr("OK"), rmsClose, true));
|
||||
AddHeader(new cRecMenuItemInfo(*line1, i, *line2, "", "", width - 2 * border));
|
||||
AddFooter(new cRecMenuItemButton(tr("OK"), rmsClose, true));
|
||||
|
||||
CalculateHeight();
|
||||
CreatePixmap();
|
||||
|
Loading…
Reference in New Issue
Block a user