diff options
Diffstat (limited to 'i18n.c')
-rw-r--r-- | i18n.c | 41 |
1 files changed, 13 insertions, 28 deletions
@@ -5,6 +5,7 @@ #include "i18n.h" #include <vdr/config.h> +#if VDRVERSNUM < 10507 const tI18nPhrase Phrases[] = { /* { "English", @@ -79,15 +80,15 @@ const tI18nPhrase Phrases[] = { "", #endif }, - { "Flush image cache", - "Bildspeicher leeren", + { "Flushing image cache...", + "Bildspeicher wird geleert...", "", "", "", "", "", "", - "Tyhjennä kuvat välimuistista", + "Tyhjennetään välimuistia...", "", "", "", @@ -454,41 +455,24 @@ const tI18nPhrase Phrases[] = { "", #endif }, - { "en_US", - "de_DE", - "sl_SI", - "it_IT", - "nl_NL", - "pt_PT", - "fr_FR", - "no_NO", - "fi_FI", - "pl_PL", - "es_ES", - "el_GR", - "sv_SE", - "ro_RO", - "hu_HU", - "ca_AD", - "ru_RU", - "hr_HR", -#if VDRVERSNUM >= 10313 - "et_EE", -#endif -#if VDRVERSNUM >= 10316 - "da_DK", -#endif - }, { NULL } }; +#endif +#if VDRVERSNUM >= 10507 +cText2SkinI18n::cText2SkinI18n(const char *Skin) { + mIdentity = std::string("vdr-"PLUGIN_NAME_I18N"-") + Skin; + I18nRegister(mIdentity.substr(mIdentity.find('-') + 1).c_str()); +#else cText2SkinI18n::cText2SkinI18n(const char *Skin): cText2SkinFile(Skin) { mIdentity = (std::string)"text2skin_" + Skin; mNumPhrases = 0; mPhrases = (tI18nPhrase*)malloc(sizeof(tI18nPhrase)); memset(mPhrases[mNumPhrases], 0, sizeof(tI18nPhrase)); +#endif } +#if VDRVERSNUM < 10507 cText2SkinI18n::~cText2SkinI18n() { for (int i = 0; mPhrases[i][0]; ++i) { for (int j = 0; j < I18nNumLanguages; ++j) @@ -544,3 +528,4 @@ bool cText2SkinI18n::Load(const std::string &Filename) { } return false; } +#endif |