summaryrefslogtreecommitdiff
path: root/text2skin.c
diff options
context:
space:
mode:
authorThomas Günther <tom@toms-cafe.de>2009-05-16 11:52:15 +0200
committerThomas Günther <tom@toms-cafe.de>2009-05-16 11:52:15 +0200
commit371d910a0f31585797c1c7521a50f1945fe1d8d9 (patch)
treec66c666cc0cc1774035cf4981d6ba7c12cec319f /text2skin.c
parent28a6a2db0c02e6b87b4b8a3a189a24f7c840f9c6 (diff)
downloadvdr-plugin-text2skin-371d910a0f31585797c1c7521a50f1945fe1d8d9.tar.gz
vdr-plugin-text2skin-371d910a0f31585797c1c7521a50f1945fe1d8d9.tar.bz2
Locales for text2skin plug-in (VDR >= 1.5.7, skins + locale patch).
Patch from http://toms-cafe.de/vdr/download/text2skin-1.1-cvs-locale.diff The skins have to be patched, too. The patches for DeepBlue, Enigma and enElchi are ready for download from http://toms-cafe.de/vdr/download/. To patch other skins the Makefile from these patches could be used without any changes, missing translation entries should be added to the *.skin file (e.g. as comments <!-- trans('Volume') -->)
Diffstat (limited to 'text2skin.c')
-rw-r--r--text2skin.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/text2skin.c b/text2skin.c
index be63af4..f28ace9 100644
--- a/text2skin.c
+++ b/text2skin.c
@@ -15,7 +15,7 @@
const char *cText2SkinPlugin::VERSION = "1.1-cvs";
const char *cText2SkinPlugin::SKINVERSION = "1.0";
-const char *cText2SkinPlugin::DESCRIPTION = "Loader for text-based skins";
+const char *cText2SkinPlugin::DESCRIPTION = trNOOP("Loader for text-based skins");
cText2SkinPlugin::cText2SkinPlugin(void) {
}
@@ -24,8 +24,12 @@ cText2SkinPlugin::~cText2SkinPlugin() {
}
bool cText2SkinPlugin::Start(void) {
+#if VDRVERSNUM < 10507
RegisterI18n(Phrases);
Text2SkinStatus.SetLanguage(Setup.OSDLanguage);
+#else
+ Text2SkinStatus.SetLanguage(I18nCurrentLanguage());
+#endif
cText2SkinLoader::Start();
return true;
}