From f69e15219ec0c3d1a49204e8f62304aecfcec639 Mon Sep 17 00:00:00 2001 From: joncruz Date: Thu, 22 May 2008 06:39:40 +0000 Subject: [PATCH] Fixed concat of i18n strings --- src/pen-context.cpp | 22 ++++++---------------- 1 file 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( - "", - is_curve ? _("Curve segment") : _("Line segment"), - ": ", - _("angle %3.2f°, distance %s; with Ctrl to snap angle, Enter to finish the path"), - NULL - ); - + gchar *message = is_curve ? + _("Curve segment: angle %3.2f°, distance %s; with Ctrl to snap angle, Enter to finish the path" ): + _("Line segment: angle %3.2f°, distance %s; with Ctrl to snap angle, Enter 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( - "", - is_symm ? _("Curve handle, symmetric") : _("Curve handle"), - ": ", - _("angle %3.2f°, length %s; with Ctrl to snap angle, with Shift to move this handle only"), - NULL - ); - + gchar *message = is_symm ? + _("Curve handle, symmetric: angle %3.2f°, length %s; with Ctrl to snap angle, with Shift to move this handle only") : + _("Curve handle: angle %3.2f°, length %s; with Ctrl to snap angle, with Shift to move this handle only"); spdc_pen_set_angle_distance_status_message(pc, p, 3, message); g_free(message); } else { -- 2.30.2