diff --git a/extensions/wikidata/module/scripts/warningsrenderer.js b/extensions/wikidata/module/scripts/warningsrenderer.js index bd8b2ead2..ae27aadd6 100644 --- a/extensions/wikidata/module/scripts/warningsrenderer.js +++ b/extensions/wikidata/module/scripts/warningsrenderer.js @@ -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 = $('').addClass('wb-warning'); var severityTd = $('') .addClass('wb-warning-severity') diff --git a/main/webapp/modules/core/langs/translation-en.json b/main/webapp/modules/core/langs/translation-en.json index c72038331..481d1fba0 100644 --- a/main/webapp/modules/core/langs/translation-en.json +++ b/main/webapp/modules/core/langs/translation-en.json @@ -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):",