diff options
author | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2007-07-22 17:22:00 +0000 |
---|---|---|
committer | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2007-07-22 17:22:00 +0000 |
commit | e53dae90e2454400d57d815086c762684cf846b9 (patch) | |
tree | 90d735e7f79bc4c00029eacc647fe6c4c021d4bc /i18n.cpp | |
parent | 213b98b4f18076c8b9e42b6868beaa3a640ae4e6 (diff) | |
download | vdr-plugin-live-e53dae90e2454400d57d815086c762684cf846b9.tar.gz vdr-plugin-live-e53dae90e2454400d57d815086c762684cf846b9.tar.bz2 |
- Some changes to enhance W3C XHTML strict compatibility.
- Timer are called with epgid instead channelid and eventid.
Diffstat (limited to 'i18n.cpp')
-rw-r--r-- | i18n.cpp | 21 |
1 files changed, 20 insertions, 1 deletions
@@ -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", |