From 79a0391ddbef8a66848dde1ad8b536ae24ffcfc0 Mon Sep 17 00:00:00 2001 From: Antonin Delpeuch Date: Tue, 23 Jul 2019 10:31:17 +0100 Subject: [PATCH 1/2] Wikidata: Use distinct tabs for QS and schema export. Closes #2097. --- extensions/wikidata/module/scripts/menu-bar-extension.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/wikidata/module/scripts/menu-bar-extension.js b/extensions/wikidata/module/scripts/menu-bar-extension.js index 2855d9168..9c38738ea 100644 --- a/extensions/wikidata/module/scripts/menu-bar-extension.js +++ b/extensions/wikidata/module/scripts/menu-bar-extension.js @@ -51,7 +51,7 @@ WikibaseExporterMenuBar.exportTo = function(format) { $(form).css("display", "none") .attr("method", "post") .attr("action", "command/core/export-rows/"+targetUrl) - .attr("target", "gridworks-export"); + .attr("target", "gridworks-export-"+format); $('') .attr("name", "engine") .attr("value", JSON.stringify(ui.browsingEngine.getJSON())) From a4a3c07e31397842b17c1a6cc6a651e01e1dbdb5 Mon Sep 17 00:00:00 2001 From: Antonin Delpeuch Date: Wed, 24 Jul 2019 01:24:59 +0100 Subject: [PATCH 2/2] Fix label of Wikidata schema export action --- extensions/wikidata/module/langs/translation-en.json | 1 + extensions/wikidata/module/langs/translation-fr.json | 1 + extensions/wikidata/module/langs/translation-it.json | 1 + extensions/wikidata/module/scripts/menu-bar-extension.js | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/extensions/wikidata/module/langs/translation-en.json b/extensions/wikidata/module/langs/translation-en.json index 20893c98c..6367bf462 100644 --- a/extensions/wikidata/module/langs/translation-en.json +++ b/extensions/wikidata/module/langs/translation-en.json @@ -6,6 +6,7 @@ "wikidata-extension/perform-edits-on-wikidata": "Upload edits to Wikidata", "wikidata-extension/export-to-qs": "Export to QuickStatements", "wikidata-extension/export-schema": "Export schema", + "wikidata-extension/export-wikidata-schema": "Export Wikidata schema", "wikidata-extension/quickstatements-export-name": "QuickStatements", "wikidata-schema/dialog-header": "Align to Wikidata", "wikidata-schema/dialog-explanation": "The Wikidata schema below specifies how your tabular data will be transformed into Wikidata edits. You can drag and drop the column names below in most input boxes: for each row, edits will be generated with the values in these columns.", diff --git a/extensions/wikidata/module/langs/translation-fr.json b/extensions/wikidata/module/langs/translation-fr.json index 93eaa83ed..4ec3bed9d 100644 --- a/extensions/wikidata/module/langs/translation-fr.json +++ b/extensions/wikidata/module/langs/translation-fr.json @@ -149,6 +149,7 @@ "warnings-messages/invalid-entity-type/body": "Les utilisations de {property_entity} sur des éléments tels que {example_entity} sont invalides.", "wikidata-extension/import-wikidata-schema": "Importer un schéma", "wikidata-extension/export-schema": "Exporter le schéma", + "wikidata-extension/export-wikidata-schema": "Exporter le schéma Wikidata", "import-wikibase-schema/dialog-header": "Importer un schéma Wikidata", "import-wikibase-schema/file-label": "A partir du fichier JSON : ", "import-wikibase-schema/schema-label": "Ou à partir d'un texte JSON :", diff --git a/extensions/wikidata/module/langs/translation-it.json b/extensions/wikidata/module/langs/translation-it.json index 3bbd5e958..5729926da 100644 --- a/extensions/wikidata/module/langs/translation-it.json +++ b/extensions/wikidata/module/langs/translation-it.json @@ -68,6 +68,7 @@ "perform-wikidata-edits/edit-summary-placeholder": "qualche parola per descrivere le tue modifiche", "wikidata-extension/import-wikidata-schema": "Importa schema", "wikidata-extension/export-schema": "Esporta schema", + "wikidata-extension/export-wikidata-schema": "Esporta schema Wikidata", "perform-wikidata-edits/perform-edits": "Carica modifiche", "perform-wikidata-edits/cancel": "Annulla", "perform-wikidata-edits/analyzing-edits": "Analisi delle modifiche apportate…", diff --git a/extensions/wikidata/module/scripts/menu-bar-extension.js b/extensions/wikidata/module/scripts/menu-bar-extension.js index 9c38738ea..25cc7ca7d 100644 --- a/extensions/wikidata/module/scripts/menu-bar-extension.js +++ b/extensions/wikidata/module/scripts/menu-bar-extension.js @@ -33,7 +33,7 @@ ExporterManager.MenuItems.push( ExporterManager.MenuItems.push( { id:"exportWikibaseSchema", - label: $.i18n('wikidata-extension/export-schema'), + label: $.i18n('wikidata-extension/export-wikidata-schema'), click: function() { WikibaseExporterMenuBar.checkSchemaAndExport("wikibase-schema"); } } );