From: JazzyNico Date: Sun, 25 Apr 2010 14:10:07 +0000 (+0200) Subject: i18n. Fix for bug #425202 (script messages not translated). X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=36a97c29145549464b6eed147706e0d63b884784;p=inkscape.git i18n. Fix for bug #425202 (script messages not translated). --- 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);