From 371d910a0f31585797c1c7521a50f1945fe1d8d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=BCnther?= Date: Sat, 16 May 2009 11:52:15 +0200 Subject: 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 ) --- font.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'font.c') diff --git a/font.c b/font.c index 7042da9..706ab23 100644 --- a/font.c +++ b/font.c @@ -31,8 +31,13 @@ const cFont *cText2SkinFont::Load(const std::string &Path, const std::string &Fi const cFont *res = NULL; #ifdef HAVE_FREETYPE char *cachename; +#if VDRVERSNUM >= 10507 + asprintf(&cachename, "%s_%d_%d_%d", Filename.c_str(), Size, Width, I18nCurrentLanguage()); + if (mFontCache.Load(Path + "/" + Filename, cachename, Size, I18nCurrentLanguage(), Width)) +#else asprintf(&cachename, "%s_%d_%d_%d", Filename.c_str(), Size, Width, Setup.OSDLanguage); if (mFontCache.Load(Path + "/" + Filename, cachename, Size, Setup.OSDLanguage, Width)) +#endif res = mFontCache.GetFont(cachename); else esyslog("ERROR: Text2Skin: Couldn't load font %s:%d", Filename.c_str(), Size); -- cgit v1.2.3