- Localized the new _get command.
This commit is contained in:
Paul Beckingham 2013-09-02 15:33:52 -04:00
parent bc41e7378a
commit 8252095174
5 changed files with 5 additions and 1 deletions

View file

@ -51,7 +51,7 @@ int CmdGet::execute (std::string& output)
// have already been handled.
std::vector <std::string> words = context.a3.extract_words ();
if (words.size () == 0)
throw std::string ("Need args!");
throw std::string (STRING_CMD_GET_NO_DOM);
std::vector <std::string> results;
std::vector <std::string>::iterator word;

View file

@ -308,6 +308,7 @@
#define STRING_CMD_SUMMARY_NONE "(none)"
#define STRING_CMD_COUNT_USAGE "Counts matching tasks"
#define STRING_CMD_GET_USAGE "DOM Accessor"
#define STRING_CMD_GET_NO_DOM "No DOM reference specified."
#define STRING_CMD_UDAS_NO "No UDAs defined."
#define STRING_CMD_UDAS_SUMMARY "{1} UDA defined"

View file

@ -317,6 +317,7 @@
#define STRING_CMD_SUMMARY_NONE "(ninguna)"
#define STRING_CMD_COUNT_USAGE "Cuenta tareas que coinciden"
#define STRING_CMD_GET_USAGE "DOM Accessor"
#define STRING_CMD_GET_NO_DOM "No DOM reference specified."
#define STRING_CMD_UDAS_NO "Ningún UDA definido."
#define STRING_CMD_UDAS_SUMMARY "{1} UDA definido"

View file

@ -308,6 +308,7 @@
#define STRING_CMD_SUMMARY_NONE "(none)"
#define STRING_CMD_COUNT_USAGE "Counts matching tasks"
#define STRING_CMD_GET_USAGE "DOM Accessor"
#define STRING_CMD_GET_NO_DOM "No DOM reference specified."
#define STRING_CMD_UDAS_NO "No UDAs defined."
#define STRING_CMD_UDAS_SUMMARY "{1} UDA defined"

View file

@ -309,6 +309,7 @@
#define STRING_CMD_SUMMARY_NONE "(nessuno)"
#define STRING_CMD_COUNT_USAGE "Conteggia task corrispondenti"
#define STRING_CMD_GET_USAGE "DOM Accessor"
#define STRING_CMD_GET_NO_DOM "No DOM reference specified."
#define STRING_CMD_UDAS_NO "Nessun UDA definito."
#define STRING_CMD_UDAS_SUMMARY "{1} UDA definito"