summaryrefslogtreecommitdiff
path: root/i18n.h
diff options
context:
space:
mode:
Diffstat (limited to 'i18n.h')
-rw-r--r--i18n.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/i18n.h b/i18n.h
index d988e6b..642e53b 100644
--- a/i18n.h
+++ b/i18n.h
@@ -9,22 +9,32 @@
#include "file.h"
#include <vdr/i18n.h>
+#if VDRVERSNUM < 10507
+#define trNOOP(s) (s)
+
extern const tI18nPhrase Phrases[];
class cText2SkinI18n: public cText2SkinFile {
+#else
+class cText2SkinI18n {
+#endif
private:
std::string mIdentity;
+#if VDRVERSNUM < 10507
tI18nPhrase *mPhrases;
int mNumPhrases;
protected:
virtual bool Parse(const char *Text);
+#endif
public:
cText2SkinI18n(const char *Skin);
+#if VDRVERSNUM < 10507
virtual ~cText2SkinI18n();
virtual bool Load(const std::string &Filename);
+#endif
std::string Translate(const std::string &Text) { return I18nTranslate(Text.c_str(), mIdentity.c_str()); }
};