Merge pull request #1865 from OpenRefine/fix_i18n

Fixes to localized strings in the UI
This commit is contained in:
Antonin Delpeuch 2018-11-28 07:16:29 +09:00 committed by GitHub
commit 321d01402c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 7 deletions

View File

@ -46,13 +46,8 @@ WarningsRenderer._replaceIssueProperties = function(template, properties) {
}
WarningsRenderer._renderWarning = function(warning) {
var localized = $.i18n('warnings-messages')[warning.type];
var title = warning.type;
var body = "";
if (localized) {
title = WarningsRenderer._replaceIssueProperties(localized.title, warning.properties);
body = WarningsRenderer._replaceIssueProperties(localized.body, warning.properties);
}
var title = WarningsRenderer._replaceIssueProperties($.i18n('warnings-messages/'+warning.type+'/title'), warning.properties);
var body = WarningsRenderer._replaceIssueProperties($.i18n('warnings-messages/'+warning.type+'/body'), warning.properties);
var tr = $('<tr></tr>').addClass('wb-warning');
var severityTd = $('<td></td>')
.addClass('wb-warning-severity')

View File

@ -30,6 +30,7 @@
"core-index/subject": "Subject:",
"core-index/description": "Description:",
"core-index/rowCount": "Row count:",
"core-index/metaDatas": "Project metadata",
"core-index/customMetadata": "Custom metadata(JSON):",
"core-index/id": "Project ID:",
"core-index/importOptionMetadata": "Import option metadata(JSON):",