add i18n for metadata edit dialog
This commit is contained in:
parent
7c83746ee7
commit
384e69aa5f
@ -21,7 +21,8 @@
|
|||||||
"error-rename": "Failed to rename project:",
|
"error-rename": "Failed to rename project:",
|
||||||
"no-proj": "No existing project. Select 'Create Project' on the left to create a new project.",
|
"no-proj": "No existing project. Select 'Create Project' on the left to create a new project.",
|
||||||
"try-these": "If you have no data to work with, try these",
|
"try-these": "If you have no data to work with, try these",
|
||||||
"sample-data": "sample data sets"
|
"sample-data": "sample data sets",
|
||||||
|
"change-metadata-value": "Change value of metadata key"
|
||||||
},
|
},
|
||||||
"core-index-create": {
|
"core-index-create": {
|
||||||
"create-proj": "Create Project",
|
"create-proj": "Create Project",
|
||||||
|
@ -16,7 +16,7 @@ function EditMetadataDialog(metaData) {
|
|||||||
var td2 = tr.insertCell(2);
|
var td2 = tr.insertCell(2);
|
||||||
|
|
||||||
$('<button class="button">').text($.i18n._('core-index')["edit"]).appendTo(td2).click(function() {
|
$('<button class="button">').text($.i18n._('core-index')["edit"]).appendTo(td2).click(function() {
|
||||||
var newValue = window.prompt($.i18n._('core-index')["change-value"]+" " + key, value);
|
var newValue = window.prompt($.i18n._('core-index')["change-metadata-value"]+" " + key, value);
|
||||||
if (newValue !== null) {
|
if (newValue !== null) {
|
||||||
$(td1).text(newValue);
|
$(td1).text(newValue);
|
||||||
metaData[key] = newValue;
|
metaData[key] = newValue;
|
||||||
|
Loading…
Reference in New Issue
Block a user