Make {{ a parameter in the error message in the editor dialog

Translatewiki warns of an unbalanced parenthesis problem in the
translation string. Turning the {{ into a parameter solves this issue.

Change-Id: I2fd69b3e901175dad22d285aa2373916acd4f208
This commit is contained in:
Moriel Schottlender 2014-01-17 23:40:06 -05:00
parent 591df71a1e
commit 3dfa316fad
2 changed files with 3 additions and 4 deletions

View file

@ -41,7 +41,7 @@ $messages['en'] = array(
'templatedata-modal-button-cancel' => 'Cancel',
'templatedata-modal-button-delparam' => 'Delete parameter',
'templatedata-modal-button-importParams' => 'Import parameters',
'templatedata-modal-errormsg' => 'Errors found. Please make sure there are no empty or duplicate parameter names, and that the parameter name does not include "|", "=" or "}}".',
'templatedata-modal-errormsg' => 'Errors found. Please make sure there are no empty or duplicate parameter names, and that the parameter name does not include "|", "=" or "$1".',
'templatedata-modal-errormsg-import-noparams' => 'No new parameters found during import.',
'templatedata-modal-notice-import-numparams' => '$1 new {{PLURAL:$1|parameter was|parameters were}} imported.',
'templatedata-modal-table-param-actions' => 'Actions',
@ -131,8 +131,7 @@ $messages['qqq'] = array(
'templatedata-modal-button-delparam' => 'Button to delete a parameter',
'templatedata-modal-button-importParams' => 'Label of the import button',
'templatedata-modal-errormsg' => 'Error message that appears in the TemplateData generator GUI in case there are empty, duplicate or invalid parameter names
To avoid errors, it may be necessary to escape some of the characters with <nowiki><nowiki></nowiki></nowiki> or HTML entity codes.',
* $1 - double curly brackets, supplied as a parameter to avoid parsing errors in translation strings.',
'templatedata-modal-errormsg-import-noparams' => 'message that appears in the TemplateData generator GUI in case no template parameters were found during the import attempt.',
'templatedata-modal-notice-import-numparams' => 'message that appears in the TemplateData generator GUI showing how many new parameters were imported into the GUI from an existing template.',
'templatedata-modal-table-param-actions' => 'Label for a table heading: Parameter actions in the table',

View file

@ -482,7 +482,7 @@
// Validate
if ( !doNotCheckForm ) {
if ( !isFormValid() ) {
showErrorModal( mw.msg( 'templatedata-modal-errormsg' ) );
showErrorModal( mw.msg( 'templatedata-modal-errormsg', '}}' ) );
return;
}
}