[gimp] take care of i18n for the cage tool



commit f7b3209d2db5f6493a90d77b46508802c06c36d6
Author: Michael Muré <batolettre gmail com>
Date:   Mon Jun 6 19:25:23 2011 +0200

    take care of i18n for the cage tool

 app/gegl/gimpoperationcagecoefcalc.c  |    7 +++++--
 app/gegl/gimpoperationcagetransform.c |   11 +++++++----
 po/POTFILES.in                        |    2 ++
 3 files changed, 14 insertions(+), 6 deletions(-)
---
diff --git a/app/gegl/gimpoperationcagecoefcalc.c b/app/gegl/gimpoperationcagecoefcalc.c
index e355068..01ddb7f 100644
--- a/app/gegl/gimpoperationcagecoefcalc.c
+++ b/app/gegl/gimpoperationcagecoefcalc.c
@@ -29,6 +29,7 @@
 #include "gimpoperationcagecoefcalc.h"
 #include "gimpcageconfig.h"
 
+#include "gimp-intl.h"
 
 static void           gimp_operation_cage_coef_calc_prepare           (GeglOperation        *operation);
 static void           gimp_operation_cage_coef_calc_finalize          (GObject              *object);
@@ -61,7 +62,7 @@ gimp_operation_cage_coef_calc_class_init (GimpOperationCageCoefCalcClass *klass)
 
   operation_class->name               = "gimp:cage-coef-calc";
   operation_class->categories         = "transform";
-  operation_class->description        = "GIMP cage transform coefficient calc";
+  operation_class->description        = _("Compute a set of coefficient buffer for the Gimp cage tool");
 
   operation_class->prepare            = gimp_operation_cage_coef_calc_prepare;
   operation_class->get_bounding_box   = gimp_operation_cage_coef_calc_get_bounding_box;
@@ -76,7 +77,9 @@ gimp_operation_cage_coef_calc_class_init (GimpOperationCageCoefCalcClass *klass)
 
   g_object_class_install_property (object_class,
                                    GIMP_OPERATION_CAGE_COEF_CALC_PROP_CONFIG,
-                                   g_param_spec_object ("config", NULL, NULL,
+                                   g_param_spec_object ("config",
+                                                        _("Config"),
+                                                        _("A GimpCageConfig object, that define the transformation"),
                                                         GIMP_TYPE_CAGE_CONFIG,
                                                         G_PARAM_READWRITE |
                                                         G_PARAM_CONSTRUCT));
diff --git a/app/gegl/gimpoperationcagetransform.c b/app/gegl/gimpoperationcagetransform.c
index 42d264a..c667238 100644
--- a/app/gegl/gimpoperationcagetransform.c
+++ b/app/gegl/gimpoperationcagetransform.c
@@ -31,6 +31,7 @@
 #include "gimpoperationcagetransform.h"
 #include "gimpcageconfig.h"
 
+#include "gimp-intl.h"
 
 enum
 {
@@ -100,7 +101,7 @@ gimp_operation_cage_transform_class_init (GimpOperationCageTransformClass *klass
 
   operation_class->name                    = "gimp:cage-transform";
   operation_class->categories              = "transform";
-  operation_class->description             = "GIMP cage reverse transform";
+  operation_class->description             = _("Convert a set of coefficient buffer to a coordinate buffer for the Gimp cage tool");
 
   operation_class->prepare                 = gimp_operation_cage_transform_prepare;
 
@@ -112,15 +113,17 @@ gimp_operation_cage_transform_class_init (GimpOperationCageTransformClass *klass
   filter_class->process                    = gimp_operation_cage_transform_process;
 
   g_object_class_install_property (object_class, PROP_CONFIG,
-                                   g_param_spec_object ("config", NULL, NULL,
+                                   g_param_spec_object ("config",
+                                                        _("Config"),
+                                                        _("A GimpCageConfig object, that define the transformation"),
                                                         GIMP_TYPE_CAGE_CONFIG,
                                                         G_PARAM_READWRITE |
                                                         G_PARAM_CONSTRUCT));
 
   g_object_class_install_property (object_class, PROP_FILL,
                                    g_param_spec_boolean ("fill-plain-color",
-                                                         "Blocking render",
-                                                         "Fill the original position of the cage with a plain color",
+                                                         _("Fill with plain color"),
+                                                         _("Fill the original position of the cage with a plain color"),
                                                          FALSE,
                                                          G_PARAM_READWRITE));
 
diff --git a/po/POTFILES.in b/po/POTFILES.in
index b7da894..e0f7f71 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -234,6 +234,8 @@ app/file/file-utils.c
 app/gegl/gimp-gegl-enums.c
 app/gegl/gimpcurvesconfig.c
 app/gegl/gimplevelsconfig.c
+app/gegl/gimpoperationcagecoefcalc.c
+app/gegl/gimpoperationcagetransform.c
 
 app/gui/gui.c
 app/gui/gui-message.c



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