summaryrefslogtreecommitdiffstats
path: root/src/pen-context.cpp
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2008-05-22 06:39:40 +0000
committerjoncruz <joncruz@users.sourceforge.net>2008-05-22 06:39:40 +0000
commita88534413d8855b4a75e3b6dfccf7374a032414b (patch)
treec4a19d1569ce0e0c234b64fd62981cec555030c8 /src/pen-context.cpp
parentFixed broken i18n strings causing problems with <b> tag (diff)
downloadinkscape-a88534413d8855b4a75e3b6dfccf7374a032414b.tar.gz
inkscape-a88534413d8855b4a75e3b6dfccf7374a032414b.zip
Fixed concat of i18n strings
(bzr r5733)
Diffstat (limited to 'src/pen-context.cpp')
-rw-r--r--src/pen-context.cpp22
1 files changed, 6 insertions, 16 deletions
diff --git a/src/pen-context.cpp b/src/pen-context.cpp
index d286c6f6c..b63efdf56 100644
--- a/src/pen-context.cpp
+++ b/src/pen-context.cpp
@@ -1135,14 +1135,9 @@ spdc_pen_set_subsequent_point(SPPenContext *const pc, NR::Point const p, bool st
sp_canvas_bpath_set_bpath(SP_CANVAS_BPATH(pc->red_bpath), pc->red_curve);
if (statusbar) {
- gchar *message = g_strconcat(
- "<b>",
- is_curve ? _("Curve segment") : _("Line segment"),
- "</b>: ",
- _("angle %3.2f&#176;, distance %s; with <b>Ctrl</b> to snap angle, <b>Enter</b> to finish the path"),
- NULL
- );
-
+ gchar *message = is_curve ?
+ _("<b>Curve segment</b>: angle %3.2f&#176;, distance %s; with <b>Ctrl</b> to snap angle, <b>Enter</b> to finish the path" ):
+ _("<b>Line segment</b>: angle %3.2f&#176;, distance %s; with <b>Ctrl</b> to snap angle, <b>Enter</b> to finish the path");
spdc_pen_set_angle_distance_status_message(pc, p, 0, message);
g_free(message);
}
@@ -1182,14 +1177,9 @@ spdc_pen_set_ctrl(SPPenContext *const pc, NR::Point const p, guint const state)
SP_CTRL(pc->c1)->moveto(pc->p[4]);
sp_ctrlline_set_coords(SP_CTRLLINE(pc->cl1), pc->p[3], pc->p[4]);
- gchar *message = g_strconcat(
- "<b>",
- is_symm ? _("Curve handle, symmetric") : _("Curve handle"),
- "</b>: ",
- _("angle %3.2f&#176;, length %s; with <b>Ctrl</b> to snap angle, with <b>Shift</b> to move this handle only"),
- NULL
- );
-
+ gchar *message = is_symm ?
+ _("<b>Curve handle, symmetric</b>: angle %3.2f&#176;, length %s; with <b>Ctrl</b> to snap angle, with <b>Shift</b> to move this handle only") :
+ _("<b>Curve handle</b>: angle %3.2f&#176;, length %s; with <b>Ctrl</b> to snap angle, with <b>Shift</b> to move this handle only");
spdc_pen_set_angle_distance_status_message(pc, p, 3, message);
g_free(message);
} else {