summaryrefslogtreecommitdiff
path: root/library/localization.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 16:57:45 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 16:57:45 +0200
commit2a3ebac62eb6dd88122c0f447ea90ce368373d3a (patch)
treefae5c18deaecfb6f39d4d66dd3de8ce730b2025b /library/localization.h
parent1.17 (diff)
downloadFreeFileSync-2a3ebac62eb6dd88122c0f447ea90ce368373d3a.tar.gz
FreeFileSync-2a3ebac62eb6dd88122c0f447ea90ce368373d3a.tar.bz2
FreeFileSync-2a3ebac62eb6dd88122c0f447ea90ce368373d3a.zip
1.18
Diffstat (limited to 'library/localization.h')
-rw-r--r--library/localization.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/library/localization.h b/library/localization.h
new file mode 100644
index 00000000..cf29d06d
--- /dev/null
+++ b/library/localization.h
@@ -0,0 +1,32 @@
+#ifndef MISC_H_INCLUDED
+#define MISC_H_INCLUDED
+
+#include <wx/intl.h>
+
+class Translation;
+
+
+class CustomLocale : public wxLocale
+{
+public:
+ CustomLocale();
+ ~CustomLocale();
+
+ void setLanguage(const int language);
+
+ int getLanguage() const
+ {
+ return currentLanguage;
+ }
+
+ const wxChar* GetString(const wxChar* szOrigString, const wxChar* szDomain = NULL) const;
+
+ static const std::string FfsLanguageDat;
+
+private:
+ Translation* translationDB;
+ int currentLanguage;
+};
+
+
+#endif // MISC_H_INCLUDED
bgstack15