add i18n for metadata edit dialog

This commit is contained in:
Jacky 2017-10-27 17:04:39 -04:00
parent 7c83746ee7
commit 384e69aa5f
2 changed files with 3 additions and 2 deletions

View File

@ -21,7 +21,8 @@
"error-rename": "Failed to rename 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",
"sample-data": "sample data sets"
"sample-data": "sample data sets",
"change-metadata-value": "Change value of metadata key"
},
"core-index-create": {
"create-proj": "Create Project",

View File

@ -16,7 +16,7 @@ function EditMetadataDialog(metaData) {
var td2 = tr.insertCell(2);
$('<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) {
$(td1).text(newValue);
metaData[key] = newValue;