Changed configuration file as its location changed in latest wxWidgets anyway

This commit is contained in:
Zane U. Ji 2012-03-17 02:41:42 +08:00
parent 91051e461e
commit 7393b46ab8
1 changed files with 4 additions and 2 deletions

View File

@ -186,8 +186,8 @@ END_EVENT_TABLE()
IMPLEMENT_APP ( MyApp) IMPLEMENT_APP ( MyApp)
MyApp::MyApp() : checker ( NULL ), server ( NULL ), connection ( NULL ), MyApp::MyApp() : checker ( NULL ), server ( NULL ), connection ( NULL ),
#ifdef __WXMSW__ #if defined(__WXMSW__) && !wxCHECK_VERSION(2,9,2)
config ( new wxFileConfig ( _T ( ".xmlcopyeditor" ) ) )//( _T ( "SourceForge Project\\XML Copy Editor" ) ) ) config ( new wxFileConfig ( _T ( ".xmlcopyeditor" ) ) )//( _T ( "SourceForge Project\\XML Copy Editor" ) ) )
#else #else
config ( new wxFileConfig ( _T ( "xmlcopyeditor" ) ) ) config ( new wxFileConfig ( _T ( "xmlcopyeditor" ) ) )
#endif #endif
@ -295,6 +295,8 @@ MyApp::MyApp() : checker ( NULL ), server ( NULL ), connection ( NULL ),
#ifndef __WXMSW__ #ifndef __WXMSW__
wxString poDir = GetLinuxAppDir::run() + wxFileName::GetPathSeparator() + _T ( "po" ) + wxFileName::GetPathSeparator(); wxString poDir = GetLinuxAppDir::run() + wxFileName::GetPathSeparator() + _T ( "po" ) + wxFileName::GetPathSeparator();
wxLocale::AddCatalogLookupPathPrefix ( poDir ); wxLocale::AddCatalogLookupPathPrefix ( poDir );
#else
wxLocale::AddCatalogLookupPathPrefix ( wxT ( "po" ) );
#endif #endif
if ( !myLocale.AddCatalog ( _T ( "messages" ) ) ) if ( !myLocale.AddCatalog ( _T ( "messages" ) ) )