Index: util.h
===================================================================
--- util.h	(revision 66)
+++ util.h	(revision 67)
@@ -136,6 +136,7 @@
 vector<unsigned char> ParseHex(const char* psz);
 vector<unsigned char> ParseHex(const std::string& str);
 void ParseParameters(int argc, char* argv[]);
+const char* wxGetTranslation(const char* psz);
 int GetFilesize(FILE* file);
 void GetDataDir(char* pszDirRet);
 string GetDataDir();
@@ -340,11 +341,6 @@
         ++it;
 }
 
-inline const char* wxGetTranslation(const char* psz)
-{
-    // Return translated UTF-8 const char*
-    return wxGetTranslation(wxString(psz, wxConvUTF8)).utf8_str();
-}
 
 
 
@@ -353,6 +349,9 @@
 
 
 
+
+
+
 inline void heapchk()
 {
 #ifdef __WXMSW__
Index: serialize.h
===================================================================
--- serialize.h	(revision 66)
+++ serialize.h	(revision 67)
@@ -19,7 +19,7 @@
 class CDataStream;
 class CAutoFile;
 
-static const int VERSION = 202;
+static const int VERSION = 203;
 static const char* pszSubVer = ".0";
 
 
Index: util.cpp
===================================================================
--- util.cpp	(revision 66)
+++ util.cpp	(revision 67)
@@ -431,11 +431,40 @@
 }
 
 
+const char* wxGetTranslation(const char* pszEnglish)
+{
+    // Wrapper of wxGetTranslation returning the same const char* type as was passed in
+    static CCriticalSection cs;
+    CRITICAL_BLOCK(cs)
+    {
+        // Look in cache
+        static map<string, char*> mapCache;
+        map<string, char*>::iterator mi = mapCache.find(pszEnglish);
+        if (mi != mapCache.end())
+            return (*mi).second;
 
+        // wxWidgets translation
+        const char* pszTranslated = wxGetTranslation(wxString(pszEnglish, wxConvUTF8)).utf8_str();
+        if (strcmp(pszEnglish, pszTranslated) == 0)
+            return pszEnglish;
 
+        // Add to cache, memory doesn't need to be freed
+        char* pszCached = new char[strlen(pszTranslated)+1];
+        strcpy(pszCached, pszTranslated);
+        mapCache[pszEnglish] = pszCached;
+        return pszCached;
+    }
+}
 
 
 
+
+
+
+
+
+
+
 void FormatException(char* pszMessage, std::exception* pex, const char* pszThread)
 {
 #ifdef __WXMSW__
