diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:01:29 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:01:29 +0200 |
commit | 9a2a524f1e311853d08050be2dcdddc09ac7759a (patch) | |
tree | d8e4a24169fce88c2d89931d58514889a0bcb0ea /shared/localization.h | |
parent | 2.3 (diff) | |
download | FreeFileSync-9a2a524f1e311853d08050be2dcdddc09ac7759a.tar.gz FreeFileSync-9a2a524f1e311853d08050be2dcdddc09ac7759a.tar.bz2 FreeFileSync-9a2a524f1e311853d08050be2dcdddc09ac7759a.zip |
3.0
Diffstat (limited to 'shared/localization.h')
-rw-r--r-- | shared/localization.h | 72 |
1 files changed, 37 insertions, 35 deletions
diff --git a/shared/localization.h b/shared/localization.h index 2a5ee80d..0a5ca4fb 100644 --- a/shared/localization.h +++ b/shared/localization.h @@ -10,53 +10,55 @@ class Translation; namespace FreeFileSync { - //language dependent global variables: need to be initialized by CustomLocale on program startup and language switch +//language dependent global variables: need to be initialized by CustomLocale on program startup and language switch - extern const wxChar* THOUSANDS_SEPARATOR; - extern const wxChar* DECIMAL_POINT; +extern const wxChar* THOUSANDS_SEPARATOR; +extern const wxChar* DECIMAL_POINT; - struct LocInfoLine - { - int languageID; - wxString languageName; - wxString languageFile; - wxString translatorName; - wxString languageFlag; - }; - - class LocalizationInfo - { - public: - static const std::vector<LocInfoLine>& getMapping(); +struct LocInfoLine +{ + int languageID; + wxString languageName; + wxString languageFile; + wxString translatorName; + wxString languageFlag; +}; + +class LocalizationInfo +{ +public: + static const std::vector<LocInfoLine>& getMapping(); - private: - LocalizationInfo(); +private: + LocalizationInfo(); + LocalizationInfo(const LocalizationInfo&); + LocalizationInfo& operator=(const LocalizationInfo&); - std::vector<LocInfoLine> locMapping; - }; + std::vector<LocInfoLine> locMapping; +}; - class CustomLocale : public wxLocale - { - public: - static CustomLocale& getInstance(); +class CustomLocale : public wxLocale +{ +public: + static CustomLocale& getInstance(); - void setLanguage(const int language); + void setLanguage(const int language); - int getLanguage() const - { - return currentLanguage; - } + int getLanguage() const + { + return currentLanguage; + } - virtual const wxChar* GetString(const wxChar* szOrigString, const wxChar* szDomain = NULL) const; + virtual const wxChar* GetString(const wxChar* szOrigString, const wxChar* szDomain = NULL) const; - private: - CustomLocale(); +private: + CustomLocale(); - std::auto_ptr<Translation> translationDB; - int currentLanguage; - }; + std::auto_ptr<Translation> translationDB; + int currentLanguage; +}; } #endif // MISC_H_INCLUDED |