diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2008-01-19 12:25:54 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2008-01-19 12:25:54 +0100 |
commit | 6d8f92e24058dcb6f0c62532cbb01c3656bc7e97 (patch) | |
tree | 6468f3aafb3b8c4317f16c1d6f0a4270130072d0 /i18n.c | |
parent | a51eb0895c70b4a6b609876e60503b742793dc20 (diff) | |
download | vdr-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.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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])); |