From ee84961d36dc3647173fcca55ba6331ba4201cd5 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Tue, 10 Apr 2012 20:40:54 +0000 Subject: [PATCH] Make the invalid command name message translatable, as it's displayed to the user in non-error situations Originally committed to SVN as r6683. --- aegisub/src/command/command.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/aegisub/src/command/command.cpp b/aegisub/src/command/command.cpp index 2d6dcf80e..707f7d60f 100644 --- a/aegisub/src/command/command.cpp +++ b/aegisub/src/command/command.cpp @@ -21,6 +21,8 @@ #include "command.h" #include "icon.h" +#include "../compat.h" + #include namespace cmd { @@ -29,7 +31,8 @@ namespace cmd { static iterator find_command(std::string const& name) { iterator it = cmd_map.find(name); - if (it == cmd_map.end()) throw CommandNotFound("'" + name + "' is not a valid command name"); + if (it == cmd_map.end()) + throw CommandNotFound(STD_STR(wxString::Format(_("'%s' is not a valid command name"), lagi_wxString(name)))); return it; }