summaryrefslogtreecommitdiff
path: root/i18n.c
diff options
context:
space:
mode:
authorThomas Günther <tom@toms-cafe.de>2009-05-16 00:12:20 +0200
committerThomas Günther <tom@toms-cafe.de>2009-05-16 00:12:20 +0200
commit28a6a2db0c02e6b87b4b8a3a189a24f7c840f9c6 (patch)
treea686b75a092365e449a9db53161d6462a1985d60 /i18n.c
parenta056f044df6abf32ce5fb663cf5ad302acbe46b8 (diff)
downloadvdr-plugin-text2skin-28a6a2db0c02e6b87b4b8a3a189a24f7c840f9c6.tar.gz
vdr-plugin-text2skin-28a6a2db0c02e6b87b4b8a3a189a24f7c840f9c6.tar.bz2
Revert "Make compatible with VDR >= 1.5.7."
This reverts commit 5a745217debc3e82d153c7cb2325a15686a97eee.
Diffstat (limited to 'i18n.c')
-rw-r--r--i18n.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/i18n.c b/i18n.c
index 4079f2a..c8a0fdc 100644
--- a/i18n.c
+++ b/i18n.c
@@ -166,11 +166,7 @@ cText2SkinI18n::cText2SkinI18n(const char *Skin): cText2SkinFile(Skin) {
cText2SkinI18n::~cText2SkinI18n() {
for (int i = 0; mPhrases[i][0]; ++i) {
-#if VDRVERSNUM >= 10507
- for (int j = 0; j < I18nLanguages()->Size(); ++j)
-#else
for (int j = 0; j < I18nNumLanguages; ++j)
-#endif
free((void*)mPhrases[i][j]);
}
free(mPhrases);
@@ -186,11 +182,7 @@ bool cText2SkinI18n::Parse(const char *Text) {
memset(&p, 0, sizeof(tI18nPhrase));
Text += 17;
-#if VDRVERSNUM >= 10507
- for (i = 0; i < I18nLanguages()->Size(); ++i) {
-#else
for (i = 0; i < I18nNumLanguages; ++i) {
-#endif
char *langs = strdup(I18nLanguageCode(i));
char *ptr = langs, *ep;
std::string text;
@@ -208,11 +200,7 @@ bool cText2SkinI18n::Parse(const char *Text) {
}
int idx = mNumPhrases++;
-#if VDRVERSNUM >= 10507
- for (i = 0; i < I18nLanguages()->Size(); ++i)
-#else
for (i = 0; i < I18nNumLanguages; ++i)
-#endif
if (!p[i]) p[i] = "";
mPhrases = (tI18nPhrase*)realloc(mPhrases, (mNumPhrases + 1) * sizeof(tI18nPhrase));
memcpy(mPhrases[idx], p, sizeof(tI18nPhrase));
@@ -226,9 +214,7 @@ bool cText2SkinI18n::Parse(const char *Text) {
bool cText2SkinI18n::Load(const std::string &Filename) {
if (cText2SkinFile::Load(Filename)) {
-#if VDRVERSNUM <= 10506
I18nRegister(mPhrases, mIdentity.c_str());
-#endif
return true;
}
return false;