Localization
This commit is contained in:
parent
05873f283d
commit
9db113faa2
@ -182,6 +182,7 @@ function registerOperations() {
|
|||||||
OR.registerOperation(module, "recon-judge-similar-cells", Packages.com.google.refine.operations.recon.ReconJudgeSimilarCellsOperation);
|
OR.registerOperation(module, "recon-judge-similar-cells", Packages.com.google.refine.operations.recon.ReconJudgeSimilarCellsOperation);
|
||||||
OR.registerOperation(module, "recon-clear-similar-cells", Packages.com.google.refine.operations.recon.ReconClearSimilarCellsOperation);
|
OR.registerOperation(module, "recon-clear-similar-cells", Packages.com.google.refine.operations.recon.ReconClearSimilarCellsOperation);
|
||||||
OR.registerOperation(module, "recon-copy-across-columns", Packages.com.google.refine.operations.recon.ReconCopyAcrossColumnsOperation);
|
OR.registerOperation(module, "recon-copy-across-columns", Packages.com.google.refine.operations.recon.ReconCopyAcrossColumnsOperation);
|
||||||
|
OR.registerOperation(module, "extend-reconciled-data", Packages.com.google.refine.operations.recon.ExtendDataOperation);
|
||||||
}
|
}
|
||||||
|
|
||||||
function registerImporting() {
|
function registerImporting() {
|
||||||
|
@ -503,6 +503,13 @@
|
|||||||
"cache-responses": "Cache responses",
|
"cache-responses": "Cache responses",
|
||||||
"copy-val": "copy value from original column",
|
"copy-val": "copy value from original column",
|
||||||
"warning-col-name": "You must enter a column name.",
|
"warning-col-name": "You must enter a column name.",
|
||||||
|
"add-col-recon-val": "Add columns from reconciled values",
|
||||||
|
"add-col-recon-col": "Add columns from reconciled column",
|
||||||
|
"warning-no-property": "Please select a property first.",
|
||||||
|
"configure-col": "Configure this column",
|
||||||
|
"remove-prop": "remove",
|
||||||
|
"configure-prop": "configure",
|
||||||
|
"no-settings": "No settings are available for this property.",
|
||||||
"add-col-fetch": "Add column by fetching URLs based on column",
|
"add-col-fetch": "Add column by fetching URLs based on column",
|
||||||
"throttle-delay": "Throttle delay",
|
"throttle-delay": "Throttle delay",
|
||||||
"milli": "milliseconds",
|
"milli": "milliseconds",
|
||||||
|
@ -503,6 +503,13 @@
|
|||||||
"cache-responses": "Cache responses",
|
"cache-responses": "Cache responses",
|
||||||
"copy-val": "copy value from original column",
|
"copy-val": "copy value from original column",
|
||||||
"warning-col-name": "You must enter a column name.",
|
"warning-col-name": "You must enter a column name.",
|
||||||
|
"add-col-recon-val": "Add columns from reconciled values",
|
||||||
|
"add-col-recon-col": "Add columns from reconciled column",
|
||||||
|
"warning-no-property": "Please select a property first.",
|
||||||
|
"configure-col": "Configure this column",
|
||||||
|
"remove-prop": "remove",
|
||||||
|
"configure-prop": "configure",
|
||||||
|
"no-settings": "No settings are available for this property.",
|
||||||
"add-col-fetch": "Add column by fetching URLs based on column",
|
"add-col-fetch": "Add column by fetching URLs based on column",
|
||||||
"throttle-delay": "Throttle delay",
|
"throttle-delay": "Throttle delay",
|
||||||
"milli": "milliseconds",
|
"milli": "milliseconds",
|
||||||
|
@ -502,6 +502,13 @@
|
|||||||
"store-err": "guardar error",
|
"store-err": "guardar error",
|
||||||
"copy-val": "copiar valor de la columna original",
|
"copy-val": "copiar valor de la columna original",
|
||||||
"warning-col-name": "Debe ingresar un nombre para la columna.",
|
"warning-col-name": "Debe ingresar un nombre para la columna.",
|
||||||
|
"add-col-recon-val": "Añadir columnas de valores conciliados",
|
||||||
|
"add-col-recon-col": "Añadir columnas de la columna conciliada",
|
||||||
|
"warning-no-property": "Seleccione primero una propiedad.",
|
||||||
|
"configure-col": "Configurar esta columna",
|
||||||
|
"remove-prop": "retirar",
|
||||||
|
"configure-prop": "configurar",
|
||||||
|
"no-settings": "No hay configuraciones disponibles para esta propiedad.",
|
||||||
"add-col-fetch": "Agregar columna accediendo a URls basada en la columna",
|
"add-col-fetch": "Agregar columna accediendo a URls basada en la columna",
|
||||||
"throttle-delay": "Tiempo de retraso",
|
"throttle-delay": "Tiempo de retraso",
|
||||||
"milli": "milisegundos",
|
"milli": "milisegundos",
|
||||||
|
@ -504,6 +504,13 @@
|
|||||||
"copy-val": "copier la valeur depuis la colonne originale",
|
"copy-val": "copier la valeur depuis la colonne originale",
|
||||||
"warning-col-name": "Vous devez indiquer un nom de colonne.",
|
"warning-col-name": "Vous devez indiquer un nom de colonne.",
|
||||||
"add-col-fetch": "Ajouter une colonne en moissonnant les données depuis les URL d’une colonne",
|
"add-col-fetch": "Ajouter une colonne en moissonnant les données depuis les URL d’une colonne",
|
||||||
|
"add-col-recon-val": "Ajouter des colonnes à partir de valeurs réconciliées",
|
||||||
|
"add-col-recon-col": "Ajouter des colonnes à partir de la colonne",
|
||||||
|
"warning-no-property": "Veuillez d'abord sélectionner une propriété.",
|
||||||
|
"configure-col": "Configurer cette colonne",
|
||||||
|
"remove-prop": "supprimer",
|
||||||
|
"configure-prop": "configurer",
|
||||||
|
"no-settings": "Aucun paramètre n'est disponible pour cette propriété.",
|
||||||
"throttle-delay": "Délai de récupération",
|
"throttle-delay": "Délai de récupération",
|
||||||
"milli": "millisecondes",
|
"milli": "millisecondes",
|
||||||
"url-fetch": "Indiquer les URL à moissonner :",
|
"url-fetch": "Indiquer les URL à moissonner :",
|
||||||
|
@ -502,6 +502,13 @@
|
|||||||
"store-err": "salva l'errore",
|
"store-err": "salva l'errore",
|
||||||
"copy-val": "copia il valore dalla colonna originale",
|
"copy-val": "copia il valore dalla colonna originale",
|
||||||
"warning-col-name": "Inserisci un nome per la colonna.",
|
"warning-col-name": "Inserisci un nome per la colonna.",
|
||||||
|
"add-col-recon-val": "Aggiungi colonne da valori riconciliati",
|
||||||
|
"add-col-recon-col": "Aggiungi colonne dalla colonna riconciliata",
|
||||||
|
"warning-no-property": "Per favore seleziona innanzitutto una proprietà.",
|
||||||
|
"configure-col": "Configurare questa colonna",
|
||||||
|
"remove-prop": "rimuovi",
|
||||||
|
"configure-prop": "configurare",
|
||||||
|
"no-settings": "Nessuna impostazione sono disponibili per questa proprietà.",
|
||||||
"add-col-fetch": "Aggiungi colonna con URL, basandoti su",
|
"add-col-fetch": "Aggiungi colonna con URL, basandoti su",
|
||||||
"throttle-delay": "Durata Throttle",
|
"throttle-delay": "Durata Throttle",
|
||||||
"milli": "millisecondi",
|
"milli": "millisecondi",
|
||||||
|
@ -41,7 +41,7 @@ function ExtendReconciledDataPreviewDialog(column, columnIndex, rowIndices, onDo
|
|||||||
var self = this;
|
var self = this;
|
||||||
this._dialog = $(DOM.loadHTML("core", "scripts/views/data-table/extend-data-preview-dialog.html"));
|
this._dialog = $(DOM.loadHTML("core", "scripts/views/data-table/extend-data-preview-dialog.html"));
|
||||||
this._elmts = DOM.bind(this._dialog);
|
this._elmts = DOM.bind(this._dialog);
|
||||||
this._elmts.dialogHeader.html("Add columns by reconciled column " + column.name);
|
this._elmts.dialogHeader.html($.i18n._('core-views')["add-col-recon-col"]+" "+column.name);
|
||||||
this._elmts.resetButton.click(function() {
|
this._elmts.resetButton.click(function() {
|
||||||
self._extension.properties = [];
|
self._extension.properties = [];
|
||||||
self._update();
|
self._update();
|
||||||
@ -49,7 +49,7 @@ function ExtendReconciledDataPreviewDialog(column, columnIndex, rowIndices, onDo
|
|||||||
|
|
||||||
this._elmts.okButton.click(function() {
|
this._elmts.okButton.click(function() {
|
||||||
if (self._extension.properties.length === 0) {
|
if (self._extension.properties.length === 0) {
|
||||||
alert("Please add some properties first.");
|
alert($.i18n._('core-views')["warning-no-property"]);
|
||||||
} else {
|
} else {
|
||||||
DialogSystem.dismissUntil(self._level - 1);
|
DialogSystem.dismissUntil(self._level - 1);
|
||||||
self._onDone(self._extension,
|
self._onDone(self._extension,
|
||||||
@ -253,17 +253,17 @@ ExtendReconciledDataPreviewDialog.prototype._renderPreview = function(data) {
|
|||||||
$('<br>').appendTo(th);
|
$('<br>').appendTo(th);
|
||||||
|
|
||||||
$('<a href="javascript:{}"></a>')
|
$('<a href="javascript:{}"></a>')
|
||||||
.text("remove")
|
.text($.i18n("core-views")["remove-prop"])
|
||||||
.addClass("action")
|
.addClass("action")
|
||||||
.attr("title", "Remove this column")
|
.attr("title", $.i18n("core-views")["remove-col"])
|
||||||
.click(function() {
|
.click(function() {
|
||||||
self._removeProperty(column.id);
|
self._removeProperty(column.id);
|
||||||
}).appendTo(th);
|
}).appendTo(th);
|
||||||
|
|
||||||
$('<a href="javascript:{}"></a>')
|
$('<a href="javascript:{}"></a>')
|
||||||
.text("configure")
|
.text($.i18n("core-views")["configure-prop"])
|
||||||
.addClass("action")
|
.addClass("action")
|
||||||
.attr("title", "Configure this column")
|
.attr("title", $.i18n("core-views")["configure-col"])
|
||||||
.click(function() {
|
.click(function() {
|
||||||
self._constrainProperty(column.id);
|
self._constrainProperty(column.id);
|
||||||
}).appendTo(th);
|
}).appendTo(th);
|
||||||
@ -372,6 +372,10 @@ ExtendReconciledDataPreviewDialog.prototype._constrainProperty = function(id) {
|
|||||||
form += '</tr>';
|
form += '</tr>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (form == '') {
|
||||||
|
form = '<tr><td>'+$.i18n('core-views')['no-settings']+'</td></tr>'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
body.html(
|
body.html(
|
||||||
@ -390,8 +394,8 @@ ExtendReconciledDataPreviewDialog.prototype._constrainProperty = function(id) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
footer.html(
|
footer.html(
|
||||||
'<button class="button" bind="okButton"> OK </button>' +
|
'<button class="button" bind="okButton">'+$.i18n('core-buttons')['ok']+'</button>' +
|
||||||
'<button class="button" bind="cancelButton">Cancel</button>'
|
'<button class="button" bind="cancelButton">'+$.i18n('core-buttons')['cancel']+'</button>'
|
||||||
);
|
);
|
||||||
var footerElmts = DOM.bind(footer);
|
var footerElmts = DOM.bind(footer);
|
||||||
|
|
||||||
|
@ -173,50 +173,6 @@ DataTableColumnHeaderUI.extendMenu(function(column, columnHeaderUI, menu) {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
|
||||||
var doAddColumnByReconciliation = function() {
|
|
||||||
var frame = $(
|
|
||||||
DOM.loadHTML("core", "scripts/views/data-table/add-column-by-reconciliation.html"));
|
|
||||||
|
|
||||||
var elmts = DOM.bind(frame);
|
|
||||||
elmts.dialogHeader.text($.i18n._('core-views')["add-by-recon"]);
|
|
||||||
|
|
||||||
elmts.suggestedPropertyHeader.html('Suggested properties');
|
|
||||||
elmts.previewHeader.html('Preview');
|
|
||||||
elmts.addPropertyHeader.html('Add property');
|
|
||||||
elmts.okButton.html($.i18n._('core-buttons')["ok"]);
|
|
||||||
elmts.cancelButton.text($.i18n._('core-buttons')["cancel"]);
|
|
||||||
|
|
||||||
var level = DialogSystem.showDialog(frame);
|
|
||||||
var dismiss = function() { DialogSystem.dismissUntil(level - 1); };
|
|
||||||
|
|
||||||
elmts.cancelButton.click(dismiss);
|
|
||||||
elmts.okButton.click(function() {
|
|
||||||
var columnName = $.trim(elmts.columnNameInput[0].value);
|
|
||||||
if (!columnName.length) {
|
|
||||||
alert($.i18n._('core-views')["warning-col-name"]);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
Refine.postCoreProcess(
|
|
||||||
"add-column-by-fetching-urls",
|
|
||||||
{
|
|
||||||
baseColumnName: column.name,
|
|
||||||
urlExpression: previewWidget.getExpression(true),
|
|
||||||
newColumnName: columnName,
|
|
||||||
columnInsertIndex: columnIndex + 1,
|
|
||||||
delay: elmts.throttleDelayInput[0].value,
|
|
||||||
onError: $('input[name="dialog-onerror-choice"]:checked')[0].value,
|
|
||||||
cacheResponses: $('input[name="dialog-cache-responses"]')[0].checked,
|
|
||||||
},
|
|
||||||
null,
|
|
||||||
{ modelsChanged: true }
|
|
||||||
);
|
|
||||||
dismiss();
|
|
||||||
});
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
|
|
||||||
var doRemoveColumn = function() {
|
var doRemoveColumn = function() {
|
||||||
Refine.postCoreProcess(
|
Refine.postCoreProcess(
|
||||||
"remove-column",
|
"remove-column",
|
||||||
@ -371,7 +327,7 @@ DataTableColumnHeaderUI.extendMenu(function(column, columnHeaderUI, menu) {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "core/add-column-by-reconciliation",
|
id: "core/add-column-by-reconciliation",
|
||||||
label: $.i18n._('core-views')["add-by-recon"]+"...",
|
label: $.i18n._('core-views')["add-col-recon-val"]+"...",
|
||||||
click: doAddColumnByReconciliation
|
click: doAddColumnByReconciliation
|
||||||
},
|
},
|
||||||
{},
|
{},
|
||||||
|
Loading…
Reference in New Issue
Block a user