send translated strings to javascript

This commit is contained in:
Zachary Chai
2016-11-10 12:16:33 -05:00
parent c32b513d6c
commit c7d2c8f27e
7 changed files with 32 additions and 30 deletions

View File

@ -21,12 +21,12 @@
loopJoin();
} else {
sessionStatusRefresh($('.meeting-url').val());
showAlert($('.meeting-started-alert').html(), 4000);
showAlert(I18n.meeting_started, 4000);
}
}
} else if (data.action === 'meeting_ended') {
sessionStatusRefresh($('.meeting-url').val());
showAlert($('.meeting-ended-alert').html(), 4000);
showAlert(I18n.meeting_ended, 4000);
}
}
});

View File

@ -14,12 +14,12 @@
rowData.published = data.published
table.row("#"+data.record_id).data(rowData).draw();
var publish = (data.published) ? 'publish' : 'unpublish';
showAlert($('.recording-'+publish+'-alert').html(), 4000);
var published = (data.published) ? 'published' : 'unpublished';
showAlert(I18n['recording_'+published], 4000);
} else if (data.action === 'delete') {
row.remove().draw();
showAlert($('.recording-delete-alert').html(), 4000);
showAlert(I18n.recording_deleted, 4000);
}
}
});

View File

@ -59,7 +59,7 @@
html: true,
trigger: 'focus',
title: function() {
return $(".delete-popover-title").html();
return I18n.are_you_sure;
},
content: function() {
return $(".delete-popover-body").html();