Merge "Let help link target be locally over-ridden; default to the MW help page"

This commit is contained in:
jenkins-bot 2014-10-21 17:53:50 +00:00 committed by Gerrit Code Review
commit 8210018147
4 changed files with 4 additions and 1 deletions

View file

@ -67,6 +67,7 @@ $wgResourceModules['ext.templateDataGenerator.editPage'] = array(
'messages' => array(
'templatedata-editbutton',
'templatedata-helplink',
'templatedata-helplink-target',
'templatedata-errormsg-jsonbadformat',
)
);

View file

@ -24,6 +24,7 @@
"templatedata-editbutton": "Manage TemplateData",
"templatedata-errormsg-jsonbadformat": "Bad JSON format. Either correct it, or delete the current <templatedata> tags and try again.",
"templatedata-helplink": "Information about TemplateData",
"templatedata-helplink-target": "//www.mediawiki.org/wiki/Special:MyLanguage/Help:TemplateData",
"templatedata-invalid-duplicate-value": "Property \"$1\" (\"$3\") is a duplicate of \"$2\".",
"templatedata-invalid-empty-array": "Property \"$1\" must have at least one value in its array.",
"templatedata-invalid-length": "Data too large to save ({{formatnum:$1}} {{PLURAL:$1|byte|bytes}}, {{PLURAL:$2|limit is}} {{formatnum:$2}})",

View file

@ -30,6 +30,7 @@
"templatedata-editbutton": "The label of the button to manage templatedata, appearing above the editor field.",
"templatedata-errormsg-jsonbadformat": "Error message that appears in case the JSON string is not possible to parse. The user is asked to either correct the json syntax or delete the values between the &lt;templatedata&gt; tags and try again.",
"templatedata-helplink": "The label of the link to the TemplateData documentation, appearing above the editor field.",
"templatedata-helplink-target": "{{Optional}} The target of the link to the TemplateData documentation",
"templatedata-invalid-duplicate-value": "Displayed when an array that must only contain unique values contains a duplicate.\n* $1 - name of property containing the duplicate\n* $2 - name of property with first occurrence of value\n* $3 - the value being duplicated",
"templatedata-invalid-empty-array": "Error message when a property that must be non-empty is empty. Parameters:\n* $1 - property name (\"paramOrder\" or \"sets.{$setNr}.params\")",
"templatedata-invalid-length": "Error message when generated JSON's length exceed database limits.\n* $1 - length of generated JSON\n* $2 - maximal allowed length",

View file

@ -1395,7 +1395,7 @@
$helpLink: $( '<a>' )
.addClass( 'tdg-editscreen-main-helplink' )
.text( mw.msg( 'templatedata-helplink' ) )
.attr( 'href', 'https://www.mediawiki.org/wiki/Extension:TemplateData' )
.attr( 'href', mw.msg( 'templatedata-helplink-target' ) )
.attr( 'target', '_blank' ),
/**
* Define the error box for the main template edit