Cleanup vocabulary for export (perform -> upload) in Wikidata extension

This commit is contained in:
Antonin Delpeuch 2018-04-28 10:56:51 +02:00
parent 68d9f448c6
commit f9a1a5ba18
3 changed files with 7 additions and 6 deletions

View File

@ -3,14 +3,14 @@
"menu-label": "Wikidata", "menu-label": "Wikidata",
"edit-wikidata-schema": "Edit Wikidata schema", "edit-wikidata-schema": "Edit Wikidata schema",
"manage-wikidata-account": "Manage Wikidata account", "manage-wikidata-account": "Manage Wikidata account",
"perform-edits-on-wikidata": "Perform edits on Wikidata", "perform-edits-on-wikidata": "Upload edits to Wikidata",
"export-to-qs": "Export to QuickStatements", "export-to-qs": "Export to QuickStatements",
"quickstatements-export-name": "QuickStatements" "quickstatements-export-name": "QuickStatements"
}, },
"wikidata-schema": { "wikidata-schema": {
"dialog-header": "Align to Wikidata", "dialog-header": "Align to Wikidata",
"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.", "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.",
"preview-explanation": "This tab shows the first 10 edits that will be made once you upload the changes to Wikidata. You can use facets to inspect the edits on particular items.", "preview-explanation": "This tab shows the first edits (out of {nb_edits}) that will be made once you upload the changes to Wikidata. You can use facets to inspect the edits on particular items.",
"schema-tab-header": "Schema", "schema-tab-header": "Schema",
"warnings-tab-header": "Issues", "warnings-tab-header": "Issues",
"edits-preview-tab-header": "Preview", "edits-preview-tab-header": "Preview",
@ -57,7 +57,7 @@
}, },
"wikidata-account": { "wikidata-account": {
"dialog-header": "Wikidata account", "dialog-header": "Wikidata account",
"explain-log-in": "Logging in to <a href=\"https://www.wikidata.org/\" target=\"_blank\">Wikidata</a> lets you to perform edits directly from OpenRefine.", "explain-log-in": "Logging in to <a href=\"https://www.wikidata.org/\" target=\"_blank\">Wikidata</a> lets you to upload edits directly from OpenRefine.",
"username-label": "Username:", "username-label": "Username:",
"username-placeholder": "Enter your username", "username-placeholder": "Enter your username",
"password-label": "Password:", "password-label": "Password:",

View File

@ -43,6 +43,7 @@ import com.google.refine.util.Pool;
public class SaveWikibaseSchemaOperation extends AbstractOperation { public class SaveWikibaseSchemaOperation extends AbstractOperation {
final public String operationDescription = "Save Wikibase schema";
final protected WikibaseSchema _schema; final protected WikibaseSchema _schema;
public SaveWikibaseSchemaOperation(WikibaseSchema schema) { public SaveWikibaseSchemaOperation(WikibaseSchema schema) {
@ -61,7 +62,7 @@ public class SaveWikibaseSchemaOperation extends AbstractOperation {
writer.key("op"); writer.key("op");
writer.value(OperationRegistry.s_opClassToName.get(this.getClass())); writer.value(OperationRegistry.s_opClassToName.get(this.getClass()));
writer.key("description"); writer.key("description");
writer.value("Save Wikibase schema skeleton"); writer.value(operationDescription);
writer.key("schema"); writer.key("schema");
_schema.write(writer, options); _schema.write(writer, options);
writer.endObject(); writer.endObject();
@ -76,7 +77,7 @@ public class SaveWikibaseSchemaOperation extends AbstractOperation {
@Override @Override
protected HistoryEntry createHistoryEntry(Project project, long historyEntryID) protected HistoryEntry createHistoryEntry(Project project, long historyEntryID)
throws Exception { throws Exception {
String description = "Save Wikibase schema skeleton"; String description = operationDescription;
Change change = new WikibaseSchemaChange(_schema); Change change = new WikibaseSchemaChange(_schema);

View File

@ -1,6 +1,6 @@
{ {
"op": "wikidata/save-wikibase-schema", "op": "wikidata/save-wikibase-schema",
"description": "Save Wikibase schema skeleton", "description": "Save Wikibase schema",
"schema": { "schema": {
"itemDocuments": [ "itemDocuments": [
{ {