mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
- adzap: align locale in usermenu item to adzap active status
This commit is contained in:
@@ -948,6 +948,7 @@ menu.back Zurück
|
||||
menu.cancel Abbrechen
|
||||
menu.hint_a_pic Konfigurieren Sie den Audioplayer und den Bildbetrachter
|
||||
menu.hint_adzap Der Werbe-Zapper schaltet nach der eingestellten Zeit wieder auf den ursprünglichen Kanal zurück
|
||||
menu.hint_adzap_active Der Werbe-Zapper ist aktiv. Mit einem erneuten Aufruf wird er deaktiviert.
|
||||
menu.hint_aplay Audioplayer
|
||||
menu.hint_aplay_setup Ändern Sie Audioplayer-Einstellungen wie Titel-Anzeige, Startverzeichnis oder Bildschirmschoner.
|
||||
menu.hint_audio Audio-Ausgang, Dolby Digital und SRS TruVolume Optionen und mehr
|
||||
|
@@ -948,6 +948,7 @@ menu.back Back
|
||||
menu.cancel Cancel
|
||||
menu.hint_a_pic Configure audio player and picture viewer
|
||||
menu.hint_adzap AdZap will switch back to the current channel when the selected time is up
|
||||
menu.hint_adzap_active AdZap is active. With a new call it will be deactivated.
|
||||
menu.hint_aplay Audio player
|
||||
menu.hint_aplay_setup Change title display, start directory, screen saver and more
|
||||
menu.hint_audio Audio output, DD\nSRS True volume options
|
||||
|
@@ -68,6 +68,7 @@
|
||||
#include <mymenu.h>
|
||||
|
||||
#include <gui/widget/icons.h>
|
||||
#include <gui/adzap.h>
|
||||
#include <gui/network_setup.h>
|
||||
#include <gui/update_menue.h>
|
||||
#include <gui/hdd_menu.h>
|
||||
@@ -186,6 +187,8 @@ bool CUserMenu::showUserMenu(neutrino_msg_t msg)
|
||||
bool _mode_webtv = (CNeutrinoApp::getInstance()->getMode() == NeutrinoMessages::mode_webtv) &&
|
||||
(!CZapit::getInstance()->GetCurrentChannel()->getScriptName().empty());
|
||||
|
||||
bool adzap_active = CAdZapMenu::getInstance()->isActive();
|
||||
|
||||
std::string itemstr_last("1");
|
||||
|
||||
std::vector<std::string> items = ::split(g_settings.usermenu[button]->items, ',');
|
||||
@@ -374,8 +377,8 @@ bool CUserMenu::showUserMenu(neutrino_msg_t msg)
|
||||
break;
|
||||
case SNeutrinoSettings::ITEM_ADZAP:
|
||||
keyhelper.get(&key,&icon,CRCInput::RC_blue);
|
||||
menu_item = new CMenuForwarder(LOCALE_USERMENU_ITEM_ADZAP, true, NULL, neutrino, "adzap", key, icon);
|
||||
menu_item->setHint("", LOCALE_MENU_HINT_ADZAP);
|
||||
menu_item = new CMenuForwarder(LOCALE_USERMENU_ITEM_ADZAP, true, adzap_active ? g_Locale->getText(LOCALE_OPTIONS_OFF) : NULL, neutrino, "adzap", key, icon);
|
||||
menu_item->setHint("", adzap_active ? LOCALE_MENU_HINT_ADZAP_ACTIVE : LOCALE_MENU_HINT_ADZAP);
|
||||
break;
|
||||
#if 0
|
||||
case SNeutrinoSettings::ITEM_TUNER_RESTART:
|
||||
|
@@ -975,6 +975,7 @@ typedef enum
|
||||
LOCALE_MENU_CANCEL,
|
||||
LOCALE_MENU_HINT_A_PIC,
|
||||
LOCALE_MENU_HINT_ADZAP,
|
||||
LOCALE_MENU_HINT_ADZAP_ACTIVE,
|
||||
LOCALE_MENU_HINT_APLAY,
|
||||
LOCALE_MENU_HINT_APLAY_SETUP,
|
||||
LOCALE_MENU_HINT_AUDIO,
|
||||
|
@@ -975,6 +975,7 @@ const char * locale_real_names[] =
|
||||
"menu.cancel",
|
||||
"menu.hint_a_pic",
|
||||
"menu.hint_adzap",
|
||||
"menu.hint_adzap_active",
|
||||
"menu.hint_aplay",
|
||||
"menu.hint_aplay_setup",
|
||||
"menu.hint_audio",
|
||||
|
Reference in New Issue
Block a user