From 3bf88b8988a5f8abb157decf412c8b33f3b4e7ff Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Mon, 5 Oct 2009 23:53:50 +0200 Subject: [PATCH] Run dialog: Make error message translatable Allow the error message to be translated. https://bugzilla.gnome.org/show_bug.cgi?id=597422 --- js/ui/runDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/runDialog.js b/js/ui/runDialog.js index 1d6ae4abf..69c243426 100644 --- a/js/ui/runDialog.js +++ b/js/ui/runDialog.js @@ -170,7 +170,7 @@ RunDialog.prototype = { * We are only interested in the actual error, so parse that out. */ let m = /.+\((.+)\)/.exec(e); - let errorStr = "Execution of '" + command + "' failed:\n" + m[1]; + let errorStr = _("Execution of '%s' failed:").format(command) + "\n" + m[1]; this._errorMessage.set_text(errorStr); this._errorBox.show(); }