Merge pull request #1865 from OpenRefine/fix_i18n
Fixes to localized strings in the UI
This commit is contained in:
commit
321d01402c
@ -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')
|
||||
|
@ -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):",
|
||||
|
Loading…
Reference in New Issue
Block a user