diff options
author | infirit <[email protected]> | 2014-12-19 01:17:13 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-12-19 01:17:13 +0100 |
commit | fdd68b3d1577af90bd37d990ac09ba8b5ee2f70d (patch) | |
tree | d4136b6e420065db667280b4868fb93b32d8a1b7 /src/lsof.cpp | |
parent | 0dc96be11c125a73113985c37b6d91824578c43c (diff) | |
download | mate-system-monitor-fdd68b3d1577af90bd37d990ac09ba8b5ee2f70d.tar.bz2 mate-system-monitor-fdd68b3d1577af90bd37d990ac09ba8b5ee2f70d.tar.xz |
Remove markup from translated strings
Including the markup in the translated strings makes the
translators job unnecessarily harder.
Taken from GSM commit: c45ed812a74874ada38feaf4883de807d2a26cfb
From: Matthias Clasen <[email protected]>
Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=681271
Diffstat (limited to 'src/lsof.cpp')
-rw-r--r-- | src/lsof.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lsof.cpp b/src/lsof.cpp index 100394a..aaf2fbd 100644 --- a/src/lsof.cpp +++ b/src/lsof.cpp @@ -122,10 +122,12 @@ namespace void display_regex_error(const Glib::RegexError& error) { - const char * msg = _("<b>Error</b>\n" - "'%s' is not a valid Perl regular expression.\n" - "%s"); + char * msg = g_strdup_printf ("<b>%s</b>\n%s\n%s", + _("Error"), + _("'%s' is not a valid Perl regular expression."), + "%s"); std::string message = make_string(g_strdup_printf(msg, this->pattern().c_str(), error.what().c_str())); + g_free(msg); Gtk::MessageDialog dialog(message, true, // use markup |