[glabels] Some string cleanup



commit c7934cf38d69f29e539a4110de36e88c8ed070bb
Author: Jim Evins <evins snaught com>
Date:   Wed Dec 2 18:25:51 2009 -0500

    Some string cleanup
    
    - Replaced "x" with UTF D7 "TIMES" symbol in dimension strings
    - Separated "diameter" into its own translatable string

 src/wdgt-media-select.c |   24 ++++++++++++++----------
 1 files changed, 14 insertions(+), 10 deletions(-)
---
diff --git a/src/wdgt-media-select.c b/src/wdgt-media-select.c
index 5aa7041..0cf1adf 100644
--- a/src/wdgt-media-select.c
+++ b/src/wdgt-media-select.c
@@ -687,12 +687,12 @@ get_label_size_desc (const lglTemplate *template)
 
                         xstr = gl_str_util_fraction_to_string (frame->rect.w*units_per_point);
                         ystr = gl_str_util_fraction_to_string (frame->rect.h*units_per_point);
-                        string = g_strdup_printf (_("%s x %s %s"),
+                        string = g_strdup_printf ("%s Ã? %s %s",
                                                   xstr, ystr, units_string);
                         g_free (xstr);
                         g_free (ystr);
                 } else {
-                        string = g_strdup_printf (_("%.5g x %.5g %s"),
+                        string = g_strdup_printf ("%.5g Ã? %.5g %s",
                                                   frame->rect.w*units_per_point,
                                                   frame->rect.h*units_per_point,
                                                   units_string);
@@ -703,13 +703,15 @@ get_label_size_desc (const lglTemplate *template)
                         gchar *dstr;
 
                         dstr = gl_str_util_fraction_to_string (2.0*frame->round.r*units_per_point);
-                        string = g_strdup_printf (_("%s %s diameter"),
-                                                  dstr, units_string);
+                        string = g_strdup_printf ("%s %s %s",
+                                                  dstr, units_string,
+                                                  _("diameter"));
                         g_free (dstr);
                 } else {
-                        string = g_strdup_printf (_("%.5g %s diameter"),
+                        string = g_strdup_printf ("%.5g %s %s",
                                                   2.0*frame->round.r*units_per_point,
-                                                  units_string);
+                                                  units_string,
+                                                  _("diameter"));
                 }
                 break;
         case LGL_TEMPLATE_FRAME_SHAPE_CD:
@@ -717,13 +719,15 @@ get_label_size_desc (const lglTemplate *template)
                         gchar *dstr;
 
                         dstr = gl_str_util_fraction_to_string (2.0*frame->cd.r1*units_per_point);
-                        string = g_strdup_printf (_("%s %s diameter"),
-                                                  dstr, units_string);
+                        string = g_strdup_printf ("%s %s %s",
+                                                  dstr, units_string,
+                                                  _("diameter"));
                         g_free (dstr);
                 } else {
-                        string = g_strdup_printf (_("%.5g %s diameter"),
+                        string = g_strdup_printf ("%.5g %s %s",
                                                   2.0*frame->cd.r1*units_per_point,
-                                                  units_string);
+                                                  units_string,
+                                                  _("diameter"));
                 }
                 break;
         default:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]