summaryrefslogtreecommitdiff
path: root/i18n.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2008-01-19 12:25:54 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2008-01-19 12:25:54 +0100
commit6d8f92e24058dcb6f0c62532cbb01c3656bc7e97 (patch)
tree6468f3aafb3b8c4317f16c1d6f0a4270130072d0 /i18n.c
parenta51eb0895c70b4a6b609876e60503b742793dc20 (diff)
downloadvdr-6d8f92e24058dcb6f0c62532cbb01c3656bc7e97.tar.gz
vdr-6d8f92e24058dcb6f0c62532cbb01c3656bc7e97.tar.bz2
The new option --localedir can be used to set the locale directory at runtime
Diffstat (limited to 'i18n.c')
-rw-r--r--i18n.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/i18n.c b/i18n.c
index a018f238..66111f47 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.318 2007/11/01 10:38:27 kls Exp $
+ * $Id: i18n.c 1.319 2008/01/19 12:07:11 kls Exp $
*
*
*/
@@ -100,8 +100,10 @@ static void SetEnvLanguage(const char *Locale)
++_nl_msg_cat_cntr;
}
-void I18nInitialize(void)
+void I18nInitialize(const char *LocaleDir)
{
+ if (LocaleDir)
+ I18nLocaleDir = LocaleDir;
LanguageLocales.Append(strdup(I18N_DEFAULT_LOCALE));
LanguageNames.Append(strdup(SkipContext(LanguageName)));
LanguageCodes.Append(strdup(LanguageCodeList[0]));