summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2007-08-18 09:21:52 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2007-08-18 09:21:52 +0200
commit8014316a315d445e3b5f53f21fd11ff89eeb8b45 (patch)
treefecb268f5d719e902970f56d73f8ed1142397110 /menu.c
parent48da9ba9c8f0d592f821c9a4afaca6eec7956981 (diff)
downloadvdr-8014316a315d445e3b5f53f21fd11ff89eeb8b45.tar.gz
vdr-8014316a315d445e3b5f53f21fd11ff89eeb8b45.tar.bz2
The "Setup/OSD/Language" menu now only shows those languages that actually have a locale (suggested by Anssi Hannula)
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/menu.c b/menu.c
index 69621efb..4d94b610 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 1.459 2007/08/12 10:44:35 kls Exp $
+ * $Id: menu.c 1.460 2007/08/18 09:03:05 kls Exp $
*/
#include "menu.h"
@@ -2205,7 +2205,7 @@ void cMenuSetupOSD::Set(void)
useSmallFontTexts[2] = tr("always");
Clear();
SetSection(tr("OSD"));
- Add(new cMenuEditStraItem(tr("Setup.OSD$Language"), &osdLanguageIndex, I18nLanguages()->Size(), &I18nLanguages()->At(0)));
+ Add(new cMenuEditStraItem(tr("Setup.OSD$Language"), &osdLanguageIndex, I18nNumLanguagesWithLocale(), &I18nLanguages()->At(0)));
Add(new cMenuEditStraItem(tr("Setup.OSD$Skin"), &skinIndex, numSkins, skinDescriptions));
if (themes.NumThemes())
Add(new cMenuEditStraItem(tr("Setup.OSD$Theme"), &themeIndex, themes.NumThemes(), themes.Descriptions()));