mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-26 07:58:34 +02:00
PR #166 intl-aware labeling of level toggle button
This commit is contained in:
parent
232cb0385c
commit
f5887908cd
2 changed files with 13 additions and 3 deletions
|
@ -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"'
|
'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': {
|
'goal-to-reach': {
|
||||||
'__desc__': 'title of window that shoes the goal tree to reach',
|
'__desc__': 'title of window that shoes the goal tree to reach',
|
||||||
'en_US': 'Goal To Reach',
|
'en_US': 'Goal To Reach',
|
||||||
|
|
|
@ -215,7 +215,7 @@ var Level = Sandbox.extend({
|
||||||
this.goalVis.hide();
|
this.goalVis.hide();
|
||||||
this.goalWindowPos = position;
|
this.goalWindowPos = position;
|
||||||
this.goalWindowSize = size;
|
this.goalWindowSize = size;
|
||||||
this.levelToolbar.$goalButton.text('Show Goal');
|
this.levelToolbar.$goalButton.text(intl.str('show-goal-button'));
|
||||||
},
|
},
|
||||||
|
|
||||||
resizeGoal: function () {
|
resizeGoal: function () {
|
||||||
|
@ -274,7 +274,7 @@ var Level = Sandbox.extend({
|
||||||
|
|
||||||
showGoal: function(command, defer) {
|
showGoal: function(command, defer) {
|
||||||
this.showSideVis(command, defer, this.goalCanvasHolder, this.initGoalVisualization);
|
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) {
|
showSideVis: function(command, defer, canvasHolder, initMethod) {
|
||||||
|
@ -291,7 +291,7 @@ var Level = Sandbox.extend({
|
||||||
|
|
||||||
hideGoal: function(command, defer) {
|
hideGoal: function(command, defer) {
|
||||||
this.hideSideVis(command, defer, this.goalCanvasHolder);
|
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) {
|
hideSideVis: function(command, defer, canvasHolder, vis) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue