Code

Fixed broken i18n strings causing problems with <b> tag
authorjoncruz <joncruz@users.sourceforge.net>
Thu, 22 May 2008 04:57:08 +0000 (04:57 +0000)
committerjoncruz <joncruz@users.sourceforge.net>
Thu, 22 May 2008 04:57:08 +0000 (04:57 +0000)
src/dialogs/swatches.cpp

index 1ed36e7897f28b67b75f50a57a669cd39308011e..2987b3212fdbed0aa57de9379ed3129a791154f3 100644 (file)
@@ -245,14 +245,10 @@ static gboolean handleEnterNotify( GtkWidget* widget, GdkEventCrossing* event, g
     if ( item ) {
         SPDesktop *desktop = SP_ACTIVE_DESKTOP;
         if ( desktop ) {
-            desktop->tipsMessageContext()->set(Inkscape::INFORMATION_MESSAGE, g_strconcat(
-              _("Color: <b>"),
-              item->def.descr.c_str(),
-              _("</b>"),
-              _("; "),
-              _("<b>Click</b> to set fill, <b>Shift+click</b> to set stroke"),
-              NULL
-            ));
+            gchar* msg = g_strdup_printf(_("Color: <b>%s</b>; <b>Click</b> to set fill, <b>Shift+click</b> to set stroke"),
+                                         item->def.descr.c_str());
+            desktop->tipsMessageContext()->set(Inkscape::INFORMATION_MESSAGE, msg);
+            g_free(msg);
         }
     }
     return FALSE;