Added the new i18n macro trVDR()

This commit is contained in:
Klaus Schmidinger
2007-08-24 14:03:47 +02:00
parent 98bdd0cfea
commit a241ad38b8
5 changed files with 29 additions and 26 deletions

3
i18n.h
View File

@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: i18n.h 1.23 2007/08/19 14:07:17 kls Exp $
* $Id: i18n.h 1.24 2007/08/24 13:35:18 kls Exp $
*/
#ifndef __I18N_H
@@ -80,6 +80,7 @@ bool I18nIsPreferredLanguage(int *PreferredLanguages, const char *LanguageCode,
#ifdef PLUGIN_NAME_I18N
#define tr(s) I18nTranslate(s, "vdr-" PLUGIN_NAME_I18N)
#define trVDR(s) I18nTranslate(s) // to use a text that's in the VDR core's translation file
#else
#define tr(s) I18nTranslate(s)
#endif