summaryrefslogtreecommitdiff
path: root/i18n.h
blob: 25ba0a3f6ae0037a178a6fadd8a7f1d3626c7f30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#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

#endif // VDR_LIVE_I18N_H