PR #166 intl-aware labeling of level toggle button

This commit is contained in:
Peter Cottle 2014-03-17 11:33:47 -07:00
parent 232cb0385c
commit f5887908cd
2 changed files with 13 additions and 3 deletions

View file

@ -215,7 +215,7 @@ var Level = Sandbox.extend({
this.goalVis.hide();
this.goalWindowPos = position;
this.goalWindowSize = size;
this.levelToolbar.$goalButton.text('Show Goal');
this.levelToolbar.$goalButton.text(intl.str('show-goal-button'));
},
resizeGoal: function () {
@ -274,7 +274,7 @@ var Level = Sandbox.extend({
showGoal: function(command, defer) {
this.showSideVis(command, defer, this.goalCanvasHolder, this.initGoalVisualization);
this.levelToolbar.$goalButton.text('Hide Goal');
this.levelToolbar.$goalButton.text(intl.str('hide-goal-button'));
},
showSideVis: function(command, defer, canvasHolder, initMethod) {
@ -291,7 +291,7 @@ var Level = Sandbox.extend({
hideGoal: function(command, defer) {
this.hideSideVis(command, defer, this.goalCanvasHolder);
this.levelToolbar.$goalButton.text('Show Goal');
this.levelToolbar.$goalButton.text(intl.str('show-goal-button'));
},
hideSideVis: function(command, defer, canvasHolder, vis) {