- Localized 'shell' command.
This commit is contained in:
Paul Beckingham 2011-09-26 21:28:03 -04:00
parent 6c8aae11b7
commit b56035d4f5
2 changed files with 9 additions and 4 deletions

View file

@ -25,6 +25,8 @@
//
////////////////////////////////////////////////////////////////////////////////
#define L10N // Localization complete.
#include <iostream>
#include <algorithm>
#include <Color.h>
@ -52,9 +54,9 @@ int CmdShell::execute (std::string&)
Color bold (Color::nocolor, Color::nocolor, false, true, false);
std::cout << (context.color () ? bold.colorize (PACKAGE_STRING) : PACKAGE_STRING)
<< " shell\n\n"
<< "Enter any task command (such as 'list'), or hit 'Enter'.\n"
<< "There is no need to include the 'task' command itself.\n"
<< "Enter 'quit' (or 'bye', 'exit') to end the session.\n\n";
<< STRING_CMD_SHELL_HELP1 << "\n"
<< STRING_CMD_SHELL_HELP2 << "\n"
<< STRING_CMD_SHELL_HELP3 << "\n\n";
// Make a copy because context.clear will delete them.
std::string permanent_overrides;
@ -116,7 +118,7 @@ int CmdShell::execute (std::string&)
catch (...)
{
std::cerr << "Unknown error." << "\n";
std::cerr << STRING_UNKNOWN_ERROR << "\n";
}
}
}

View file

@ -316,6 +316,9 @@
#define STRING_CMD_IMPORT_BAD_ATT "Unrecognized attribute '{1}'"
#define STRING_CMD_IMPORT_NOT_JSON "Not a JSON object: {1}"
#define STRING_CMD_SHELL_USAGE "Launches an interactive shell"
#define STRING_CMD_SHELL_HELP1 "Enter any task command (such as 'list'), or hit 'Enter'."
#define STRING_CMD_SHELL_HELP2 "There is no need to include the 'task' command itself."
#define STRING_CMD_SHELL_HELP3 "Enter 'quit' (or 'bye', 'exit') to end the session."
#define STRING_CMD_SYNCH_USAGE "(Not implemented for 2.0.0beta2)"
#define STRING_CMD_DIAG_USAGE "Shows information needed when reporting a problem."
#define STRING_CMD_DIAG_PLATFORM "Platform"