extension = extension + strlen( extension ) +1;
}
- if ( (extension = strrchr( extension, '.' )) // != "blabla"
+ extension = strrchr( extension, '.' );
+ if ( extension // != "blabla"
&& !strrchr( extension, '*' ) // != "blabla.*"
&& !strrchr( extension, '?' ) // != "blabla.?"
&& extension[1] // != "blabla."
char prompt[50];
wxString str;
if (load)
- str = (const char*) wxTString("Load %s file");
+ str = "Load %s file";
else
- str = (const char*) wxTString("Save %s file");
- sprintf(prompt, str, what);
+ str = "Save %s file";
+ sprintf(prompt, wxGetTranslation(str), what);
if (*ext == '.') ext++;
char wild[60];