diff options
author | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-07-19 21:19:44 +0000 |
---|---|---|
committer | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-07-19 21:19:44 +0000 |
commit | b40d2c550444c61c25a1c2ec2dbd472dd11d2b62 (patch) | |
tree | 9e6f69e97ab8a44f037add988f3c80b1c408fec8 /i18n.h | |
parent | 0ff607eb3b557f24f1e173be00323d89068df662 (diff) | |
download | vdr-plugin-live-b40d2c550444c61c25a1c2ec2dbd472dd11d2b62.tar.gz vdr-plugin-live-b40d2c550444c61c25a1c2ec2dbd472dd11d2b62.tar.bz2 |
- added support for sending vdr's internally used character encoding in responses
Diffstat (limited to 'i18n.h')
-rw-r--r-- | i18n.h | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -1,10 +1,32 @@ #ifndef VDR_LIVE_I18N_H #define VDR_LIVE_I18N_H +#include <vdr/config.h> #include <vdr/i18n.h> namespace vdrlive { +class I18n +{ + friend I18n& LiveI18n(); + + char const* m_encoding; + + I18n( I18n const& ); // don't copy + I18n() : m_encoding( +#if VDRVERSNUM >= 10503 + cCharSetConv::SystemCharacterTable() ? cCharSetConv::SystemCharacterTable() : "UTF-8" +#else + I18nCharSets()[::Setup.OSDLanguage] +#endif + ) {} + +public: + char const* CharacterEncoding() const { return m_encoding; } +}; + +I18n& LiveI18n(); + extern const tI18nPhrase Phrases[]; } // namespace vdrlive |