mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-03 02:41:21 +02:00
CMenuOptionNumberChooser: expand localize functionality for any number
This commit is contained in:
@@ -1071,12 +1071,12 @@ void COsdSetup::showOsdTimeoutSetup(CMenuWidget* menu_timeout)
|
||||
|
||||
std::string nf("%d ");
|
||||
nf += g_Locale->getText(LOCALE_UNIT_SHORT_SECOND);
|
||||
|
||||
for (int i = 0; i < SNeutrinoSettings::TIMING_SETTING_COUNT; i++)
|
||||
{
|
||||
CMenuOptionNumberChooser *ch = new CMenuOptionNumberChooser(timing_setting[i].name, &g_settings.timing[i], true, 0, 240);
|
||||
ch->setNumberFormat(nf);
|
||||
ch->setLocalizedValue(0);
|
||||
ch->setLocalizedValueName(LOCALE_OPTIONS_OFF);
|
||||
ch->setLocalizedValue(0, LOCALE_OPTIONS_OFF);
|
||||
ch->setHint("", timing_setting[i].hint);
|
||||
menu_timeout->addItem(ch);
|
||||
}
|
||||
|
Reference in New Issue
Block a user