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,15 +377,18 @@ define('forum/topic/postTools', ['share', 'navigator', 'components', 'translator
}
templates.parse('partials/modals/votes_modal', data, function(html) {
var dialog = bootbox.dialog({
title: 'Voters',
message: html,
className: 'vote-modal',
show: true
});
dialog.on('click', function() {
dialog.modal('hide');
translator.translate(html, function(translated) {
var dialog = bootbox.dialog({
title: 'Voters',
message: translated,
className: 'vote-modal',
show: true
});
dialog.on('click', function() {
dialog.modal('hide');
});
});
});
});

Loading…
Cancel
Save