#include "misc.h" #include #include #include "resources.h" void exchangeEscapeChars(wxString& data) { data.Replace(wxT("\\\\"), wxT("\\")); data.Replace(wxT("\\n"), wxT("\n")); data.Replace(wxT("\\t"), wxT("\t")); data.Replace(wxT("\"\""), wxT("""")); data.Replace(wxT("\\\""), wxT("\"")); } CustomLocale::CustomLocale() : wxLocale(), currentLanguage(wxLANGUAGE_ENGLISH) {} CustomLocale::~CustomLocale() { //write language to file ofstream output("lang.dat"); if (output) { output<translation.c_str()); //fallback return (szOrigString); }