diff options
-rw-r--r-- | po/ca_ES.po | 47 | ||||
-rw-r--r-- | po/de_DE.po | 47 | ||||
-rw-r--r-- | po/it_IT.po | 47 | ||||
-rw-r--r-- | po/sk_SK.po | 47 | ||||
-rw-r--r-- | setup.c | 35 | ||||
-rw-r--r-- | setup.h | 3 |
6 files changed, 146 insertions, 80 deletions
diff --git a/po/ca_ES.po b/po/ca_ES.po index 1e4c2de..b0e1e9a 100644 --- a/po/ca_ES.po +++ b/po/ca_ES.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: skinnopacity 0.0.1\n" "Report-Msgid-Bugs-To: <see README>\n" -"POT-Creation-Date: 2021-07-05 14:49+0200\n" +"POT-Creation-Date: 2021-07-05 15:18+0200\n" "PO-Revision-Date: 2013-03-19 22:56+0100\n" "Last-Translator: Gabychan <gbonich@gmail.com>\n" "Language-Team: \n" @@ -179,9 +179,15 @@ msgstr "gravacions" msgid "new" msgstr "nou" +msgid "Theme specific setup parameters are only available if this skin is active!" +msgstr "" + msgid "Font" msgstr "Font" +msgid "Create Log Messages for image loading" +msgstr "Crea Log d'imatges carregades" + msgid "Use scraper infos and pictures" msgstr "" @@ -248,9 +254,6 @@ msgstr "rà pid" msgid "auto" msgstr "auto" -msgid "Create Log Messages for image loading" -msgstr "Crea Log d'imatges carregades" - msgid "Number of Default Menu Entries per Page" msgstr "Nombre d'entrades de menú per pà gina" @@ -281,6 +284,18 @@ msgstr "Utilitza logo del canal de fons" msgid "Fade-In Time in ms (Zero for switching off fading)" msgstr "Fosa d'entrada, temps en ms (0 per desactivació)" +msgid "Info Window Fade-In Time in ms (Zero for switching off fading)" +msgstr "" + +msgid "Info Window Display Delay in s" +msgstr "" + +msgid "Info Window Scroll Delay in s" +msgstr "" + +msgid "Info Window Text Scrolling Speed" +msgstr "" + msgid "Menu Items Scroll Style" msgstr "Estil del Menu desplaçament" @@ -404,18 +419,6 @@ msgstr "Utilitza menú limitat" msgid "Mode of EPG Window" msgstr "Mode pantalla EPG" -msgid "EPG Window Fade-In Time in ms (Zero for switching off fading)" -msgstr "Fosa d'entrada finestra EPG, temps en ms (0 per desactivació)" - -msgid "EPG Window Display Delay in s" -msgstr "Temps visualització finestra EPG en s" - -msgid "EPG Window Scroll Delay in s" -msgstr "Temps retard desplaçament finestra EPG en s" - -msgid "EPG Window Text Scrolling Speed" -msgstr "Velocitat desplaçament text finestra EPG" - msgid "Height of EPG Info Window (Percent of OSD Height)" msgstr "Alçada Finestra Info EPG (% alçada OSD)" @@ -674,6 +677,18 @@ msgstr "conflicte" msgid "conflicts" msgstr "conflictes" +#~ msgid "EPG Window Fade-In Time in ms (Zero for switching off fading)" +#~ msgstr "Fosa d'entrada finestra EPG, temps en ms (0 per desactivació)" + +#~ msgid "EPG Window Display Delay in s" +#~ msgstr "Temps visualització finestra EPG en s" + +#~ msgid "EPG Window Scroll Delay in s" +#~ msgstr "Temps retard desplaçament finestra EPG en s" + +#~ msgid "EPG Window Text Scrolling Speed" +#~ msgstr "Velocitat desplaçament text finestra EPG" + #~ msgid "Display additional EPG Pictures in detailed recording View" #~ msgstr "Mostra imatges EPG addicionals a vista detallada gravacions" diff --git a/po/de_DE.po b/po/de_DE.po index 3cd813d..e102b55 100644 --- a/po/de_DE.po +++ b/po/de_DE.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: skinnopacity 0.0.1\n" "Report-Msgid-Bugs-To: <see README>\n" -"POT-Creation-Date: 2021-07-05 14:49+0200\n" +"POT-Creation-Date: 2021-07-05 15:18+0200\n" "PO-Revision-Date: 2012-11-11 17:49+0200\n" "Last-Translator: louis\n" "Language-Team: \n" @@ -176,9 +176,15 @@ msgstr "Aufnahmen" msgid "new" msgstr "neu" +msgid "Theme specific setup parameters are only available if this skin is active!" +msgstr "" + msgid "Font" msgstr "Schriftart" +msgid "Create Log Messages for image loading" +msgstr "Log Nachrichten beim Bilder laden erzeugen" + msgid "Use scraper infos and pictures" msgstr "Scraper Infos und Bilder benutzen" @@ -245,9 +251,6 @@ msgstr "schnell" msgid "auto" msgstr "auto" -msgid "Create Log Messages for image loading" -msgstr "Log Nachrichten beim Bilder laden erzeugen" - msgid "Number of Default Menu Entries per Page" msgstr "Anzahl der Default-Menüelemente pro Seite" @@ -278,6 +281,18 @@ msgstr "Hintergrund für Kanallogos benutzen" msgid "Fade-In Time in ms (Zero for switching off fading)" msgstr "Fade-In Zeit in ms (Null zum Abschalten)" +msgid "Info Window Fade-In Time in ms (Zero for switching off fading)" +msgstr "" + +msgid "Info Window Display Delay in s" +msgstr "" + +msgid "Info Window Scroll Delay in s" +msgstr "" + +msgid "Info Window Text Scrolling Speed" +msgstr "" + msgid "Menu Items Scroll Style" msgstr "Scrollstil der Menüelemente" @@ -401,18 +416,6 @@ msgstr "Schmales Menü verwenden" msgid "Mode of EPG Window" msgstr "EPG Fenster Modus" -msgid "EPG Window Fade-In Time in ms (Zero for switching off fading)" -msgstr "Fade-In Zeit des EPG Fensters in ms (Null zum Abschalten)" - -msgid "EPG Window Display Delay in s" -msgstr "Anzeigeverzögerung des EPG Fensters in s" - -msgid "EPG Window Scroll Delay in s" -msgstr "Scroll Verzögerung des EPG Fensters in s" - -msgid "EPG Window Text Scrolling Speed" -msgstr "Text Scroll Geschwindigkeit des EPG Fensters" - msgid "Height of EPG Info Window (Percent of OSD Height)" msgstr "Höhe des EPG Info Fensters (% der OSD Höhe)" @@ -671,6 +674,18 @@ msgstr "Konflikt" msgid "conflicts" msgstr "Konflikte" +#~ msgid "EPG Window Fade-In Time in ms (Zero for switching off fading)" +#~ msgstr "Fade-In Zeit des EPG Fensters in ms (Null zum Abschalten)" + +#~ msgid "EPG Window Display Delay in s" +#~ msgstr "Anzeigeverzögerung des EPG Fensters in s" + +#~ msgid "EPG Window Scroll Delay in s" +#~ msgstr "Scroll Verzögerung des EPG Fensters in s" + +#~ msgid "EPG Window Text Scrolling Speed" +#~ msgstr "Text Scroll Geschwindigkeit des EPG Fensters" + #~ msgid "Display additional EPG Pictures in detailed recording View" #~ msgstr "Weitere EPG Bilder in der detaillierten Aufnahmeansicht anzeigen" diff --git a/po/it_IT.po b/po/it_IT.po index 902ed26..6b51335 100644 --- a/po/it_IT.po +++ b/po/it_IT.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: skinnopacity 0.0.1\n" "Report-Msgid-Bugs-To: <see README>\n" -"POT-Creation-Date: 2021-07-05 14:49+0200\n" +"POT-Creation-Date: 2021-07-05 15:18+0200\n" "PO-Revision-Date: 2013-03-19 22:56+0100\n" "Last-Translator: Diego Pierotto <vdr-italian@tiscali.it>\n" "Language-Team: \n" @@ -179,9 +179,15 @@ msgstr "registrazioni" msgid "new" msgstr "nuovo" +msgid "Theme specific setup parameters are only available if this skin is active!" +msgstr "" + msgid "Font" msgstr "Carattere" +msgid "Create Log Messages for image loading" +msgstr "" + msgid "Use scraper infos and pictures" msgstr "" @@ -248,9 +254,6 @@ msgstr "veloce" msgid "auto" msgstr "" -msgid "Create Log Messages for image loading" -msgstr "" - msgid "Number of Default Menu Entries per Page" msgstr "Numero di voci per pagina menu predefinito" @@ -281,6 +284,18 @@ msgstr "" msgid "Fade-In Time in ms (Zero for switching off fading)" msgstr "Tempo comparsa in ms (0 per disattivazione)" +msgid "Info Window Fade-In Time in ms (Zero for switching off fading)" +msgstr "" + +msgid "Info Window Display Delay in s" +msgstr "" + +msgid "Info Window Scroll Delay in s" +msgstr "" + +msgid "Info Window Text Scrolling Speed" +msgstr "" + msgid "Menu Items Scroll Style" msgstr "" @@ -404,18 +419,6 @@ msgstr "Usa menu ridotto" msgid "Mode of EPG Window" msgstr "" -msgid "EPG Window Fade-In Time in ms (Zero for switching off fading)" -msgstr "Tempo comparsa finestra EPG in ms (0 per disattivazione)" - -msgid "EPG Window Display Delay in s" -msgstr "Ritardo schermo finestra EPG in sec" - -msgid "EPG Window Scroll Delay in s" -msgstr "Ritardo scorrimento finestra EPG in sec" - -msgid "EPG Window Text Scrolling Speed" -msgstr "Velocità scorrimento testo finestra EPG" - msgid "Height of EPG Info Window (Percent of OSD Height)" msgstr "Altezza di Finestra info EPG (% altezza OSD)" @@ -674,6 +677,18 @@ msgstr "conflitto" msgid "conflicts" msgstr "conflitti" +#~ msgid "EPG Window Fade-In Time in ms (Zero for switching off fading)" +#~ msgstr "Tempo comparsa finestra EPG in ms (0 per disattivazione)" + +#~ msgid "EPG Window Display Delay in s" +#~ msgstr "Ritardo schermo finestra EPG in sec" + +#~ msgid "EPG Window Scroll Delay in s" +#~ msgstr "Ritardo scorrimento finestra EPG in sec" + +#~ msgid "EPG Window Text Scrolling Speed" +#~ msgstr "Velocità scorrimento testo finestra EPG" + #~ msgid "Display additional EPG Pictures in detailed recording View" #~ msgstr "Mostra immagini EPG aggiuntivo nella vista dettagli registrazione" diff --git a/po/sk_SK.po b/po/sk_SK.po index 317d6ae..58cd2a7 100644 --- a/po/sk_SK.po +++ b/po/sk_SK.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: vdr-skinnopacity\n" "Report-Msgid-Bugs-To: <see README>\n" -"POT-Creation-Date: 2021-07-05 14:49+0200\n" +"POT-Creation-Date: 2021-07-05 15:18+0200\n" "PO-Revision-Date: 2013-11-11 20:52+0100\n" "Last-Translator: Milan Hrala <hrala.milan@gmail.com>\n" "Language-Team: \n" @@ -176,9 +176,15 @@ msgstr "nahrávky" msgid "new" msgstr "nový" +msgid "Theme specific setup parameters are only available if this skin is active!" +msgstr "" + msgid "Font" msgstr "Písmo" +msgid "Create Log Messages for image loading" +msgstr "Vytvori» protokolovanie správ pre naèítanie obrázka" + msgid "Use scraper infos and pictures" msgstr "" @@ -245,9 +251,6 @@ msgstr "rýchlo" msgid "auto" msgstr "automaticky" -msgid "Create Log Messages for image loading" -msgstr "Vytvori» protokolovanie správ pre naèítanie obrázka" - msgid "Number of Default Menu Entries per Page" msgstr "Poèet polo¾iek základného menu na stránke" @@ -278,6 +281,18 @@ msgstr "" msgid "Fade-In Time in ms (Zero for switching off fading)" msgstr "èas efektu zmiznutia v ms (nula vypnú»)" +msgid "Info Window Fade-In Time in ms (Zero for switching off fading)" +msgstr "" + +msgid "Info Window Display Delay in s" +msgstr "" + +msgid "Info Window Scroll Delay in s" +msgstr "" + +msgid "Info Window Text Scrolling Speed" +msgstr "" + msgid "Menu Items Scroll Style" msgstr "©týl rolovania menu polo¾iek" @@ -401,18 +416,6 @@ msgstr "Pou¾i» úzku ponuku" msgid "Mode of EPG Window" msgstr "Spôsob zobrazenia EPG okna" -msgid "EPG Window Fade-In Time in ms (Zero for switching off fading)" -msgstr "Èas efektu zmiznutia EPG okna v ms (nula vypne efekt)" - -msgid "EPG Window Display Delay in s" -msgstr "Okno EPG zobrazi» z oneskorením (s)" - -msgid "EPG Window Scroll Delay in s" -msgstr "Oneskorenie rolovania textu v okne EPG. (s)" - -msgid "EPG Window Text Scrolling Speed" -msgstr "Rýchlos» rolovania textu v okne EPG" - msgid "Height of EPG Info Window (Percent of OSD Height)" msgstr "Vý¹ka informaèného EPG okna (Percent z OSD vý¹ky)" @@ -671,6 +674,18 @@ msgstr "konflikt" msgid "conflicts" msgstr "konflikty" +#~ msgid "EPG Window Fade-In Time in ms (Zero for switching off fading)" +#~ msgstr "Èas efektu zmiznutia EPG okna v ms (nula vypne efekt)" + +#~ msgid "EPG Window Display Delay in s" +#~ msgstr "Okno EPG zobrazi» z oneskorením (s)" + +#~ msgid "EPG Window Scroll Delay in s" +#~ msgstr "Oneskorenie rolovania textu v okne EPG. (s)" + +#~ msgid "EPG Window Text Scrolling Speed" +#~ msgstr "Rýchlos» rolovania textu v okne EPG" + #~ msgid "Display additional EPG Pictures in detailed recording View" #~ msgstr "Zobrazi» ïal¹ie EPG obrázky v podrobnom zobrazení nahrávky" @@ -2,18 +2,24 @@ #include "setup.h" cNopacitySetup::cNopacitySetup(void) { - tmpConf = config; - cFont::GetAvailableFontNames(&fontNames); - fontNames.Insert(strdup(config.fontDefaultName)); - Setup(); + SetMenuCategory(mcPluginSetup); + cSkin *Skin = Skins.Get(Skins.Current()->Index()); + if (strcmp(Skin->Name(), "nOpacity") == 0) { + isNopacity = true; + tmpConf = config; + cFont::GetAvailableFontNames(&fontNames); + fontNames.Insert(strdup(config.fontDefaultName)); + Setup(); + } else { + Add(new cOsdItem(tr("Theme specific setup parameters are only available if this skin is active!"), osUnknown, false)); + } } cNopacitySetup::~cNopacitySetup(void) { config.SetFontName(); delete fontManager; delete imgCache; - cSkin *Skin = Skins.Get(Skins.Current()->Index()); - if (strcmp(Skin->Name(), "nOpacity") == 0) { + if (isNopacity) { int start = cTimeMs::Now(); geoManager->SetGeometry(); fontManager = new cFontManager(); @@ -30,6 +36,7 @@ void cNopacitySetup::Setup(void) { int currentItem = Current(); Clear(); Add(new cMenuEditStraItem(tr("Font"), tmpConf.GetValueRef("fontIndex"), fontNames.Size(), &fontNames[0])); + Add(new cMenuEditBoolItem(tr("Create Log Messages for image loading"), tmpConf.GetValueRef("debugImageLoading"))); Add(new cMenuEditBoolItem(tr("Use scraper infos and pictures"), tmpConf.GetValueRef("scraperInfo"))); Add(new cOsdItem(tr("VDR Menu: Common Settings"))); Add(new cOsdItem(tr("VDR Menu: Main and Setup Menu"))); @@ -88,6 +95,8 @@ eOSState cNopacitySetup::ProcessKey(eKeys Key) { } void cNopacitySetup::Store(void) { + if (!isNopacity) + return; const char *themeName = Skins.Current()->Theme()->Name(); for(std::map<std::string, int>::const_iterator it = tmpConf.GetStart(); it != tmpConf.GetEnd(); it++) { std::string name = (std::string)it->first; @@ -106,6 +115,7 @@ void cNopacitySetup::Store(void) { //------------------------------------------------------------------------------------------------------------------ cMenuSetupSubMenu::cMenuSetupSubMenu(const char* Title, cNopacityConfig* data) : cOsdMenu(Title, 30) { + SetMenuCategory(mcPluginSetup); tmpConf = data; spacer = " "; } @@ -145,7 +155,6 @@ cNopacitySetupMenuDisplay::cNopacitySetupMenuDisplay(cNopacityConfig* data) : c void cNopacitySetupMenuDisplay::Set(void) { int currentItem = Current(); Clear(); - Add(new cMenuEditBoolItem(tr("Create Log Messages for image loading"), tmpConf->GetValueRef("debugImageLoading"))); Add(new cMenuEditIntItem(tr("Number of Default Menu Entries per Page"), tmpConf->GetValueRef("numDefaultMenuItems"), 10, 40)); Add(new cMenuEditIntItem(tr("Adjust Font Size - Default Menu Item"), tmpConf->GetValueRef("fontMenuitemDefault"), -20, 20)); Add(new cMenuEditStraItem(tr("Adjustment of narrow menus"), tmpConf->GetValueRef("menuAdjustLeft"), 2, adjustLeft)); @@ -158,6 +167,10 @@ void cNopacitySetupMenuDisplay::Set(void) { Add(new cMenuEditBoolItem(tr("Use Channel Logo background"), tmpConf->GetValueRef("menuChannelLogoBackground"))); Add(new cMenuEditIntItem(tr("Fade-In Time in ms (Zero for switching off fading)"), tmpConf->GetValueRef("menuFadeTime"), 0, 1000)); Add(new cMenuEditIntItem(tr("Fade-In Time in ms (Zero for switching off fading)"), tmpConf->GetValueRef("menuFadeOutTime"), 0, 1000)); + Add(new cMenuEditIntItem(tr("Info Window Fade-In Time in ms (Zero for switching off fading)"), tmpConf->GetValueRef("menuEPGWindowFadeTime"), 0, 1000)); + Add(new cMenuEditIntItem(tr("Info Window Display Delay in s"), tmpConf->GetValueRef("menuInfoTextDelay"), 0, 10)); + Add(new cMenuEditIntItem(tr("Info Window Scroll Delay in s"), tmpConf->GetValueRef("menuInfoScrollDelay"), 0, 10)); + Add(new cMenuEditStraItem(tr("Info Window Text Scrolling Speed"), tmpConf->GetValueRef("menuInfoScrollSpeed"), 4, scrollSpeed)); Add(new cMenuEditStraItem(tr("Menu Items Scroll Style"), tmpConf->GetValueRef("scrollMode"), 2, scrollMode)); Add(new cMenuEditStraItem(tr("Menu Items Scrolling Speed"), tmpConf->GetValueRef("menuScrollSpeed"), 4, scrollSpeed)); Add(new cMenuEditIntItem(tr("Menu Items Scrolling Delay in s"), tmpConf->GetValueRef("menuScrollDelay"), 0, 3)); @@ -227,10 +240,6 @@ void cNopacitySetupMenuDisplayMain::Set(void) { //-----MenuDisplay Schedules Menu ------------------------------------------------------------------------------------------------------------- cNopacitySetupMenuDisplaySchedules::cNopacitySetupMenuDisplaySchedules(cNopacityConfig* data) : cMenuSetupSubMenu(tr("VDR Menu: Schedules Menu"), data) { - scrollSpeed[0] = tr("off"); - scrollSpeed[1] = tr("slow"); - scrollSpeed[2] = tr("medium"); - scrollSpeed[3] = tr("fast"); windowMode[0] = tr("window"); windowMode[1] = tr("full screen"); Set(); @@ -245,10 +254,6 @@ void cNopacitySetupMenuDisplaySchedules::Set(void) { Add(new cMenuEditIntItem(cString::sprintf("%s%s", *spacer, tr("Width (Percent of OSD Width)")), tmpConf->GetValueRef("menuWidthSchedules"), 10, 97)); Add(new cMenuEditIntItem(tr("Number of entires per page"), tmpConf->GetValueRef("numSchedulesMenuItems"), 3, 20)); Add(new cMenuEditStraItem(tr("Mode of EPG Window"), tmpConf->GetValueRef("menuSchedulesWindowMode"), 2, windowMode)); - Add(new cMenuEditIntItem(tr("EPG Window Fade-In Time in ms (Zero for switching off fading)"), tmpConf->GetValueRef("menuEPGWindowFadeTime"), 0, 1000)); - Add(new cMenuEditIntItem(tr("EPG Window Display Delay in s"), tmpConf->GetValueRef("menuInfoTextDelay"), 0, 10)); - Add(new cMenuEditIntItem(tr("EPG Window Scroll Delay in s"), tmpConf->GetValueRef("menuInfoScrollDelay"), 0, 10)); - Add(new cMenuEditStraItem(tr("EPG Window Text Scrolling Speed"), tmpConf->GetValueRef("menuInfoScrollSpeed"), 4, scrollSpeed)); Add(new cMenuEditIntItem(tr("Height of EPG Info Window (Percent of OSD Height)"), tmpConf->GetValueRef("menuHeightInfoWindow"), 10, 100)); Add(new cMenuEditIntItem(tr("Adjust Font Size - Menu Item"), tmpConf->GetValueRef("fontMenuitemSchedule"), -20, 20)); Add(new cMenuEditIntItem(tr("Adjust Font Size - Menu Item Small"), tmpConf->GetValueRef("fontMenuitemScheduleSmall"), -20, 20)); @@ -7,8 +7,9 @@ class cNopacitySetup : public cMenuSetupPage { public: cNopacitySetup(void); - virtual ~cNopacitySetup(); + virtual ~cNopacitySetup(void); private: + bool isNopacity = false; cNopacityConfig tmpConf; cStringList fontNames; void Setup(void); |