From e53dae90e2454400d57d815086c762684cf846b9 Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Sun, 22 Jul 2007 17:22:00 +0000 Subject: - Some changes to enhance W3C XHTML strict compatibility. - Timer are called with epgid instead channelid and eventid. --- i18n.cpp | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'i18n.cpp') diff --git a/i18n.cpp b/i18n.cpp index 1545298..d8ba2e3 100644 --- a/i18n.cpp +++ b/i18n.cpp @@ -4,7 +4,7 @@ extended version of i18n.cpp. (If you would like to submit a patch add more context like described below) - $Id: i18n.cpp,v 1.98 2007/07/21 17:52:41 tadi Exp $ + $Id: i18n.cpp,v 1.99 2007/07/22 17:22:00 tadi Exp $ Note to developers: How to safely integrate translations from third parties: @@ -36,6 +36,25 @@ I18n& LiveI18n() return instance; } +I18n::I18n() + : m_encoding( +#if VDRVERSNUM >= 10503 + cCharSetConv::SystemCharacterTable() ? cCharSetConv::SystemCharacterTable() : "UTF-8" +#else + I18nCharSets()[::Setup.OSDLanguage] +#endif + ) +{ + // fix encoding spelling for html standard. + std::string const iso("iso"); + if (m_encoding.find(iso) != std::string::npos) { + if (iso.length() == m_encoding.find_first_of("0123456789")) { + m_encoding.insert(iso.length(), "-"); + } + } +} + + const tI18nPhrase Phrases[] = { { "Live Interactive VDR Environment", "Live Interactive VDR Environment", -- cgit v1.2.3