summaryrefslogtreecommitdiff
path: root/library/localization.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 16:59:06 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 16:59:06 +0200
commit4046be06720932a57a0f49416b0144b2858824d0 (patch)
tree678c37cab05960f48923a23bb46d9e01be89d35a /library/localization.h
parent1.19 (diff)
downloadFreeFileSync-4046be06720932a57a0f49416b0144b2858824d0.tar.gz
FreeFileSync-4046be06720932a57a0f49416b0144b2858824d0.tar.bz2
FreeFileSync-4046be06720932a57a0f49416b0144b2858824d0.zip
2.0
Diffstat (limited to 'library/localization.h')
-rw-r--r--library/localization.h52
1 files changed, 38 insertions, 14 deletions
diff --git a/library/localization.h b/library/localization.h
index cf29d06d..7a63fd9c 100644
--- a/library/localization.h
+++ b/library/localization.h
@@ -2,31 +2,55 @@
#define MISC_H_INCLUDED
#include <wx/intl.h>
+#include <wx/bitmap.h>
+#include <vector>
class Translation;
-class CustomLocale : public wxLocale
+namespace FreeFileSync
{
-public:
- CustomLocale();
- ~CustomLocale();
+ struct LocInfoLine
+ {
+ int languageID;
+ wxString languageName;
+ std::string languageFile;
+ wxString translatorName;
+ wxBitmap* languageFlag;
+ };
+
+
+ class LocalizationInfo
+ {
+ public:
+ static const std::vector<LocInfoLine>& getMapping();
+
+ private:
+ LocalizationInfo();
+
+ std::vector<LocInfoLine> locMapping;
+ };
- void setLanguage(const int language);
- int getLanguage() const
+ class CustomLocale : public wxLocale
{
- return currentLanguage;
- }
+ public:
+ CustomLocale();
+ ~CustomLocale();
- const wxChar* GetString(const wxChar* szOrigString, const wxChar* szDomain = NULL) const;
+ void setLanguage(const int language);
- static const std::string FfsLanguageDat;
+ int getLanguage() const
+ {
+ return currentLanguage;
+ }
-private:
- Translation* translationDB;
- int currentLanguage;
-};
+ const wxChar* GetString(const wxChar* szOrigString, const wxChar* szDomain = NULL) const;
+ private:
+ Translation* translationDB;
+ int currentLanguage;
+ };
+}
#endif // MISC_H_INCLUDED
bgstack15