From a0fcdfe62972a7ddd3b07e9a0fb7d7c49bd2685a Mon Sep 17 00:00:00 2001 From: psychobunny Date: Thu, 8 May 2014 14:27:46 -0400 Subject: [PATCH] closes #1502 --- public/language/en_GB/global.json | 1 + public/src/modules/navigator.js | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/public/language/en_GB/global.json b/public/language/en_GB/global.json index 6ed0e914b1..d7bea3a7a1 100644 --- a/public/language/en_GB/global.json +++ b/public/language/en_GB/global.json @@ -23,6 +23,7 @@ "close": "Close", "pagination": "Pagination", + "pagination.out_of": "%1 out of %2", "header.admin": "Admin", "header.recent": "Recent", diff --git a/public/src/modules/navigator.js b/public/src/modules/navigator.js index 1f4e8beb50..044a586c68 100644 --- a/public/src/modules/navigator.js +++ b/public/src/modules/navigator.js @@ -75,7 +75,10 @@ define(function() { }; navigator.updateTextAndProgressBar = function() { - $('#pagination').html(index + ' out of ' + count); + translator.translate('[[global:pagination.out_of, ' + index + ', ' + count + ']]', function(translated) { + $('#pagination').html(translated); + }); + $('.pagination-block .progress-bar').width((index / count * 100) + '%'); };