From 4f9ab084874ccd2e9fbed1b07513df97d69c385f Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Wed, 14 Mar 2018 17:33:59 -0400 Subject: [PATCH] Substitute, don't concatenate, if these should be translated --- src/commands/Command.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/commands/Command.cpp b/src/commands/Command.cpp index 0275e4982..9cdfdbc3e 100644 --- a/src/commands/Command.cpp +++ b/src/commands/Command.cpp @@ -260,16 +260,17 @@ bool CommandImplementation::SetParameter(const wxString ¶mName, const wxVari ParamValueMap::iterator iter = mParams.find(paramName); if (iter == mParams.end()) { - context.Error(paramName + wxT(" is not a parameter accepted by ") + GetName()); + context.Error( wxString::Format( + _("%s is not a parameter accepted by %s"), paramName, GetName() ) ); return false; } Validator &validator = mType.GetSignature().GetValidator(iter->first); if (!validator.Validate(paramValue)) { - context.Error(wxT("Invalid value for parameter '") - + paramName + wxT("': should be ") - + validator.GetDescription()); + context.Error( wxString::Format( + _("Invalid value for parameter '%s': should be %s"), + paramName, validator.GetDescription() ) ); return false; } mParams[paramName] = validator.GetConverted();