summaryrefslogtreecommitdiff
path: root/library/misc.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 16:57:03 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 16:57:03 +0200
commit420fb6c9b3427f65cfe24411944ee46b58cfcfb4 (patch)
tree58269ba5ee7a22d2df004f03b100cc234b8c3f14 /library/misc.cpp
parent1.16 (diff)
downloadFreeFileSync-420fb6c9b3427f65cfe24411944ee46b58cfcfb4.tar.gz
FreeFileSync-420fb6c9b3427f65cfe24411944ee46b58cfcfb4.tar.bz2
FreeFileSync-420fb6c9b3427f65cfe24411944ee46b58cfcfb4.zip
1.17
Diffstat (limited to 'library/misc.cpp')
-rw-r--r--library/misc.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/library/misc.cpp b/library/misc.cpp
index 0b0bf60b..0d5761d6 100644
--- a/library/misc.cpp
+++ b/library/misc.cpp
@@ -74,6 +74,9 @@ void CustomLocale::setLanguage(const int language)
case wxLANGUAGE_GERMAN:
languageFile = "Languages/german.lng";
break;
+ case wxLANGUAGE_HUNGARIAN:
+ languageFile = "Languages/hungarian.lng";
+ break;
case wxLANGUAGE_ITALIAN:
languageFile = "Languages/italian.lng";
break;
@@ -86,6 +89,12 @@ void CustomLocale::setLanguage(const int language)
case wxLANGUAGE_PORTUGUESE:
languageFile = "Languages/portuguese.lng";
break;
+ case wxLANGUAGE_SLOVENIAN:
+ languageFile = "Languages/slovenian.lng";
+ break;
+ case wxLANGUAGE_SPANISH:
+ languageFile = "Languages/spanish.lng";
+ break;
default:
languageFile.clear();
currentLanguage = wxLANGUAGE_ENGLISH;
@@ -153,7 +162,8 @@ const wxChar* CustomLocale::GetString(const wxChar* szOrigString, const wxChar*
//look for translation in buffer table
Translation::iterator i;
if ((i = translationDB.find(currentLine)) != translationDB.end())
- return (i->translation.c_str());
+ return i->translation.c_str();
+
//fallback
- return (szOrigString);
+ return szOrigString;
}
bgstack15