No more default for OSDLanguage

This commit is contained in:
Klaus Schmidinger
2007-08-12 12:18:23 +02:00
parent 365eda6cdd
commit 4c28809e2d
23 changed files with 284 additions and 282 deletions

16
i18n.c
View File

@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: i18n.c 1.307 2007/08/12 09:51:15 kls Exp $
* $Id: i18n.c 1.308 2007/08/12 12:15:29 kls Exp $
*
*
*/
@@ -149,13 +149,15 @@ void I18nRegister(const char *Plugin)
void I18nSetLocale(const char *Locale)
{
int i = LanguageLocales.Find(Locale);
if (i >= 0) {
CurrentLanguage = i;
setlocale(LC_MESSAGES, Locale);
if (Locale && *Locale) {
int i = LanguageLocales.Find(Locale);
if (i >= 0) {
CurrentLanguage = i;
setlocale(LC_MESSAGES, Locale);
}
else
dsyslog("unknown locale: '%s'", Locale);
}
else
dsyslog("unknown locale: '%s'", Locale);
}
int I18nCurrentLanguage(void)