From 36a97c29145549464b6eed147706e0d63b884784 Mon Sep 17 00:00:00 2001 From: JazzyNico Date: Sun, 25 Apr 2010 16:10:07 +0200 Subject: [PATCH] i18n. Fix for bug #425202 (script messages not translated). --- src/extension/implementation/script.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/extension/implementation/script.cpp b/src/extension/implementation/script.cpp index 53a666e25..e075feb91 100644 --- a/src/extension/implementation/script.cpp +++ b/src/extension/implementation/script.cpp @@ -835,7 +835,13 @@ void Script::checkStderr (const Glib::ustring &data, textview->set_wrap_mode(Gtk::WRAP_WORD); textview->show(); - textview->get_buffer()->set_text(data.c_str()); + // Remove the last character + char *errormsg = (char*) data.c_str(); + while (*errormsg != '\0') errormsg++; + errormsg -= 1; + *errormsg = '\0'; + + textview->get_buffer()->set_text(_(data.c_str())); Gtk::ScrolledWindow * scrollwindow = new Gtk::ScrolledWindow(); scrollwindow->add(*textview); -- 2.30.2