diff --git a/src/js/intl/strings.js b/src/js/intl/strings.js index 1c8ceac0..e5d7f04b 100644 --- a/src/js/intl/strings.js +++ b/src/js/intl/strings.js @@ -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', diff --git a/src/js/level/index.js b/src/js/level/index.js index 96ba35ee..8f5b6df2 100644 --- a/src/js/level/index.js +++ b/src/js/level/index.js @@ -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) {