Merge pull request #4848 from pichalite/master

translate language strings in votes modal
This commit is contained in:
psychobunny
2016-07-14 12:54:02 -04:00
committed by GitHub

View File

@@ -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');
});
});
});
});