summaryrefslogtreecommitdiff
path: root/i18n.h
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 /i18n.h
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 'i18n.h')
-rw-r--r--i18n.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/i18n.h b/i18n.h
index 46c6a5e1..fd9bfa0a 100644
--- a/i18n.h
+++ b/i18n.h
@@ -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