diff options
| author | Nicolas Dufour <nicoduf@yahoo.fr> | 2010-04-25 14:10:07 +0000 |
|---|---|---|
| committer | JazzyNico <nicoduf@yahoo.fr> | 2010-04-25 14:10:07 +0000 |
| commit | df0b97d8308ca35a22b580e0756f57feefc39c35 (patch) | |
| tree | 8dd2b1d49ac2a9e78f5ccbfd3ed8227ddc5113eb /src | |
| parent | Pack combo boxes into GtkAlignment for natural size when used in toolbars. (diff) | |
| download | inkscape-df0b97d8308ca35a22b580e0756f57feefc39c35.tar.gz inkscape-df0b97d8308ca35a22b580e0756f57feefc39c35.zip | |
i18n. Fix for bug #425202 (script messages not translated).
Fixed bugs:
- https://launchpad.net/bugs/425202
(bzr r9371)
Diffstat (limited to 'src')
| -rw-r--r-- | src/extension/implementation/script.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
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); |
