Error message cleanup.

wxString::Format is redundant in a wxLogXXX call.
Error messages should generally be translatable.
Error messages should use generally consistent sentence forms.
This commit is contained in:
Jeff Young
2021-06-26 20:21:30 +01:00
parent 4c5df22eb0
commit 0dfb5fcaf9
16 changed files with 336 additions and 302 deletions
+2 -2
View File
@@ -205,7 +205,7 @@ bool SCRIPTING::scriptingSetup()
// Ensure the user plugin path exists, and create it if not.
// However, if it cannot be created, this is not a fatal error.
if( !path.DirExists() && !path.Mkdir( wxS_DIR_DEFAULT, wxPATH_MKDIR_FULL ) )
wxLogError( "Warning: could not create user scripting path %s", path.GetPath() );
wxLogError( _( "Could not create user scripting path %s." ), path.GetPath() );
return true;
}
@@ -324,7 +324,7 @@ void UpdatePythonEnvVar( const wxString& aVar, const wxString& aValue )
int retv = PyRun_SimpleString( cmd );
if( retv != 0 )
wxLogError( "Python error %d occurred running command:\n\n`%s`", retv, cmd );
wxLogError( "Python error %d running command:\n\n`%s`", retv, cmd );
}