[vdr] VDR-core's texts in plugin's .pot files

Klaus Schmidinger Klaus.Schmidinger at cadsoft.de
Fri Aug 24 16:03:37 CEST 2007


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



More information about the vdr mailing list