Run dialog: Make error message translatable

Allow the error message to be translated.

https://bugzilla.gnome.org/show_bug.cgi?id=597422
This commit is contained in:
Adel Gadllah 2009-10-05 23:53:50 +02:00
parent 4ddc1118bb
commit 3bf88b8988

View File

@ -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();
}