summaryrefslogtreecommitdiff
path: root/i18n.h
diff options
context:
space:
mode:
authorlordjaxom <lordjaxom>2004-06-02 19:56:58 +0000
committerlordjaxom <lordjaxom>2004-06-02 19:56:58 +0000
commite0c2ee1d37c0f213f22a04df71710bebe3526f85 (patch)
tree8bfd3a4fa065abeb016134466523a1152202e597 /i18n.h
parente535cdbe09d9c13d79cd6722aafca5798b7d1e35 (diff)
downloadvdr-plugin-text2skin-e0c2ee1d37c0f213f22a04df71710bebe3526f85.tar.gz
vdr-plugin-text2skin-e0c2ee1d37c0f213f22a04df71710bebe3526f85.tar.bz2
- implemented image loading through ImageMagick (fixes crashes when runningv0.0.1-rc4
together with GraphTFT) - implemented Theme support (see file demo.colors in the demo skin) - implemented translations for texts used in skins (see file demo.trans in the demo skin)
Diffstat (limited to 'i18n.h')
-rw-r--r--i18n.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/i18n.h b/i18n.h
new file mode 100644
index 0000000..e634e5d
--- /dev/null
+++ b/i18n.h
@@ -0,0 +1,30 @@
+/*
+ * $Id: i18n.h,v 1.1 2004/06/02 20:43:05 lordjaxom Exp $
+ */
+
+#ifndef VDR_TEXT2SKIN_I18N_H
+#define VDR_TEXT2SKIN_I18N_H
+
+#include "common.h"
+#include "file.h"
+#include <vdr/i18n.h>
+
+class cText2SkinI18n: public cText2SkinFile {
+private:
+ string mIdentity;
+ tI18nPhrase *mPhrases;
+ int mNumPhrases;
+
+protected:
+ virtual bool Parse(const char *Text);
+
+public:
+ cText2SkinI18n(const char *Skin);
+ virtual ~cText2SkinI18n();
+
+ virtual bool Load(const string &Filename);
+ string Translate(const string &Text);
+};
+
+#endif // VDR_TEXT2SKIN_I18N_H
+