mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-27 17:20:01 +00:00
TemplateData: add PLURAL to message Templatedata-modal-notice-import-numparams
See https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Templatedata-modal-errormsg-import-paramsalreadyexist/en Change-Id: Ife5e9d0afd9320271c8921162487f8c0338f24cd
This commit is contained in:
parent
12a5a42aee
commit
4c8673bbdb
|
@ -55,7 +55,7 @@
|
|||
"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": "Some parameters were not imported, because they already exist in the editor: $1",
|
||||
"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-json-error-replace": "Replace",
|
||||
"templatedata-modal-notice-import-numparams": "$1 new {{PLURAL:$1|parameter was|parameters were}} imported: $2",
|
||||
"templatedata-modal-placeholder-paramkey": "Parameter name",
|
||||
|
|
|
@ -756,7 +756,7 @@ mw.TemplateData.Dialog.prototype.importParametersFromTemplateCode = function ()
|
|||
this.repopulateParamSelectWidget();
|
||||
|
||||
if ( response.existing.length > 0 ) {
|
||||
combinedMessage.push( mw.msg( 'templatedata-modal-errormsg-import-paramsalreadyexist', response.existing.join( mw.msg( 'comma-separator' ) ) ) );
|
||||
combinedMessage.push( mw.msg( 'templatedata-modal-errormsg-import-paramsalreadyexist', response.existing.join( mw.msg( 'comma-separator' ) ), response.existing.length ) );
|
||||
}
|
||||
|
||||
if ( response.imported.length === 0 ) {
|
||||
|
|
Loading…
Reference in a new issue