Localize perform edits dialog
This commit is contained in:
parent
9489cc95f0
commit
d3023008e9
@ -16,6 +16,14 @@
|
|||||||
"wikidata-preview": {
|
"wikidata-preview": {
|
||||||
"new-id": "new item"
|
"new-id": "new item"
|
||||||
},
|
},
|
||||||
|
"perform-wikidata-edits": {
|
||||||
|
"dialog-header": "Perform edits on Wikidata",
|
||||||
|
"review-your-edits": "Please review your edits before pushing them to Wikidata. Consider requesting feedback at the <a href=\"https://www.wikidata.org/wiki/Wikidata:Data_Import_Hub\">Data Import Hub</a> for large datasets.",
|
||||||
|
"logged-in-as": "You are logged in as",
|
||||||
|
"edit-summary-label": "Edit summary:",
|
||||||
|
"perform-edits": "Perform edits",
|
||||||
|
"cancel": "Cancel"
|
||||||
|
},
|
||||||
"warnings-messages": {
|
"warnings-messages": {
|
||||||
"new-item-created": {
|
"new-item-created": {
|
||||||
"title": "This batch will create new Wikidata items.",
|
"title": "This batch will create new Wikidata items.",
|
||||||
|
@ -1,19 +1,16 @@
|
|||||||
<div class="dialog-frame" style="width: 800px;">
|
<div class="dialog-frame" style="width: 800px;">
|
||||||
<div class="dialog-header" bind="dialogHeader">Peform edits on Wikidata</div>
|
<div class="dialog-header" bind="dialogHeader"></div>
|
||||||
<div class="dialog-body" bind="dialogBody">
|
<div class="dialog-body" bind="dialogBody">
|
||||||
<p class="body-text">
|
<p class="body-text" bind="reviewYourEdits">
|
||||||
Please review your edits before pushing them to Wikidata.
|
|
||||||
Consider requesting feedback at the <a href="https://www.wikidata.org/wiki/Wikidata:Data_Import_Hub">Data Import Hub</a>
|
|
||||||
for large datasets.
|
|
||||||
</p>
|
</p>
|
||||||
<div class="perform-edits-warnings-area" bind="warningsArea">
|
<div class="perform-edits-warnings-area" bind="warningsArea">
|
||||||
</div>
|
</div>
|
||||||
<div class="wikibase-perform-edits-area">
|
<div class="wikibase-perform-edits-area">
|
||||||
<p>You are logged in as <span bind="loggedInUsername"></span>.</p>
|
<p><span bind="loggedInAs"></span> <span bind="loggedInUsername"></span>.</p>
|
||||||
<p>Edit summary: <input type="text" name="editSummary" bind="editSummary" class="edit-summary" value="" /></p>
|
<p><span bind="editSummaryLabel"></span> <input type="text" name="editSummary" bind="editSummary" class="edit-summary" value="" /></p>
|
||||||
<div class="wikibase-login-buttons">
|
<div class="wikibase-login-buttons">
|
||||||
<button class="button cancel-button" bind="cancelButton">Cancel</button>
|
<button class="button cancel-button" bind="cancelButton"></button>
|
||||||
<button class="button button-primary" bind="performEditsButton">Perform edits</button>
|
<button class="button button-primary" bind="performEditsButton"></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -12,6 +12,13 @@ PerformEditsDialog.launch = function(logged_in_username) {
|
|||||||
|
|
||||||
this._level = DialogSystem.showDialog(frame);
|
this._level = DialogSystem.showDialog(frame);
|
||||||
|
|
||||||
|
this._elmts.dialogHeader.text($.i18n._('perform-wikidata-edits')["dialog-header"]);
|
||||||
|
this._elmts.reviewYourEdits.html($.i18n._('perform-wikidata-edits')["review-your-edits"]);
|
||||||
|
this._elmts.loggedInAs.text($.i18n._('perform-wikidata-edits')["logged-in-as"]);
|
||||||
|
this._elmts.editSummaryLabel.text($.i18n._('perform-wikidata-edits')["edit-summary-label"]);
|
||||||
|
this._elmts.performEditsButton.text($.i18n._('perform-wikidata-edits')["perform-edits"]);
|
||||||
|
this._elmts.cancelButton.text($.i18n._('perform-wikidata-edits')["cancel"]);
|
||||||
|
|
||||||
var dismiss = function() {
|
var dismiss = function() {
|
||||||
DialogSystem.dismissUntil(self._level - 1);
|
DialogSystem.dismissUntil(self._level - 1);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user