Fix i18n calls after migration

This commit is contained in:
Antonin Delpeuch 2018-11-28 23:22:38 +09:00
parent 321d01402c
commit 7dd4db1ca1
4 changed files with 4 additions and 4 deletions

View File

@ -43,7 +43,7 @@ Refine.GDataSourceUI.prototype.attachUI = function(body) {
$('#gdata-title').text($.i18n('gdata-import/title'));
$('#gdata-import').html($.i18n('gdata-import/import-by-url'));
$('#gdata-next').html($.i18n('gdata-import')["next->"]);
$('#gdata-next').html($.i18n('gdata-import/next->'));
$('#gdata-auth-doc').text($.i18n('gdata-import/auth-doc'));
$('#gdata-please').text($.i18n('gdata-import/please'));
$('#gdata-signin-btn').text($.i18n('gdata-import/sign-in'));

View File

@ -82,7 +82,7 @@ EditRenderer._renderTerm = function(termType, json, container) {
var namedesc = $('<div></div>').addClass('wbs-namedesc').appendTo(container);
var type_container = $('<div></div>').addClass('wbs-namedesc-type').appendTo(namedesc);
var type_span = $('<span></span>').appendTo(type_container)
.text($.i18n('wikidata-schema')[termType]);
.text($.i18n('wikidata-schema/'+termType));
var right = $('<div></div>').addClass('wbs-right').appendTo(namedesc);
var value_container = $('<div></div>').addClass('wbs-namedesc-value').appendTo(namedesc);

View File

@ -96,7 +96,7 @@ ScatterplotDialog.prototype._renderMatrix = function() {
};
$.getJSON("command/core/get-columns-info?" + $.param(params),function(data) {
if (data === null || typeof data.length == 'undefined') {
container.html($.i18n('core-dialogs')["error-getColumnInfo"]);
container.html($.i18n('core-dialogs/error-getColumnInfo'));
return;
}

View File

@ -14,7 +14,7 @@ function EditMetadataDialog(metaData, targetRowElem) {
var td0 = tr.insertCell(0);
var td1 = tr.insertCell(1);
var keyLable = $.i18n('core-index')[key] || key;
var keyLable = $.i18n('core-index/'+key) || key;
$(td1).text(keyLable);
var td2 = tr.insertCell(2);