Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/js/ui.kFooter.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/ui.kFooter.js')
-rwxr-xr-xjs/ui.kFooter.js23
1 files changed, 14 insertions, 9 deletions
diff --git a/js/ui.kFooter.js b/js/ui.kFooter.js
index d5ede51..d280b79 100755
--- a/js/ui.kFooter.js
+++ b/js/ui.kFooter.js
@@ -157,11 +157,11 @@
stopTimer : function(){
this._setData('timerRunning', false);
},
- _c : function(val){
+ pgettext : function(context, msg){
if($.i18n){
- return $._c('$.ui.kFooter', val);
+ return $.i18n.pgettext(context, msg);
}
- return val;
+ return msg;
},
_n : function(val, loc){
if ($.i18n){
@@ -195,11 +195,13 @@
if(options.scoreboard === true){
- var $scoreboard = $("<li class='left'>" + this._c("Score") +
+ var $scoreboard = $("<li class='left'>" +
+ this.pgettext('$.ui.kFooter', "Score") +
"</li>" + "<li class='left'>" +
"<span id='kFooterScore' class='ui-corner-all number'>" +
this._n(score) + "</span></li>" +
- "<li class='left'>" + this._c("Total") + "</li>" +
+ "<li class='left'>" +
+ this.pgettext('$.ui.kFooter', "Total") + "</li>" +
"<li class='left'><span id='kFooterTotal' " +
"class='ui-corner-all number'>" +
this._n(total) + "</span></li>")
@@ -211,7 +213,8 @@
}
if(options.timer === true){
- this._$timer = $("<li class='left'>" + this._c("Timer") +
+ this._$timer = $("<li class='left'>" +
+ this.pgettext('$.ui.kFooter', "Timer") +
"</li>" +
"<li class='left'><span id='kFooterMins'" +
"class='ui-corner-all" +
@@ -235,7 +238,7 @@
"<span class='ui-icon ui-icon-arrowrefresh-1-w'>" +
"</span>" +
"<span class='text left'>" +
- this._c('Play Again') +
+ this.pgettext('$.ui.kFooter', 'Play Again') +
"</span></button></li>")
.click(function(){
self.startTimer();
@@ -249,7 +252,8 @@
"class='ui-corner-all ui-state-default'>" +
"<span class='ui-icon ui-icon-pause'>" +
"</span>" +
- "<span class='text left'>" + this._c('Pause') +
+ "<span class='text left'>" +
+ this.pgettext('$.ui.kFooter', 'Pause') +
"</span></button></li>")
.click(function(){
self.stopTimer();
@@ -263,7 +267,8 @@
"class='ui-corner-all ui-state-default'>" +
"<span class='ui-icon ui-icon-play'>" +
"</span>" +
- "<span class='text left'>" + this._c('Start') +
+ "<span class='text left'>" +
+ this.pgettext('$.ui.kFooter', 'Start') +
"</span></button></li>")
.click(function(){
self.startTimer();