diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2007-08-18 09:21:52 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2007-08-18 09:21:52 +0200 |
commit | 8014316a315d445e3b5f53f21fd11ff89eeb8b45 (patch) | |
tree | fecb268f5d719e902970f56d73f8ed1142397110 /i18n.h | |
parent | 48da9ba9c8f0d592f821c9a4afaca6eec7956981 (diff) | |
download | vdr-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 'i18n.h')
-rw-r--r-- | i18n.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 |