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

@ -579,6 +579,16 @@ exports.strings = {
'fr_FR': 'Vous êtes dans l\'éditeur de niveaux, donc plusieurs formes d\'aide sont disponibles. Merci de sélectionner soit "help general" soit "help builder"'
},
///////////////////////////////////////////////////////////////////////////
'show-goal-button': {
'__desc__': 'button label to show goal',
'en_US': 'Show Goal'
},
///////////////////////////////////////////////////////////////////////////
'hide-goal-button': {
'__desc__': 'button label to hide goal',
'en_US': 'Hide Goal'
},
///////////////////////////////////////////////////////////////////////////
'goal-to-reach': {
'__desc__': 'title of window that shoes the goal tree to reach',
'en_US': 'Goal To Reach',

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) {