translate helpers

This commit is contained in:
barisusakli
2014-07-05 16:58:57 -04:00
parent 89acec13dc
commit c5ccf4333b
11 changed files with 35 additions and 46 deletions

View File

@@ -91,10 +91,8 @@ define('navigator', ['forum/topic/pagination'], function(pagination) {
navigator.updateTextAndProgressBar = function() {
index = index > count ? count : index;
translator.translate('[[global:pagination.out_of, ' + index + ', ' + count + ']]', function(translated) {
$('#pagination').html(translated);
});
$('#pagination').translateHtml('[[global:pagination.out_of, ' + index + ', ' + count + ']]');
$('.pagination-block .progress-bar').width((index / count * 100) + '%');
};