diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:19:14 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:19:14 +0200 |
commit | 01eb8253196672c969a39587e90b49321a182428 (patch) | |
tree | 4a3b71d7913de519744466c9227fda6461c4f0b5 /lib/localization.cpp | |
parent | 5.0 (diff) | |
download | FreeFileSync-01eb8253196672c969a39587e90b49321a182428.tar.gz FreeFileSync-01eb8253196672c969a39587e90b49321a182428.tar.bz2 FreeFileSync-01eb8253196672c969a39587e90b49321a182428.zip |
5.1
Diffstat (limited to 'lib/localization.cpp')
-rw-r--r-- | lib/localization.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/localization.cpp b/lib/localization.cpp index e8867129..3c997074 100644 --- a/lib/localization.cpp +++ b/lib/localization.cpp @@ -183,7 +183,7 @@ ExistingTranslations::ExistingTranslations() for (auto i = lngFiles.begin(); i != lngFiles.end(); ++i) try { - std::string stream = loadStream(*i);; //throw XmlFileError + std::string stream = loadStream(*i); //throw XmlFileError try { lngfile::TransHeader lngHeader; @@ -193,8 +193,7 @@ ExistingTranslations::ExistingTranslations() There is some buggy behavior in wxWidgets which maps "zh_TW" to simplified chinese. Fortunately locales can be also entered as description. I changed to "Chinese (Traditional)" which works fine. */ - const wxLanguageInfo* locInfo = wxLocale::FindLanguageInfo(utf8CvrtTo<wxString>(lngHeader.localeName)); - if (locInfo) + if (const wxLanguageInfo* locInfo = wxLocale::FindLanguageInfo(utf8CvrtTo<wxString>(lngHeader.localeName))) { ExistingTranslations::Entry newEntry; newEntry.languageID = locInfo->Language; |