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) { templates.parse('partials/modals/votes_modal', data, function(html) {
var dialog = bootbox.dialog({ translator.translate(html, function(translated) {
title: 'Voters', var dialog = bootbox.dialog({
message: html, title: 'Voters',
className: 'vote-modal', message: translated,
show: true className: 'vote-modal',
}); show: true
});
dialog.on('click', function() {
dialog.modal('hide');
});
dialog.on('click', function() {
dialog.modal('hide');
}); });
}); });
}); });

Loading…
Cancel
Save