[gimp] gimptransformoptions: Mark strings for translation



commit 9b30b1d74447b9798fda58c11eb39ad5641446ce
Author: Mikael Magnusson <mikachu src gnome org>
Date:   Sun May 3 01:23:40 2015 +0200

    gimptransformoptions: Mark strings for translation

 app/tools/gimptransformoptions.c |   50 +++++++++++++++++++-------------------
 1 files changed, 25 insertions(+), 25 deletions(-)
---
diff --git a/app/tools/gimptransformoptions.c b/app/tools/gimptransformoptions.c
index e12d345..6940f17 100644
--- a/app/tools/gimptransformoptions.c
+++ b/app/tools/gimptransformoptions.c
@@ -477,33 +477,33 @@ gimp_transform_options_gui (GimpToolOptions *tool_options)
       }
       opt_list[] =
       {
-        { shift, NULL, "Constrain  (%s)" },
-        { shift, "constrain-move", "Move",
-          "Constrain movement to 45 degree angles from center  (%s)" },
-        { shift, "constrain-scale", "Scale",
-          "Maintain aspect ratio when scaling  (%s)" },
-        { shift, "constrain-rotate", "Rotate",
-          "Constrain rotation to 15 degree increments  (%s)" },
-        { shift, "constrain-shear", "Shear",
-          "Shear along edge direction only  (%s)" },
-        { shift, "constrain-perspective", "Perspective",
-          "Constrain perspective handles to move along edges and diagonal  (%s)" },
+        { shift, NULL, N_("Constrain  (%s)") },
+        { shift, "constrain-move", N_("Move"),
+          N_("Constrain movement to 45 degree angles from center  (%s)") },
+        { shift, "constrain-scale", N_("Scale"),
+          N_("Maintain aspect ratio when scaling  (%s)") },
+        { shift, "constrain-rotate", N_("Rotate"),
+          N_("Constrain rotation to 15 degree increments  (%s)") },
+        { shift, "constrain-shear", N_("Shear"),
+          N_("Shear along edge direction only  (%s)") },
+        { shift, "constrain-perspective", N_("Perspective"),
+          N_("Constrain perspective handles to move along edges and diagonal  (%s)") },
 
         { ctrl, NULL,
-          "From pivot  (%s)" },
-        { ctrl, "frompivot-scale", "Scale",
-          "Scale from pivot point  (%s)" },
-        { ctrl, "frompivot-shear", "Shear",
-          "Shear opposite edge by same amount  (%s)" },
-        { ctrl, "frompivot-perspective", "Perspective",
-          "Maintain position of pivot while changing perspective  (%s)" },
+          N_("From pivot  (%s)") },
+        { ctrl, "frompivot-scale", N_("Scale"),
+          N_("Scale from pivot point  (%s)") },
+        { ctrl, "frompivot-shear", N_("Shear"),
+          N_("Shear opposite edge by same amount  (%s)") },
+        { ctrl, "frompivot-perspective", N_("Perspective"),
+          N_("Maintain position of pivot while changing perspective  (%s)") },
 
         { 0, NULL,
-          "Pivot" },
-        { shift, "cornersnap", "Snap  (%s)",
-          "Snap pivot to corners and center  (%s)" },
-        { 0, "fixedpivot", "Lock",
-          "Lock pivot position to canvas" },
+          N_("Pivot") },
+        { shift, "cornersnap", N_("Snap  (%s)"),
+          N_("Snap pivot to corners and center  (%s)") },
+        { 0, "fixedpivot", N_("Lock"),
+          N_("Lock pivot position to canvas") },
       };
 
       GtkWidget *button;
@@ -520,7 +520,7 @@ gimp_transform_options_gui (GimpToolOptions *tool_options)
               continue;
             }
 
-          label = g_strdup_printf (opt_list[i].desc,
+          label = g_strdup_printf (gettext (opt_list[i].desc),
                                    gimp_get_mod_string (opt_list[i].mod));
 
           if (opt_list[i].name)
@@ -534,7 +534,7 @@ gimp_transform_options_gui (GimpToolOptions *tool_options)
               gtk_widget_show (button);
 
               g_free (label);
-              label = g_strdup_printf (opt_list[i].tip,
+              label = g_strdup_printf (gettext (opt_list[i].tip),
                                        gimp_get_mod_string (opt_list[i].mod));
 
               gimp_help_set_help_data (button, label, NULL);


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