diff --git a/src/js/intl/strings.js b/src/js/intl/strings.js index e489e448..f67680e6 100644 --- a/src/js/intl/strings.js +++ b/src/js/intl/strings.js @@ -244,6 +244,11 @@ exports.strings = { 'zh_CN': '语言重置为默认的 {locale}' }, /////////////////////////////////////////////////////////////////////////// + 'show-command': { + '__desc__': 'command output from "show"', + 'en_US': 'Please one of the following commands for more info:' + }, + /////////////////////////////////////////////////////////////////////////// 'cd-command': { '__desc__': 'dummy command output for the command in the key', 'en_US': 'Directory changed to "/directories/dont/matter/in/this/demo"', diff --git a/src/js/level/sandboxCommands.js b/src/js/level/sandboxCommands.js index a84343d4..8e000a13 100644 --- a/src/js/level/sandboxCommands.js +++ b/src/js/level/sandboxCommands.js @@ -32,6 +32,19 @@ var instantCommands = [ ) }); }], + [/^show$/, function(bits) { + + lines = [ + intl.str('show-command'), + 'show commands', + 'show solution', + 'show goal' + ]; + + throw new CommandResult({ + msg: lines.join('\n') + }); + }], [/^locale (\w+)$/, function(bits) { constants.GLOBAL.locale = bits[1];