- // then take the current directory
- // FIXME it should be the directory of the executable
-#if defined(__WXMAC__)
- searchPath << GetAllMsgCatalogSubdirs(wxGetCwd(), lang);
- // generic search paths could be somewhere in the system folder preferences
-#elif defined(__WXMSW__)
- // look in the directory of the executable
- wxString path;
- wxSplitPath(wxGetFullModuleName(), &path, NULL, NULL);
- searchPath << GetAllMsgCatalogSubdirs(path, lang);
-#else // !Mac, !MSW
- searchPath << GetAllMsgCatalogSubdirs(wxT("."), lang);
-#endif // platform
+
+ // finally construct the full search path
+ wxString searchPath;
+ searchPath.reserve(500);
+ count = paths.size();
+ for ( n = 0; n < count; n++ )
+ {
+ searchPath += paths[n];
+ if ( n != count - 1 )
+ searchPath += wxPATH_SEP;
+ }