The "Setup/OSD/Language" menu now only shows those languages that actually have a locale (suggested by Anssi Hannula)

This commit is contained in:
Klaus Schmidinger
2007-08-18 09:21:52 +02:00
parent 48da9ba9c8
commit 8014316a31
5 changed files with 26 additions and 6 deletions

9
i18n.h
View File

@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: i18n.h 1.21 2007/08/10 13:53:57 kls Exp $
* $Id: i18n.h 1.22 2007/08/18 09:10:39 kls Exp $
*/
#ifndef __I18N_H
@@ -36,9 +36,16 @@ int I18nCurrentLanguage(void);
void I18nSetLanguage(int Language);
///< Sets the current language index to Language. If Language is outside
///< the range of available languages, nothing happens.
int I18nNumLanguagesWithLocale(void);
///< Returns the number of entries in the list returned by I18nLanguages()
///< that actually have a locale.
const cStringList *I18nLanguages(void);
///< Returns the list of available languages. Values returned by
///< I18nCurrentLanguage() are indexes into this list.
///< Only the first I18nNumLanguagesWithLocale() entries in this list
///< have an actual locale installed. The rest are just dummy entries
///< to allow having three letter language codes for other languages
///< that have no actual locale on this system.
const char *I18nTranslate(const char *s, const char *Plugin = NULL) __attribute_format_arg__(1);
///< Translates the given string (with optional Plugin context) into
///< the current language. If no translation is available, the original