From 420fb6c9b3427f65cfe24411944ee46b58cfcfb4 Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 16:57:03 +0200 Subject: 1.17 --- library/misc.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'library/misc.cpp') 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; } -- cgit