Localize perform edits dialog

This commit is contained in:
Antonin Delpeuch 2018-02-22 18:43:28 +00:00
parent 9489cc95f0
commit d3023008e9
3 changed files with 21 additions and 9 deletions

View File

@ -16,6 +16,14 @@
"wikidata-preview": {
"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": {
"new-item-created": {
"title": "This batch will create new Wikidata items.",

View File

@ -1,19 +1,16 @@
<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">
<p class="body-text">
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 class="body-text" bind="reviewYourEdits">
</p>
<div class="perform-edits-warnings-area" bind="warningsArea">
</div>
<div class="wikibase-perform-edits-area">
<p>You are logged in as <span bind="loggedInUsername"></span>.</p>
<p>Edit summary: <input type="text" name="editSummary" bind="editSummary" class="edit-summary" value="" /></p>
<p><span bind="loggedInAs"></span> <span bind="loggedInUsername"></span>.</p>
<p><span bind="editSummaryLabel"></span> <input type="text" name="editSummary" bind="editSummary" class="edit-summary" value="" /></p>
<div class="wikibase-login-buttons">
<button class="button cancel-button" bind="cancelButton">Cancel</button>
<button class="button button-primary" bind="performEditsButton">Perform edits</button>
<button class="button cancel-button" bind="cancelButton"></button>
<button class="button button-primary" bind="performEditsButton"></button>
</div>
</div>
</div>

View File

@ -12,6 +12,13 @@ PerformEditsDialog.launch = function(logged_in_username) {
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() {
DialogSystem.dismissUntil(self._level - 1);
};