mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-28 01:30:00 +00:00
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:
parent
591df71a1e
commit
3dfa316fad
|
@ -41,7 +41,7 @@ $messages['en'] = array(
|
||||||
'templatedata-modal-button-cancel' => 'Cancel',
|
'templatedata-modal-button-cancel' => 'Cancel',
|
||||||
'templatedata-modal-button-delparam' => 'Delete parameter',
|
'templatedata-modal-button-delparam' => 'Delete parameter',
|
||||||
'templatedata-modal-button-importParams' => 'Import parameters',
|
'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-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-notice-import-numparams' => '$1 new {{PLURAL:$1|parameter was|parameters were}} imported.',
|
||||||
'templatedata-modal-table-param-actions' => 'Actions',
|
'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-delparam' => 'Button to delete a parameter',
|
||||||
'templatedata-modal-button-importParams' => 'Label of the import button',
|
'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
|
'templatedata-modal-errormsg' => 'Error message that appears in the TemplateData generator GUI in case there are empty, duplicate or invalid parameter names
|
||||||
|
* $1 - double curly brackets, supplied as a parameter to avoid parsing errors in translation strings.',
|
||||||
To avoid errors, it may be necessary to escape some of the characters with <nowiki><nowiki></nowiki></nowiki> or HTML entity codes.',
|
|
||||||
'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-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-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',
|
'templatedata-modal-table-param-actions' => 'Label for a table heading: Parameter actions in the table',
|
||||||
|
|
|
@ -482,7 +482,7 @@
|
||||||
// Validate
|
// Validate
|
||||||
if ( !doNotCheckForm ) {
|
if ( !doNotCheckForm ) {
|
||||||
if ( !isFormValid() ) {
|
if ( !isFormValid() ) {
|
||||||
showErrorModal( mw.msg( 'templatedata-modal-errormsg' ) );
|
showErrorModal( mw.msg( 'templatedata-modal-errormsg', '}}' ) );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue