diff options
Diffstat (limited to 'library/localization.h')
-rw-r--r-- | library/localization.h | 52 |
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 |