Merge pull request #4848 from pichalite/master

translate language strings in votes modal
v1.18.x
psychobunny 9 years ago committed by GitHub
commit 3858e9c614

@ -377,9 +377,10 @@ define('forum/topic/postTools', ['share', 'navigator', 'components', 'translator
} }
templates.parse('partials/modals/votes_modal', data, function(html) { templates.parse('partials/modals/votes_modal', data, function(html) {
translator.translate(html, function(translated) {
var dialog = bootbox.dialog({ var dialog = bootbox.dialog({
title: 'Voters', title: 'Voters',
message: html, message: translated,
className: 'vote-modal', className: 'vote-modal',
show: true show: true
}); });
@ -387,6 +388,8 @@ define('forum/topic/postTools', ['share', 'navigator', 'components', 'translator
dialog.on('click', function() { dialog.on('click', function() {
dialog.modal('hide'); dialog.modal('hide');
}); });
});
}); });
}); });
} }

Loading…
Cancel
Save