summaryrefslogtreecommitdiff
path: root/library/misc.cpp
diff options
context:
space:
mode:
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