[gimp] app: fix some oprtation descriptions and make them translatable



commit 319738532a0de30c1bd05100195648e21e0f619c
Author: Michael Natterer <mitch gimp org>
Date:   Mon May 20 16:08:46 2013 +0200

    app: fix some oprtation descriptions and make them translatable
    
    They are going to be visible in the UI.

 app/operations/gimpoperationsemiflatten.c    |    4 +++-
 app/operations/gimpoperationthresholdalpha.c |    6 +++++-
 po/POTFILES.in                               |    2 ++
 3 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/app/operations/gimpoperationsemiflatten.c b/app/operations/gimpoperationsemiflatten.c
index 2aa7590..d621e4a 100644
--- a/app/operations/gimpoperationsemiflatten.c
+++ b/app/operations/gimpoperationsemiflatten.c
@@ -33,6 +33,8 @@
 
 #include "gimpoperationsemiflatten.h"
 
+#include "gimp-intl.h"
+
 
 enum
 {
@@ -79,7 +81,7 @@ gimp_operation_semi_flatten_class_init (GimpOperationSemiFlattenClass *klass)
   gegl_operation_class_set_keys (operation_class,
                                  "name",        "gimp:semi-flatten",
                                  "categories",  "color",
-                                 "description", "Replace partial transparency with  a color",
+                                 "description", _("Replace partial transparency with a color"),
                                  NULL);
 
   operation_class->prepare = gimp_operation_semi_flatten_prepare;
diff --git a/app/operations/gimpoperationthresholdalpha.c b/app/operations/gimpoperationthresholdalpha.c
index ddf77c7..d79bc68 100644
--- a/app/operations/gimpoperationthresholdalpha.c
+++ b/app/operations/gimpoperationthresholdalpha.c
@@ -29,6 +29,8 @@
 
 #include "gimpoperationthresholdalpha.h"
 
+#include "gimp-intl.h"
+
 
 enum
 {
@@ -74,7 +76,9 @@ gimp_operation_threshold_alpha_class_init (GimpOperationThresholdAlphaClass *kla
   gegl_operation_class_set_keys (operation_class,
                                  "name",        "gimp:threshold-alpha",
                                  "categories",  "color",
-                                 "description", "Threshold a buffer's alpha channel to a value",
+                                 "description",
+                                 _("Make transparency all-or-nothing, by "
+                                   "thresholding the alpha channel to a value"),
                                  NULL);
 
   operation_class->prepare = gimp_operation_threshold_alpha_prepare;
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 10a4d88..285111f 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -236,6 +236,8 @@ app/operations/gimpcurvesconfig.c
 app/operations/gimplevelsconfig.c
 app/operations/gimpoperationcagecoefcalc.c
 app/operations/gimpoperationcagetransform.c
+app/operations/gimpoperationsemiflatten.c
+app/operations/gimpoperationthresholdalpha.c
 
 app/gui/gui.c
 app/gui/gui-message.c


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