summaryrefslogtreecommitdiff
path: root/i18n.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2007-08-19 16:04:22 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2007-08-19 16:04:22 +0200
commitc9ccd0ae1da627b293d27d2b85f8460afdb852ed (patch)
tree899257fa00516bf02708c02b356b0bdb1d6107a3 /i18n.c
parent69db18ef8f5acf0006f36c3fc8cfcf6b75be0431 (diff)
downloadvdr-c9ccd0ae1da627b293d27d2b85f8460afdb852ed.tar.gz
vdr-c9ccd0ae1da627b293d27d2b85f8460afdb852ed.tar.bz2
Fixed handling locale directories with a large number of entries
Diffstat (limited to 'i18n.c')
-rw-r--r--i18n.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/i18n.c b/i18n.c
index 15853a0f..c17dae70 100644
--- a/i18n.c
+++ b/i18n.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: i18n.c 1.312 2007/08/19 14:10:46 kls Exp $
+ * $Id: i18n.c 1.313 2007/08/19 16:03:03 kls Exp $
*
*
*/
@@ -112,7 +112,7 @@ void I18nInitialize(void)
for (int i = 0; i < Locales.Size(); i++) {
cString FileName = cString::sprintf("%s/%s/LC_MESSAGES/vdr.mo", I18nLocaleDir, Locales[i]);
if (access(FileName, F_OK) == 0) { // found a locale with VDR texts
- if (i < I18N_MAX_LANGUAGES - 1) {
+ if (NumLocales < I18N_MAX_LANGUAGES - 1) {
SetEnvLanguage(Locales[i]);
NumLocales++;
if (strstr(OldLocale, Locales[i]) == OldLocale)