Don't show warning about already-known parameters that weren't imported

Bug: T124223
Change-Id: Id102799b925ebaec6a1d819f1d2294982c24e407
This commit is contained in:
Alex Monk 2016-01-20 22:28:27 +00:00
parent 89392b9d9d
commit d723905034
4 changed files with 0 additions and 7 deletions

View file

@ -112,7 +112,6 @@
"templatedata-modal-current-language",
"templatedata-modal-errormsg",
"templatedata-modal-errormsg-import-noparams",
"templatedata-modal-errormsg-import-paramsalreadyexist",
"templatedata-modal-format-inline",
"templatedata-modal-format-block",
"templatedata-modal-json-error-replace",

View file

@ -62,7 +62,6 @@
"templatedata-modal-current-language": "Current language: $1",
"templatedata-modal-errormsg": "Errors found. Please make sure there are no empty or duplicate parameter names, and that the parameter name does not include \"$1\", \"$2\" or \"$3\".",
"templatedata-modal-errormsg-import-noparams": "No new parameters found during import.",
"templatedata-modal-errormsg-import-paramsalreadyexist": "{{PLURAL:$1|One parameter was not imported, because it already exists|Some parameters were not imported, because they already exist}} in the editor: $1",
"templatedata-modal-format-inline": "Inline",
"templatedata-modal-format-block": "Block",
"templatedata-modal-json-error-replace": "Replace",

View file

@ -72,7 +72,6 @@
"templatedata-modal-current-language": "Label displaying the current language in the edit dialog. Parameters:\n* $1 - currently showing language\n{{Identical|Current language}}",
"templatedata-modal-errormsg": "Error message that appears in the TemplateData generator GUI in case there are empty, duplicate or invalid parameter names.\n\nInvalid characters are supplied as parameters to avoid parsing errors in translation strings.\n\nParameters:\n* $1 - pipe (<code>|</code>)\n* $2 - equal sign (<code>=</code>)\n* $3 - double curly brackets (<code><nowiki>}}</nowiki></code>)",
"templatedata-modal-errormsg-import-noparams": "Error message that appears in the TemplateData generator GUI in case no template parameters were found during the import attempt.",
"templatedata-modal-errormsg-import-paramsalreadyexist": "Error message that appears when some parameters were not imported from the template code because they already exist in the editor.\n\nParameters:\n* $1 - list of parameters that were not imported",
"templatedata-modal-format-inline": "Label for inline format\n{{Identical|Inline}}",
"templatedata-modal-format-block": "Label for block format\n{{Identical|Block}}",
"templatedata-modal-json-error-replace": "Label for the button in the error message, agreeing to replace the existing faulty TemplateData string with a new one.\n{{Identical|Replace}}",

View file

@ -788,10 +788,6 @@ mw.TemplateData.Dialog.prototype.importParametersFromTemplateCode = function ()
// Repopulate the list
this.repopulateParamSelectWidget();
if ( response.existing.length > 0 ) {
combinedMessage.push( mw.msg( 'templatedata-modal-errormsg-import-paramsalreadyexist', response.existing.join( mw.msg( 'comma-separator' ) ), response.existing.length ) );
}
if ( response.imported.length === 0 ) {
combinedMessage.push( mw.msg( 'templatedata-modal-errormsg-import-noparams' ) );
state = 'error';