summaryrefslogtreecommitdiff
path: root/i18n.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2007-08-24 14:03:47 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2007-08-24 14:03:47 +0200
commita241ad38b82baea3a8cb73ac1714f8f481fddc01 (patch)
tree814d88c1de52af967f2937c0399da537864aad01 /i18n.c
parent98bdd0cfeab4ff51713db1a3319ec8c673d1ea6b (diff)
downloadvdr-a241ad38b82baea3a8cb73ac1714f8f481fddc01.tar.gz
vdr-a241ad38b82baea3a8cb73ac1714f8f481fddc01.tar.bz2
Added the new i18n macro trVDR()
Diffstat (limited to 'i18n.c')
-rw-r--r--i18n.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/i18n.c b/i18n.c
index cf0798fd..da699d97 100644
--- a/i18n.c
+++ b/i18n.c
@@ -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;
}