diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2007-08-24 14:03:47 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2007-08-24 14:03:47 +0200 |
commit | a241ad38b82baea3a8cb73ac1714f8f481fddc01 (patch) | |
tree | 814d88c1de52af967f2937c0399da537864aad01 /i18n.c | |
parent | 98bdd0cfeab4ff51713db1a3319ec8c673d1ea6b (diff) | |
download | vdr-a241ad38b82baea3a8cb73ac1714f8f481fddc01.tar.gz vdr-a241ad38b82baea3a8cb73ac1714f8f481fddc01.tar.bz2 |
Added the new i18n macro trVDR()
Diffstat (limited to 'i18n.c')
-rw-r--r-- | i18n.c | 8 |
1 files changed, 2 insertions, 6 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.316 2007/08/24 13:15:48 kls Exp $ + * $Id: i18n.c 1.317 2007/08/24 14:03:47 kls Exp $ * * */ @@ -206,11 +206,7 @@ const char *I18nTranslate(const char *s, const char *Plugin) if (!s) return s; if (CurrentLanguage) { - const char *t = s; - if (Plugin) - t = dgettext(Plugin, s); - if (t == s) - t = gettext(s); + const char *t = Plugin ? dgettext(Plugin, s) : gettext(s); if (t != s) return t; } |