summaryrefslogtreecommitdiff
path: root/i18n.h
blob: ce5421f1d0e23d0b2eb0dfa6063e297281bb3742 (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
35
36
37
#ifndef VDR_LIVE_I18N_H
#define VDR_LIVE_I18N_H

#include <string>
#include <vdr/config.h>
#include <vdr/i18n.h>

namespace vdrlive {

class I18n
{
	friend I18n& LiveI18n();

	private:
		std::string m_encoding;

		I18n( I18n const& ); // don't copy
		I18n();

	public:
		std::string const& CharacterEncoding() const { return m_encoding; }
};

I18n& LiveI18n();

#if APIVERSNUM < 10507
extern const tI18nPhrase Phrases[];
#define trNOOP(s) (s)
#endif

#if APIVERSNUM < 10509
#define trVDR(s) tr(s)
#endif

} // namespace vdrlive

#endif // VDR_LIVE_I18N_H