l10n removal of STRING_UNKNOWN_ERROR

This commit is contained in:
Paul Beckingham 2018-01-07 12:57:21 -05:00
parent 6a97188084
commit 0b790f46a1
12 changed files with 5 additions and 15 deletions

View file

@ -969,7 +969,7 @@ void CLI2::categorizeArgs ()
cmd->accepts_miscellaneous ())
{
// Error: internally inconsistent.
throw std::string (STRING_UNKNOWN_ERROR);
throw std::string ("Unknown error. Please report.");
}
else if (cmd &&
cmd->accepts_filter () &&
@ -1009,7 +1009,7 @@ void CLI2::categorizeArgs ()
cmd->accepts_miscellaneous ())
{
// Error: internally inconsistent.
throw std::string (STRING_UNKNOWN_ERROR);
throw std::string ("Unknown error. Please report.");
}
}

View file

@ -595,7 +595,7 @@ int Context::initialize (int argc, const char** argv)
catch (...)
{
error (STRING_UNKNOWN_ERROR);
error ("Unknown error. Please report.");
rc = 3;
}
@ -708,7 +708,7 @@ int Context::run ()
catch (...)
{
error (STRING_UNKNOWN_ERROR);
error ("Unknown error. Please report.");
rc = 3;
}

View file

@ -702,7 +702,6 @@
// Errors
// TODO Move each of these to appropriate section.
#define STRING_ERROR_PREFIX "Fehler: "
#define STRING_UNKNOWN_ERROR "Unbekannter Fehler."
#define STRING_TRIVIAL_INPUT "Sie müssen einen Befehl oder eine Aufgabe zum ändern angeben."
#define STRING_ASSUME_INFO "Kein Befehl angegeben - nehme 'information' an."
#define STRING_INFINITE_LOOP "Beende Ersetzung, weil mehr als {1} Änderungen durchgeführt wurden - Schutz vor Endlosschleifen."

View file

@ -700,7 +700,6 @@
// Errors
// TODO Move each of these to appropriate section.
#define STRING_ERROR_PREFIX "Error: "
#define STRING_UNKNOWN_ERROR "Unknown error. Please report."
#define STRING_TRIVIAL_INPUT "You must specify a command or a task to modify."
#define STRING_ASSUME_INFO "No command specified - assuming 'information'."
#define STRING_INFINITE_LOOP "Terminated substitution because more than {1} changes were made - infinite loop protection."

View file

@ -702,7 +702,6 @@
// Errors
// TODO Move each of these to appropriate section.
#define STRING_ERROR_PREFIX "Eraro: "
#define STRING_UNKNOWN_ERROR "Eraro nekonata."
#define STRING_TRIVIAL_INPUT "Oni devas specifi komandon, aŭ taskon ke vi volas modifi."
#define STRING_ASSUME_INFO "Nenia komando specifita. Supozanta 'information'."
#define STRING_INFINITE_LOOP "Finis anstataŭon ĉar ekzistas pli de {1} ŝanĝoj - protekto kontraŭ senfina ripeton."

View file

@ -714,7 +714,6 @@
// Errors
// TODO Move each of these to appropriate section.
#define STRING_ERROR_PREFIX "Error: " // |esp-ESP|==|eng-USA|
#define STRING_UNKNOWN_ERROR "Error desconocido."
#define STRING_TRIVIAL_INPUT "Debe especificar un comando o una tarea a modificar."
#define STRING_ASSUME_INFO "No especificó un comando - asumido 'information'."
#define STRING_INFINITE_LOOP "Sustitución terminada debido a que se hicieron más de {1} cambios - protección contra ciclo eterno."

View file

@ -704,7 +704,6 @@
// Errors
// TODO Move each of these to appropriate section.
#define STRING_ERROR_PREFIX "Erreur : "
#define STRING_UNKNOWN_ERROR "Erreur inconnue."
#define STRING_TRIVIAL_INPUT "Il vous faut spécifier une commande ou une tâche à modifier."
#define STRING_ASSUME_INFO "No command specified - assuming 'information'."
#define STRING_INFINITE_LOOP "Substitution arrêté parce que plus de {1} changements ont été faits - protection contre les boucles infinies."

View file

@ -703,7 +703,6 @@
// Errors
// TODO Move each of these to appropriate section.
#define STRING_ERROR_PREFIX "Errore: "
#define STRING_UNKNOWN_ERROR "Errore sconosciuto."
#define STRING_TRIVIAL_INPUT "Specificare un comando o un task da modificare"
#define STRING_ASSUME_INFO "Nessun comando specificato - si assume 'information'."
#define STRING_INFINITE_LOOP "Sostituzione terminata poiché più di {1} modifiche sono state fatte - protezione da ciclo infinito"

View file

@ -704,7 +704,6 @@
// Errors
// TODO Move each of these to appropriate section.
#define STRING_ERROR_PREFIX "エラー: "
#define STRING_UNKNOWN_ERROR "不明なエラー。"
#define STRING_TRIVIAL_INPUT "変更したいコマンドまたはタスクを指定しなければなりません。"
#define STRING_ASSUME_INFO "コマンドが指定されていません - 'information' を仮定します。"
#define STRING_INFINITE_LOOP "Terminated substitution because more than {1} changes were made - infinite loop protection."

View file

@ -704,7 +704,6 @@
// Errors
// TODO Move each of these to appropriate section.
#define STRING_ERROR_PREFIX "Błąd: "
#define STRING_UNKNOWN_ERROR "Nieznany błąd."
#define STRING_TRIVIAL_INPUT "Musisz podać polecenie lub zadanie do zmiany."
#define STRING_ASSUME_INFO "Nie podano polecenia - zakładam 'information'."
#define STRING_INFINITE_LOOP "Podstawienie anulowane ponieważ wykonano więcej niż {1} zmian - zabezpieczenie przed zapętleniem."

View file

@ -704,7 +704,6 @@
// Errors
// TODO Move each of these to appropriate section.
#define STRING_ERROR_PREFIX "Erro: "
#define STRING_UNKNOWN_ERROR "Erro desconhecido."
#define STRING_TRIVIAL_INPUT "Deve específicar um comando ou a tarefa a modificar."
#define STRING_ASSUME_INFO "Nenhum comando especificado - assumindo 'information'."
#define STRING_INFINITE_LOOP "Substituição terminada. Efectuadas mais de {1} alterações - protecção de ciclos infinitos."

View file

@ -28,7 +28,6 @@
#include <iostream>
#include <new>
#include <cstring>
#include <i18n.h>
#include <Context.h>
Context context;
@ -66,7 +65,7 @@ int main (int argc, const char** argv)
catch (...)
{
std::cerr << STRING_UNKNOWN_ERROR << "\n";
std::cerr << "Unknown error. Please report.\n";
status = -2;
}
}