On 08/24/07 16:00, Klaus Schmidinger wrote: > ... > One more thing: this also reduces I18nTranslate() to > > > const char *I18nTranslate(const char *s, const char *Plugin) > { > if (s && CurrentLanguage) { > const char *t = Plugin ? dgettext(Plugin, s) : gettext(s); > if (t != s) > return t; > } > return SkipContext(s); > } Well, actually const char *I18nTranslate(const char *s, const char *Plugin) { if (!s) return s; if (CurrentLanguage) { const char *t = Plugin ? dgettext(Plugin, s) : gettext(s); if (t != s) return t; } return SkipContext(s); } Guess I was a little too enthusiastic when minimizing this code ,-) Klaus _______________________________________________ vdr mailing list vdr@xxxxxxxxxxx http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr