Refactor cRecMenuSearchTimerCreateConfirm

This commit is contained in:
kamel5 2019-11-09 14:22:41 +01:00
parent f900446195
commit 7f7a16498c
6 changed files with 20 additions and 17 deletions

View File

@ -459,7 +459,7 @@ msgstr ""
msgid "Delete Search Timer and created Timers" msgid "Delete Search Timer and created Timers"
msgstr "" msgstr ""
msgid "Search Timer sucessfully created." msgid "Search Timer sucessfully created"
msgstr "S'ha creat cerca de temporitzador" msgstr "S'ha creat cerca de temporitzador"
msgid "Search Timer update initialised" msgid "Search Timer update initialised"

View File

@ -456,7 +456,7 @@ msgstr "Nur Suchtimer löschen"
msgid "Delete Search Timer and created Timers" msgid "Delete Search Timer and created Timers"
msgstr "Suchtimer und erzeugte Timer löschen" msgstr "Suchtimer und erzeugte Timer löschen"
msgid "Search Timer sucessfully created." msgid "Search Timer sucessfully created"
msgstr "Suchtimer erfolgreich angelegt" msgstr "Suchtimer erfolgreich angelegt"
msgid "Search Timer update initialised" msgid "Search Timer update initialised"

View File

@ -456,7 +456,7 @@ msgstr "Elimina solo il Search Timer"
msgid "Delete Search Timer and created Timers" msgid "Delete Search Timer and created Timers"
msgstr "Elimina il Search Timer e Timers creati" msgstr "Elimina il Search Timer e Timers creati"
msgid "Search Timer sucessfully created." msgid "Search Timer sucessfully created"
msgstr "Search Timer creato con successo" msgstr "Search Timer creato con successo"
msgid "Search Timer update initialised" msgid "Search Timer update initialised"

View File

@ -456,7 +456,7 @@ msgstr ""
msgid "Delete Search Timer and created Timers" msgid "Delete Search Timer and created Timers"
msgstr "" msgstr ""
msgid "Search Timer sucessfully created." msgid "Search Timer sucessfully created"
msgstr "Поисковый таймер создан" msgstr "Поисковый таймер создан"
msgid "Search Timer update initialised" msgid "Search Timer update initialised"

View File

@ -456,8 +456,8 @@ msgstr ""
msgid "Delete Search Timer and created Timers" msgid "Delete Search Timer and created Timers"
msgstr "" msgstr ""
msgid "Search Timer sucessfully created." msgid "Search Timer sucessfully created"
msgstr "Vyhµadávaè plánu vytvorený." msgstr "Vyhµadávaè plánu vytvorený"
msgid "Search Timer update initialised" msgid "Search Timer update initialised"
msgstr "Vyhladávaè plánu inicializovaný" msgstr "Vyhladávaè plánu inicializovaný"

View File

@ -975,19 +975,22 @@ cTVGuideSearchTimer cRecMenuSearchTimerDeleteConfirm::GetSearchTimer(void) {
} }
// --- cRecMenuSearchTimerCreateConfirm --------------------------------------------------------- // --- cRecMenuSearchTimerCreateConfirm ---------------------------------------------------------
cRecMenuSearchTimerCreateConfirm::cRecMenuSearchTimerCreateConfirm(bool success) { cRecMenuSearchTimerCreateConfirm::cRecMenuSearchTimerCreateConfirm(bool success) { // OK
SetWidthPercent(50); 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);
AddMenuItem(new cRecMenuItemButton(tr("OK"), rmsClose, true)); 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");
}
AddHeader(new cRecMenuItemInfo(*line1, i, *line2, "", "", width - 2 * border));
AddFooter(new cRecMenuItemButton(tr("OK"), rmsClose, true));
CalculateHeight(); CalculateHeight();
CreatePixmap(); CreatePixmap();