mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-01 00:27:50 +02:00
Merge pull request #4848 from pichalite/master
translate language strings in votes modal
This commit is contained in:
@@ -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');
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user