gegl r2590 - in trunk: . operations/affine operations/common operations/core operations/external operations/generated operations/workshop operations/workshop/external operations/workshop/generated
- From: ok svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r2590 - in trunk: . operations/affine operations/common operations/core operations/external operations/generated operations/workshop operations/workshop/external operations/workshop/generated
- Date: Thu, 2 Oct 2008 23:37:55 +0000 (UTC)
Author: ok
Date: Thu Oct 2 23:37:54 2008
New Revision: 2590
URL: http://svn.gnome.org/viewvc/gegl?rev=2590&view=rev
Log:
Applied patches from yahvuu at gmail.com for bug #307195 that
marks strings in operation for translation.
* operations/*/*.c:
Modified:
trunk/ChangeLog
trunk/operations/affine/affine.c
trunk/operations/affine/reflect.c
trunk/operations/affine/rotate.c
trunk/operations/affine/scale.c
trunk/operations/affine/shear.c
trunk/operations/affine/translate.c
trunk/operations/common/bilateral-filter.c
trunk/operations/common/box-blur.c
trunk/operations/common/c2g.c
trunk/operations/common/checkerboard.c
trunk/operations/common/color-temperature.c
trunk/operations/common/color.c
trunk/operations/common/contrast-curve.c
trunk/operations/common/difference-of-gaussians.c
trunk/operations/common/dropshadow.c
trunk/operations/common/fractal-explorer.c
trunk/operations/common/gaussian-blur.c
trunk/operations/common/grey.c
trunk/operations/common/introspect.c
trunk/operations/common/invert.c
trunk/operations/common/layer.c
trunk/operations/common/levels.c
trunk/operations/common/load-buffer.c
trunk/operations/common/load.c
trunk/operations/common/magick-load.c
trunk/operations/common/mblur.c
trunk/operations/common/mono-mixer.c
trunk/operations/common/noise.c
trunk/operations/common/opacity.c
trunk/operations/common/open-buffer.c
trunk/operations/common/raw-load.c
trunk/operations/common/rectangle.c
trunk/operations/common/remap.c
trunk/operations/common/save-buffer.c
trunk/operations/common/snn-mean.c
trunk/operations/common/stress.c
trunk/operations/common/stretch-contrast.c
trunk/operations/common/svg-huerotate.c
trunk/operations/common/svg-luminancetoalpha.c
trunk/operations/common/svg-matrix.c
trunk/operations/common/svg-saturate.c
trunk/operations/common/threshold.c
trunk/operations/common/tonemap.c
trunk/operations/common/unsharp-mask.c
trunk/operations/common/value-invert.c
trunk/operations/common/whitebalance.c
trunk/operations/common/write-buffer.c
trunk/operations/core/clone.c
trunk/operations/core/convert-format.c
trunk/operations/core/crop.c
trunk/operations/core/nop.c
trunk/operations/core/shift.c
trunk/operations/external/display.c
trunk/operations/external/ff-load.c
trunk/operations/external/jpg-load.c
trunk/operations/external/pixbuf.c
trunk/operations/external/png-load.c
trunk/operations/external/png-save.c
trunk/operations/external/save-pixbuf.c
trunk/operations/external/svg-load.c
trunk/operations/external/text.c
trunk/operations/external/v4l.c
trunk/operations/generated/math.rb
trunk/operations/generated/other-blend.rb
trunk/operations/generated/svg-12-blend.rb
trunk/operations/generated/svg-12-porter-duff.rb
trunk/operations/workshop/box-max.c
trunk/operations/workshop/box-min.c
trunk/operations/workshop/box-percentile.c
trunk/operations/workshop/color-reduction.c
trunk/operations/workshop/demosaic-bimedian.c
trunk/operations/workshop/demosaic-simple.c
trunk/operations/workshop/disc-percentile.c
trunk/operations/workshop/external/ff-save.c
trunk/operations/workshop/external/gluas.c
trunk/operations/workshop/external/gtk-display.c
trunk/operations/workshop/external/line-profile.c
trunk/operations/workshop/generated/blend.rb
trunk/operations/workshop/hstack.c
trunk/operations/workshop/kuwahara-max.c
trunk/operations/workshop/kuwahara-min.c
trunk/operations/workshop/kuwahara.c
trunk/operations/workshop/lens-correct.c
trunk/operations/workshop/mandelbrot.c
trunk/operations/workshop/rawbayer-load.c
trunk/operations/workshop/snn-percentile.c
trunk/operations/workshop/stroke.c
Modified: trunk/operations/affine/affine.c
==============================================================================
--- trunk/operations/affine/affine.c (original)
+++ trunk/operations/affine/affine.c Thu Oct 2 23:37:54 2008
@@ -23,6 +23,10 @@
/* TODO: make rect calculations depend on the sampling kernel of the
* interpolation filter used */
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#include <math.h>
#include <gegl-plugin.h>
#include "buffer/gegl-sampler.h"
@@ -212,38 +216,38 @@
g_object_class_install_property (gobject_class, PROP_ORIGIN_X,
g_param_spec_double (
"origin-x",
- "Origin-x",
- "X-coordinate of origin",
+ _("Origin-x"),
+ _("X-coordinate of origin"),
-G_MAXDOUBLE, G_MAXDOUBLE,
0.,
G_PARAM_CONSTRUCT | G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_ORIGIN_Y,
g_param_spec_double (
"origin-y",
- "Origin-y",
- "Y-coordinate of origin",
+ _("Origin-y"),
+ _("Y-coordinate of origin"),
-G_MAXDOUBLE, G_MAXDOUBLE,
0.,
G_PARAM_CONSTRUCT | G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_FILTER,
g_param_spec_string (
"filter",
- "Filter",
- "Filter type (nearest, linear, lanczos, cubic)",
+ _("Filter"),
+ _("Filter type (nearest, linear, lanczos, cubic)"),
"linear",
G_PARAM_CONSTRUCT | G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_HARD_EDGES,
g_param_spec_boolean (
"hard-edges",
- "Hard-edges",
- "Hard edges",
+ _("Hard-edges"),
+ _("Hard edges"),
FALSE,
G_PARAM_CONSTRUCT | G_PARAM_READWRITE));
g_object_class_install_property (gobject_class, PROP_LANCZOS_WIDTH,
g_param_spec_int (
"lanczos-width",
- "Lanczos-width",
- "Width of lanczos function",
+ _("Lanczos-width"),
+ _("Width of lanczos function"),
3, 6, 3,
G_PARAM_CONSTRUCT | G_PARAM_READWRITE));
}
Modified: trunk/operations/affine/reflect.c
==============================================================================
--- trunk/operations/affine/reflect.c (original)
+++ trunk/operations/affine/reflect.c Thu Oct 2 23:37:54 2008
@@ -19,12 +19,16 @@
* vector that is defined by the x and y properties.
*/
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#if GEGL_CHANT_PROPERTIES
gegl_chant_double (x, -G_MAXDOUBLE, G_MAXDOUBLE, 0.0,
- "Direction vector's x component")
+ _("Direction vector's x component"))
gegl_chant_double (y, -G_MAXDOUBLE, G_MAXDOUBLE, 0.0,
- "Direction vector's y component")
+ _("Direction vector's y component"))
#else
Modified: trunk/operations/affine/rotate.c
==============================================================================
--- trunk/operations/affine/rotate.c (original)
+++ trunk/operations/affine/rotate.c Thu Oct 2 23:37:54 2008
@@ -16,14 +16,19 @@
* Copyright 2006 Philip Lafleur
*/
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#if GEGL_CHANT_PROPERTIES
-gegl_chant_double (degrees, -G_MAXDOUBLE, G_MAXDOUBLE, 0., "Angle to rotate (clockwize)")
+gegl_chant_double (degrees, -G_MAXDOUBLE, G_MAXDOUBLE, 0.,
+ _("Angle to rotate (clockwize)"))
#else
#define GEGL_CHANT_NAME rotate
-#define GEGL_CHANT_DESCRIPTION "Rotate the buffer around the specified origin."
+#define GEGL_CHANT_DESCRIPTION _("Rotate the buffer around the specified origin.")
#define GEGL_CHANT_SELF "rotate.c"
#include "chant.h"
Modified: trunk/operations/affine/scale.c
==============================================================================
--- trunk/operations/affine/scale.c (original)
+++ trunk/operations/affine/scale.c Thu Oct 2 23:37:54 2008
@@ -16,15 +16,19 @@
* Copyright 2006 Philip Lafleur
*/
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#if GEGL_CHANT_PROPERTIES
-gegl_chant_double (x, -G_MAXDOUBLE, G_MAXDOUBLE, 1., "Horizontal scale factor.")
-gegl_chant_double (y, -G_MAXDOUBLE, G_MAXDOUBLE, 1., "Vertical scale factor.")
+gegl_chant_double (x, -G_MAXDOUBLE, G_MAXDOUBLE, 1., _("Horizontal scale factor."))
+gegl_chant_double (y, -G_MAXDOUBLE, G_MAXDOUBLE, 1., _("Vertical scale factor."))
#else
#define GEGL_CHANT_NAME scale
-#define GEGL_CHANT_DESCRIPTION "Scales the buffer."
+#define GEGL_CHANT_DESCRIPTION _("Scales the buffer.")
#define GEGL_CHANT_SELF "scale.c"
#include "chant.h"
Modified: trunk/operations/affine/shear.c
==============================================================================
--- trunk/operations/affine/shear.c (original)
+++ trunk/operations/affine/shear.c Thu Oct 2 23:37:54 2008
@@ -16,17 +16,21 @@
* Copyright 2006 Philip Lafleur
*/
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#if GEGL_CHANT_PROPERTIES
gegl_chant_double (x, -G_MAXDOUBLE, G_MAXDOUBLE, 1.,
- "Horizontal shear amount.")
+ _("Horizontal shear amount."))
gegl_chant_double (y, -G_MAXDOUBLE, G_MAXDOUBLE, 1.,
- "Vertical shear amount.")
+ _("Vertical shear amount."))
#else
#define GEGL_CHANT_NAME shear
-#define GEGL_CHANT_DESCRIPTION "Shears the buffer."
+#define GEGL_CHANT_DESCRIPTION _("Shears the buffer.")
#define GEGL_CHANT_SELF "shear.c"
#include "chant.h"
Modified: trunk/operations/affine/translate.c
==============================================================================
--- trunk/operations/affine/translate.c (original)
+++ trunk/operations/affine/translate.c Thu Oct 2 23:37:54 2008
@@ -16,17 +16,21 @@
* Copyright 2006 Philip Lafleur
*/
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#if GEGL_CHANT_PROPERTIES
gegl_chant_double (x, -G_MAXDOUBLE, G_MAXDOUBLE, 1.,
- "Horizontal translation.")
+ _("Horizontal translation."))
gegl_chant_double (y, -G_MAXDOUBLE, G_MAXDOUBLE, 1.,
- "Vertical translation.")
+ _("Vertical translation."))
#else
#define GEGL_CHANT_NAME translate
-#define GEGL_CHANT_DESCRIPTION "Repositions the buffer (with subpixel precision)."
+#define GEGL_CHANT_DESCRIPTION _("Repositions the buffer (with subpixel precision).")
#define GEGL_CHANT_SELF "translate.c"
#include "chant.h"
Modified: trunk/operations/common/bilateral-filter.c
==============================================================================
--- trunk/operations/common/bilateral-filter.c (original)
+++ trunk/operations/common/bilateral-filter.c Thu Oct 2 23:37:54 2008
@@ -17,13 +17,17 @@
* 2007 Ãyvind KolÃs <oeyvindk hig no>
*/
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_double (blur_radius, "Blur radius", 0.0, 70.0, 4.0,
- "Radius of square pixel region, (width and height will be radius*2+1).")
-gegl_chant_double (edge_preservation, "Edge preservation", 0.0, 70.0, 8.0,
- "Amount of edge preservation")
+gegl_chant_double (blur_radius, _("Blur radius"), 0.0, 70.0, 4.0,
+ _("Radius of square pixel region, (width and height will be radius*2+1)."))
+gegl_chant_double (edge_preservation, _("Edge preservation"), 0.0, 70.0, 8.0,
+ _("Amount of edge preservation"))
#else
@@ -174,9 +178,9 @@
operation_class->name = "bilateral-filter";
operation_class->categories = "misc";
operation_class->description =
- "An edge preserving blur filter that can be used for noise reduction."
- " It is a gaussian blur where the contribution of neighbourhood pixels"
- " are weighted by the color difference from the center pixel.";
+ _("An edge preserving blur filter that can be used for noise reduction. "
+ "It is a gaussian blur where the contribution of neighbourhood pixels "
+ "are weighted by the color difference from the center pixel.");
}
#endif
Modified: trunk/operations/common/box-blur.c
==============================================================================
--- trunk/operations/common/box-blur.c (original)
+++ trunk/operations/common/box-blur.c Thu Oct 2 23:37:54 2008
@@ -15,10 +15,14 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_double (radius, "Radius", 0.0, 200.0, 4.0,
- "Radius of square pixel region, (width and height will be radius*2+1).")
+gegl_chant_double (radius, _("Radius"), 0.0, 200.0, 4.0,
+ _("Radius of square pixel region, (width and height will be radius*2+1)."))
#else
@@ -257,7 +261,7 @@
operation_class->categories = "blur";
operation_class->name = "box-blur";
operation_class->description =
- "Performs an averaging of a square box of pixels.";
+ _("Performs an averaging of a square box of pixels.");
}
#endif
Modified: trunk/operations/common/c2g.c
==============================================================================
--- trunk/operations/common/c2g.c (original)
+++ trunk/operations/common/c2g.c Thu Oct 2 23:37:54 2008
@@ -18,22 +18,26 @@
* Allesandro Rizzi <rizzi dti unimi it>
*/
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_int (radius, "Radius", 2, 5000.0, 384,
- "Neighbourhood taken into account")
-gegl_chant_int (samples, "Samples", 0, 1000, 3,
- "Number of samples to do")
-gegl_chant_int (iterations, "Iterations", 0, 1000, 23,
- "Number of iterations (length of exposure)")
-gegl_chant_boolean (same_spray, "Same spray", FALSE,
- "Use the same spray for all pixels")
-gegl_chant_double (rgamma, "Radial Gamma", 0.0, 8.0, 1.8,
- "Gamma applied to radial distribution")
-gegl_chant_double (strength, "Strength", -10.0, 10.0, 1.0,
- "Amount of correction 0=none 1.0=full")
-gegl_chant_double (gamma, "Gamma", 0.0, 10.0, 1.0,
- "Post correction gamma.")
+gegl_chant_int (radius, _("Radius"), 2, 5000.0, 384,
+ _("Neighbourhood taken into account"))
+gegl_chant_int (samples, _("Samples"), 0, 1000, 3,
+ _("Number of samples to do"))
+gegl_chant_int (iterations, _("Iterations"), 0, 1000, 23,
+ _("Number of iterations (length of exposure)"))
+gegl_chant_boolean (same_spray, _("Same spray"), FALSE,
+ _("Use the same spray for all pixels"))
+gegl_chant_double (rgamma, _("Radial Gamma"), 0.0, 8.0, 1.8,
+ _("Gamma applied to radial distribution"))
+gegl_chant_double (strength, _("Strength"), -10.0, 10.0, 1.0,
+ _("Amount of correction 0=none 1.0=full"))
+gegl_chant_double (gamma, _("Gamma"), 0.0, 10.0, 1.0,
+ _("Post correction gamma."))
#else
@@ -188,7 +192,8 @@
operation_class->name = "c2g";
operation_class->categories = "enhance";
operation_class->description =
- "Color to grayscale conversion, uses spatial color differences to perform local grayscale contrast enhancement.";
+ _("Color to grayscale conversion, uses spatial color differences "
+ "to perform local grayscale contrast enhancement.");
}
#endif
Modified: trunk/operations/common/checkerboard.c
==============================================================================
--- trunk/operations/common/checkerboard.c (original)
+++ trunk/operations/common/checkerboard.c Thu Oct 2 23:37:54 2008
@@ -15,20 +15,24 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_int (x, "Width", 1, G_MAXINT, 16,
- "Horizontal width of cells pixels.")
-gegl_chant_int (y, "Height", 1, G_MAXINT, 16,
- "Vertical width of cells in pixels.")
-gegl_chant_int (x_offset, "X offset", -G_MAXINT, G_MAXINT, 0,
- "Horizontal offset (from origin) for start of grid.")
-gegl_chant_int (y_offset, "Y offset", -G_MAXINT, G_MAXINT, 0,
- "Vertical offset (from origin) for start of grid.")
-gegl_chant_color (color1, "Color", "black",
- "One of the cell colors (defaults to 'black')")
-gegl_chant_color (color2, "Other color", "white",
- "The other cell color (defaults to 'white')")
+gegl_chant_int (x, _("Width"), 1, G_MAXINT, 16,
+ _("Horizontal width of cells pixels."))
+gegl_chant_int (y, _("Height"), 1, G_MAXINT, 16,
+ _("Vertical width of cells in pixels."))
+gegl_chant_int (x_offset, _("X offset"), -G_MAXINT, G_MAXINT, 0,
+ _("Horizontal offset (from origin) for start of grid."))
+gegl_chant_int (y_offset, _("Y offset"), -G_MAXINT, G_MAXINT, 0,
+ _("Vertical offset (from origin) for start of grid."))
+gegl_chant_color (color1, _("Color"), "black",
+ _("One of the cell colors (defaults to 'black')"))
+gegl_chant_color (color2, _("Other color"), "white",
+ _("The other cell color (defaults to 'white')"))
#else
@@ -128,7 +132,7 @@
operation_class->name = "checkerboard";
operation_class->categories = "render";
- operation_class->description = "Checkerboard renderer.";
+ operation_class->description = _("Checkerboard renderer");
}
#endif
Modified: trunk/operations/common/color-temperature.c
==============================================================================
--- trunk/operations/common/color-temperature.c (original)
+++ trunk/operations/common/color-temperature.c Thu Oct 2 23:37:54 2008
@@ -189,7 +189,7 @@
operation_class->name = "color-temperature";
operation_class->categories = "color";
operation_class->description =
- "Allows changing the color temperature of an image.";
+ _("Allows changing the color temperature of an image.");
}
/* Coefficients of rational functions of degree 5 fitted per color channel to
Modified: trunk/operations/common/color.c
==============================================================================
--- trunk/operations/common/color.c (original)
+++ trunk/operations/common/color.c Thu Oct 2 23:37:54 2008
@@ -15,10 +15,14 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_color (value, "Color", "black",
- "The color to render (defaults to 'black')")
+gegl_chant_color (value, _("Color"), "black",
+ _("The color to render (defaults to 'black')"))
#else
#define GEGL_CHANT_TYPE_POINT_RENDER
@@ -84,7 +88,8 @@
operation_class->name = "color";
operation_class->categories = "render";
operation_class->description =
- "Generates a buffer entirely filled with the specified color, crop it to get smaller dimensions.";
+ _("Generates a buffer entirely filled with the specified color, "
+ "crop it to get smaller dimensions.");
}
#endif
Modified: trunk/operations/common/contrast-curve.c
==============================================================================
--- trunk/operations/common/contrast-curve.c (original)
+++ trunk/operations/common/contrast-curve.c Thu Oct 2 23:37:54 2008
@@ -15,11 +15,16 @@
*
* Copyright 2007 Mark Probst <mark probst gmail com>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_int (sampling_points, "Sample points", 0, 65536, 0,
- "Number of curve sampling points. 0 for exact calculation.")
-gegl_chant_curve (curve, "Curve", "The contrast curve.")
+gegl_chant_int (sampling_points, _("Sample points"), 0, 65536, 0,
+ _("Number of curve sampling points. 0 for exact calculation."))
+gegl_chant_curve (curve, _("Curve"), _("The contrast curve."))
#else
@@ -115,7 +120,7 @@
operation_class->name = "contrast-curve";
operation_class->categories = "color";
operation_class->description =
- "Adjusts the contrast of the image according to a curve.";
+ _("Adjusts the contrast of the image according to a curve.");
}
#endif
Modified: trunk/operations/common/difference-of-gaussians.c
==============================================================================
--- trunk/operations/common/difference-of-gaussians.c (original)
+++ trunk/operations/common/difference-of-gaussians.c Thu Oct 2 23:37:54 2008
@@ -15,10 +15,15 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_double(radius1, "Radius 1", 0.0, 10.0, 1.0, "Radius")
-gegl_chant_double(radius2, "Radius 2", 0.0, 10.0, 2.0, "Radius")
+gegl_chant_double(radius1, _("Radius 1"), 0.0, 10.0, 1.0, _("Radius"))
+gegl_chant_double(radius2, _("Radius 2"), 0.0, 10.0, 2.0, _("Radius"))
#else
@@ -90,7 +95,7 @@
operation_class->name = "difference-of-gaussians";
operation_class->categories = "meta:edge";
operation_class->description =
- "Does an edge detection based on the difference of two gaussian blurs.";
+ _("Does an edge detection based on the difference of two gaussian blurs.");
}
#endif
Modified: trunk/operations/common/dropshadow.c
==============================================================================
--- trunk/operations/common/dropshadow.c (original)
+++ trunk/operations/common/dropshadow.c Thu Oct 2 23:37:54 2008
@@ -15,15 +15,20 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_double (opacity, "Opacity", -10.0, 10.0, 0.5, "Opacity")
-gegl_chant_double (x, "X", -G_MAXDOUBLE, G_MAXDOUBLE, 20.0,
- "Horizontal shadow offset.")
-gegl_chant_double (y, "Y", -G_MAXDOUBLE, G_MAXDOUBLE, 20.0,
- "Vertical shadow offset.")
-gegl_chant_double (radius, "Radius", -G_MAXDOUBLE, G_MAXDOUBLE, 10.0,
- "Blur radius.")
+gegl_chant_double (opacity, _("Opacity"), -10.0, 10.0, 0.5, _("Opacity"))
+gegl_chant_double (x, _("X"), -G_MAXDOUBLE, G_MAXDOUBLE, 20.0,
+ _("Horizontal shadow offset."))
+gegl_chant_double (y, _("Y"), -G_MAXDOUBLE, G_MAXDOUBLE, 20.0,
+ _("Vertical shadow offset."))
+gegl_chant_double (radius, _("Radius"), -G_MAXDOUBLE, G_MAXDOUBLE, 10.0,
+ _("Blur radius."))
#else
@@ -99,7 +104,7 @@
operation_class->name = "dropshadow";
operation_class->categories = "meta:effects";
operation_class->description =
- "Creates a dropshadow effect on the input buffer.";
+ _("Creates a dropshadow effect on the input buffer.");
}
#endif
Modified: trunk/operations/common/fractal-explorer.c
==============================================================================
--- trunk/operations/common/fractal-explorer.c (original)
+++ trunk/operations/common/fractal-explorer.c Thu Oct 2 23:37:54 2008
@@ -20,51 +20,54 @@
* Copyright 2006 Kevin Cozens <kcozens cvs gnome org>
*/
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
#define MAXNCOLORS 8192
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_int (width, "Width", 10, 10000000, 400, "Width")
-gegl_chant_int (height, "Height", 10, 10000000, 400, "Height")
+gegl_chant_int (width, _("Width"), 10, 10000000, 400, _("Width"))
+gegl_chant_int (height, _("Height"), 10, 10000000, 400, _("Height"))
-gegl_chant_int (fractaltype, "Fractal type", 0, 8, 0, "Fractal Type")
+gegl_chant_int (fractaltype, _("Fractal type"), 0, 8, 0, _("Fractal Type"))
-gegl_chant_double (xmin, "Left", -3.0, 3.0, -2.0, "Left")
-gegl_chant_double (xmax, "Right", -3.0, 3.0, 2.0, "Right")
-gegl_chant_double (ymin, "Top", -3.0, 3.0, -2.0, "Top")
-gegl_chant_double (ymax, "Bottom", -3.0, 3.0, 2.0, "Bottom")
-
-gegl_chant_int (iter, "Iterations", 1, 1000, 50, "Iterations")
-
-gegl_chant_double (cx, "CX", -2.5, 2.5, -0.75, "CX (only Julia)")
-gegl_chant_double (cy, "CY", -2.5, 2.5, 0.2, "CY (only Julia)")
-
-gegl_chant_double (redstretch, "Red stretch", 0.0, 1.0, 1.0,
- "Red stretching factor")
-gegl_chant_double (greenstretch, "Green stretch", 0.0, 1.0, 1.0,
- "Green stretching factor")
-gegl_chant_double (bluestretch, "Blue stretch", 0.0, 1.0, 1.0,
- "Blue stretching factor")
-
-gegl_chant_int (redmode, "Red mode", 0, 2, 1,
- "Red application mode (0:SIN; 1:COS; 2:NONE)")
-gegl_chant_int (greenmode, "Green mode", 0, 2, 1,
- "Green application mode (0:SIN; 1:COS; 2:NONE)")
-gegl_chant_int (bluemode, "Blue mode", 0, 2, 0,
- "Blue application mode (0:SIN; 1:COS; 2:NONE)")
-
-gegl_chant_boolean (redinvert, "Red inversion", FALSE,
- "Red inversion")
-gegl_chant_boolean (greeninvert, "Green inversion", FALSE,
- "Green inversion")
-gegl_chant_boolean (blueinvert, "Blue inversion", FALSE,
- "Blue inversion")
+gegl_chant_double (xmin, _("Left"), -3.0, 3.0, -2.0, _("Left"))
+gegl_chant_double (xmax, _("Right"), -3.0, 3.0, 2.0, _("Right"))
+gegl_chant_double (ymin, _("Top"), -3.0, 3.0, -2.0, _("Top"))
+gegl_chant_double (ymax, _("Bottom"), -3.0, 3.0, 2.0, _("Bottom"))
+
+gegl_chant_int (iter, _("Iterations"), 1, 1000, 50, _("Iterations"))
+
+gegl_chant_double (cx, _("CX"), -2.5, 2.5, -0.75, _("CX (only Julia)"))
+gegl_chant_double (cy, _("CY"), -2.5, 2.5, 0.2, _("CY (only Julia)"))
+
+gegl_chant_double (redstretch, _("Red stretch"), 0.0, 1.0, 1.0,
+ _("Red stretching factor"))
+gegl_chant_double (greenstretch, _("Green stretch"), 0.0, 1.0, 1.0,
+ _("Green stretching factor"))
+gegl_chant_double (bluestretch, _("Blue stretch"), 0.0, 1.0, 1.0,
+ _("Blue stretching factor"))
+
+gegl_chant_int (redmode, _("Red mode"), 0, 2, 1,
+ _("Red application mode (0:SIN; 1:COS; 2:NONE)"))
+gegl_chant_int (greenmode, _("Green mode"), 0, 2, 1,
+ _("Green application mode (0:SIN; 1:COS; 2:NONE)"))
+gegl_chant_int (bluemode, _("Blue mode"), 0, 2, 0,
+ _("Blue application mode (0:SIN; 1:COS; 2:NONE)"))
+
+gegl_chant_boolean (redinvert, _("Red inversion"), FALSE,
+ _("Red inversion"))
+gegl_chant_boolean (greeninvert, _("Green inversion"), FALSE,
+ _("Green inversion"))
+gegl_chant_boolean (blueinvert, _("Blue inversion"), FALSE,
+ _("Blue inversion"))
-gegl_chant_int (ncolors, "Colors", 2, MAXNCOLORS, 256,
- "Number of colors")
+gegl_chant_int (ncolors, _("Colors"), 2, MAXNCOLORS, 256,
+ _("Number of colors"))
-gegl_chant_boolean (useloglog, "Loglog smoothing", FALSE,
- "Use loglog smoothing")
+gegl_chant_boolean (useloglog, _("Loglog smoothing"), FALSE,
+ _("Use loglog smoothing"))
#else
@@ -464,7 +467,7 @@
operation_class->name = "fractal-explorer";
operation_class->categories = "render";
- operation_class->description = "Fractal Explorer";
+ operation_class->description = _("Fractal Explorer");
operation_class->no_cache = TRUE;
operation_class->get_cached_region = NULL;
Modified: trunk/operations/common/gaussian-blur.c
==============================================================================
--- trunk/operations/common/gaussian-blur.c (original)
+++ trunk/operations/common/gaussian-blur.c Thu Oct 2 23:37:54 2008
@@ -21,15 +21,19 @@
* becomes very inaccurate.
*/
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_double (std_dev_x, "Size X", 0.0, 200.0, 4.0,
- "Standard deviation for the horizontal axis. (multiply by ~2 to get radius)")
-gegl_chant_double (std_dev_y, "Size Y", 0.0, 200.0, 4.0,
- "Standard deviation for the vertical axis. (multiply by ~2 to get radius.)")
-gegl_chant_string (filter, "Filter", "auto",
- "Optional parameter to override the automatic selection of blur filter."
- " Choices are fir, iir, auto")
+gegl_chant_double (std_dev_x, _("Size X"), 0.0, 200.0, 4.0,
+ _("Standard deviation for the horizontal axis. (multiply by ~2 to get radius)"))
+gegl_chant_double (std_dev_y, _("Size Y"), 0.0, 200.0, 4.0,
+ _("Standard deviation for the vertical axis. (multiply by ~2 to get radius.)"))
+gegl_chant_string (filter, _("Filter"), "auto",
+ _("Optional parameter to override the automatic selection of blur filter. "
+ "Choices are fir, iir, auto"))
#else
@@ -496,7 +500,8 @@
operation_class->categories = "blur";
operation_class->name = "gaussian-blur";
operation_class->description =
- "Performs an averaging of neighbouring pixels with the normal distribution as weighting.";
+ _("Performs an averaging of neighbouring pixels with the "
+ "normal distribution as weighting.");
}
#endif
Modified: trunk/operations/common/grey.c
==============================================================================
--- trunk/operations/common/grey.c (original)
+++ trunk/operations/common/grey.c Thu Oct 2 23:37:54 2008
@@ -15,6 +15,11 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
/* no properties */
@@ -59,7 +64,7 @@
operation_class->name = "grey";
operation_class->categories = "color";
- operation_class->description = "Turns the image greyscale";
+ operation_class->description = _("Turns the image greyscale");
}
#endif
Modified: trunk/operations/common/introspect.c
==============================================================================
--- trunk/operations/common/introspect.c (original)
+++ trunk/operations/common/introspect.c Thu Oct 2 23:37:54 2008
@@ -15,10 +15,15 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_object(node, "Node", "GeglNode to introspect")
-gegl_chant_pointer(buf, "Buffer", "Buffer")
+gegl_chant_object(node, _("Node"), _("GeglNode to introspect"))
+gegl_chant_pointer(buf, _("Buffer"), _("Buffer"))
#else
@@ -118,7 +123,7 @@
operation_class->name = "introspect";
operation_class->categories = "render";
- operation_class->description = "GEGL graph visualizer.";
+ operation_class->description = _("GEGL graph visualizer.");
}
#endif
Modified: trunk/operations/common/invert.c
==============================================================================
--- trunk/operations/common/invert.c (original)
+++ trunk/operations/common/invert.c Thu Oct 2 23:37:54 2008
@@ -15,6 +15,11 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
/* no properties */
@@ -93,8 +98,8 @@
operation_class->name = "invert";
operation_class->categories = "color";
operation_class->description =
- "Inverts the components (except alpha), the result is the"
- " corresponding \"negative\" image.";
+ _("Inverts the components (except alpha), the result is the "
+ "corresponding \"negative\" image.");
#ifdef HAS_G4FLOAT
gegl_operation_class_add_processor (operation_class,
Modified: trunk/operations/common/layer.c
==============================================================================
--- trunk/operations/common/layer.c (original)
+++ trunk/operations/common/layer.c Thu Oct 2 23:37:54 2008
@@ -20,20 +20,25 @@
* with the newer caching system
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_string(composite_op, "Operation", "over",
- "Composite operation to use")
-gegl_chant_double(opacity, "Opacity", 0.0, 1.0, 1.0,
- "Opacity")
-gegl_chant_double(x, "X", -G_MAXDOUBLE, G_MAXDOUBLE, 0.0,
- "Horizontal position")
-gegl_chant_double(y, "Y", -G_MAXDOUBLE, G_MAXDOUBLE, 0.0,
- "Vertical position")
-gegl_chant_double(scale, "scale", -G_MAXDOUBLE, G_MAXDOUBLE, 1.0,
- "Scale 1:1 size")
-gegl_chant_path(src, "Source", "",
- "Source datafile (png, jpg, raw, svg, bmp, tif, ...)")
+gegl_chant_string(composite_op, _("Operation"), "over",
+ _("Composite operation to use"))
+gegl_chant_double(opacity, _("Opacity"), 0.0, 1.0, 1.0,
+ _("Opacity"))
+gegl_chant_double(x, _("X"), -G_MAXDOUBLE, G_MAXDOUBLE, 0.0,
+ _("Horizontal position"))
+gegl_chant_double(y, _("Y"), -G_MAXDOUBLE, G_MAXDOUBLE, 0.0,
+ _("Vertical position"))
+gegl_chant_double(scale, _("scale"), -G_MAXDOUBLE, G_MAXDOUBLE, 1.0,
+ _("Scale 1:1 size"))
+gegl_chant_path(src, _("Source"), "",
+ _("Source datafile (png, jpg, raw, svg, bmp, tif, ...)"))
#else
@@ -234,7 +239,7 @@
operation_class->name = "layer";
operation_class->categories = "meta";
- operation_class->description = "A layer in the traditional sense.";
+ operation_class->description = _("A layer in the traditional sense.");
operation_class->attach = attach;
operation_class->prepare = prepare;
}
Modified: trunk/operations/common/levels.c
==============================================================================
--- trunk/operations/common/levels.c (original)
+++ trunk/operations/common/levels.c Thu Oct 2 23:37:54 2008
@@ -16,16 +16,21 @@
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_double (in_low, "Low input", -1.0, 4.0, 0.0,
- "Input luminance level to become lowest output")
-gegl_chant_double (in_high, "High input", -1.0, 4.0, 1.0,
- "Input luminance level to become white.")
-gegl_chant_double (out_low, "Low output", -1.0, 4.0, 0.0,
- "Lowest luminance level in output")
-gegl_chant_double (out_high, "High output",
- -1.0, 4.0, 1.0, "Highest luminance level in output")
+gegl_chant_double (in_low, _("Low input"), -1.0, 4.0, 0.0,
+ _("Input luminance level to become lowest output"))
+gegl_chant_double (in_high, _("High input"), -1.0, 4.0, 1.0,
+ _("Input luminance level to become white."))
+gegl_chant_double (out_low, _("Low output"), -1.0, 4.0, 0.0,
+ _("Lowest luminance level in output"))
+gegl_chant_double (out_high, _("High output"),
+ -1.0, 4.0, 1.0, _("Highest luminance level in output"))
#else
@@ -90,7 +95,7 @@
operation_class->name = "levels";
operation_class->categories = "color";
operation_class->description =
- "Remaps the intensity range of the image";
+ _("Remaps the intensity range of the image");
}
#endif
Modified: trunk/operations/common/load-buffer.c
==============================================================================
--- trunk/operations/common/load-buffer.c (original)
+++ trunk/operations/common/load-buffer.c Thu Oct 2 23:37:54 2008
@@ -15,10 +15,15 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_object(buffer, "Input buffer",
- "The GeglBuffer to load into the pipeline")
+gegl_chant_object(buffer, _("Input buffer"),
+ _("The GeglBuffer to load into the pipeline"))
#else
@@ -95,7 +100,7 @@
operation_class->name = "load-buffer";
operation_class->categories = "programming:input";
operation_class->description =
- "A source that uses an in-memory GeglBuffer, for use internally by GEGL.";
+ _("A source that uses an in-memory GeglBuffer, for use internally by GEGL.");
operation_class->no_cache = TRUE;
}
Modified: trunk/operations/common/load.c
==============================================================================
--- trunk/operations/common/load.c (original)
+++ trunk/operations/common/load.c Thu Oct 2 23:37:54 2008
@@ -15,9 +15,14 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_path (path, "File", "", "Path of file to load.")
+gegl_chant_path (path, _("File"), "", _("Path of file to load."))
#else
@@ -170,8 +175,8 @@
operation_class->name = "load";
operation_class->categories = "meta:input";
operation_class->description =
- "Multipurpose file loader, that uses other native handlers, and"
- " fallback conversion using image magick's convert.";
+ _("Multipurpose file loader, that uses other native handlers, and "
+ "fallback conversion using image magick's convert.");
operation_class->no_cache = TRUE;
}
Modified: trunk/operations/common/magick-load.c
==============================================================================
--- trunk/operations/common/magick-load.c (original)
+++ trunk/operations/common/magick-load.c Thu Oct 2 23:37:54 2008
@@ -15,9 +15,14 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_path (path, "File", "/tmp/gegl-logo.svg", "Path of file to load.")
+gegl_chant_path (path, _("File"), "/tmp/gegl-logo.svg", _("Path of file to load."))
#else
@@ -138,7 +143,7 @@
operation_class->name = "magick-load";
operation_class->categories = "hidden";
operation_class->description =
- "Image Magick wrapper using the png op.";
+ _("Image Magick wrapper using the png op.");
}
#endif
Modified: trunk/operations/common/mblur.c
==============================================================================
--- trunk/operations/common/mblur.c (original)
+++ trunk/operations/common/mblur.c Thu Oct 2 23:37:54 2008
@@ -15,9 +15,15 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_double (dampness, "Dampness", 0.0, 1.0, 0.95, "The value represents the contribution of the past to the new frame.")
+gegl_chant_double (dampness, _("Dampness"), 0.0, 1.0, 0.95,
+ _("The value represents the contribution of the past to the new frame."))
#else
@@ -135,7 +141,7 @@
operation_class->name = "mblur";
operation_class->categories = "blur:video";
- operation_class->description = "Accumulating motion blur";
+ operation_class->description = _("Accumulating motion blur");
}
#endif
Modified: trunk/operations/common/mono-mixer.c
==============================================================================
--- trunk/operations/common/mono-mixer.c (original)
+++ trunk/operations/common/mono-mixer.c Thu Oct 2 23:37:54 2008
@@ -16,11 +16,16 @@
* Copyright 2006 Mark Probst <mark probst gmail com>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_double (red, "Red", -10.0, 10.0, 0.5, "Amount of red")
-gegl_chant_double (green, "Green", -10.0, 10.0, 0.25, "Amount of green")
-gegl_chant_double (blue, "Blue", -10.0, 10.0, 0.25, "Amount of blue")
+gegl_chant_double (red, _("Red"), -10.0, 10.0, 0.5, _("Amount of red"))
+gegl_chant_double (green, _("Green"), -10.0, 10.0, 0.25, _("Amount of green"))
+gegl_chant_double (blue, _("Blue"), -10.0, 10.0, 0.25, _("Amount of blue"))
#else
@@ -95,7 +100,7 @@
operation_class->name = "mono-mixer";
operation_class->categories = "color";
- operation_class->description = "Monochrome channel mixer";
+ operation_class->description = _("Monochrome channel mixer");
}
#endif
Modified: trunk/operations/common/noise.c
==============================================================================
--- trunk/operations/common/noise.c (original)
+++ trunk/operations/common/noise.c Thu Oct 2 23:37:54 2008
@@ -15,13 +15,18 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_double (alpha, "Alpha", -G_MAXDOUBLE, G_MAXDOUBLE, 1.2, "")
-gegl_chant_double (scale, "Scale", -G_MAXDOUBLE, G_MAXDOUBLE, 1.8, "")
-gegl_chant_double (zoff, "Z offset", -G_MAXDOUBLE, G_MAXDOUBLE, -1, "")
-gegl_chant_double (seed, "Seed", -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, "")
-gegl_chant_int (n, "Iteration", 0, 20, 3, "")
+gegl_chant_double (alpha, _("Alpha"), -G_MAXDOUBLE, G_MAXDOUBLE, 1.2, _(""))
+gegl_chant_double (scale, _("Scale"), -G_MAXDOUBLE, G_MAXDOUBLE, 1.8, _(""))
+gegl_chant_double (zoff, _("Z offset"), -G_MAXDOUBLE, G_MAXDOUBLE, -1, _(""))
+gegl_chant_double (seed, _("Seed"), -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, _(""))
+gegl_chant_int (n, _("Iteration"), 0, 20, 3, _(""))
#else
@@ -94,7 +99,7 @@
operation_class->name = "perlin-noise";
operation_class->categories = "render";
- operation_class->description = "Perlin noise generator.";
+ operation_class->description = _("Perlin noise generator.");
operation_class->no_cache = TRUE;
operation_class->get_cached_region = NULL;
Modified: trunk/operations/common/opacity.c
==============================================================================
--- trunk/operations/common/opacity.c (original)
+++ trunk/operations/common/opacity.c Thu Oct 2 23:37:54 2008
@@ -15,10 +15,15 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_double (value, "Opacity", -10.0, 10.0, 0.5,
- "Global opacity value, used if no auxiliary input buffer is provided.")
+gegl_chant_double (value, _("Opacity"), -10.0, 10.0, 0.5,
+ _("Global opacity value, used if no auxiliary input buffer is provided."))
#else
@@ -92,8 +97,8 @@
operation_class->name = "opacity";
operation_class->categories = "transparency";
operation_class->description =
- "Weights the opacity of the input with either the value of the aux"
- " input or the global value property.";
+ _("Weights the opacity of the input with either the value of the aux"
+ " input or the global value property.");
}
#endif
Modified: trunk/operations/common/open-buffer.c
==============================================================================
--- trunk/operations/common/open-buffer.c (original)
+++ trunk/operations/common/open-buffer.c Thu Oct 2 23:37:54 2008
@@ -15,9 +15,14 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_string(path, "File", "", "a GeglBuffer on disk to open")
+gegl_chant_string(path, _("File"), "", _("a GeglBuffer on disk to open"))
#else
@@ -122,7 +127,7 @@
operation_class->name = "open-buffer";
operation_class->categories = "input";
- operation_class->description = "A source that uses an on-disk GeglBuffer.";
+ operation_class->description = _("A source that uses an on-disk GeglBuffer.");
operation_class->no_cache = TRUE;
}
Modified: trunk/operations/common/raw-load.c
==============================================================================
--- trunk/operations/common/raw-load.c (original)
+++ trunk/operations/common/raw-load.c Thu Oct 2 23:37:54 2008
@@ -17,9 +17,14 @@
*/
#include "config.h"
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_path (path, "File", "/tmp/test.raw", "Path of file to load.")
+gegl_chant_path (path, _("File"), "/tmp/test.raw", _("Path of file to load."))
#else
@@ -151,7 +156,7 @@
operation_class->name = "raw-load";
operation_class->categories = "hidden";
operation_class->description =
- "Raw image loader, wrapping dcraw with pipes.";
+ _("Raw image loader, wrapping dcraw with pipes.");
gegl_extension_handler_register (".raw", "raw-load");
gegl_extension_handler_register (".RAW", "raw-load");
Modified: trunk/operations/common/rectangle.c
==============================================================================
--- trunk/operations/common/rectangle.c (original)
+++ trunk/operations/common/rectangle.c Thu Oct 2 23:37:54 2008
@@ -20,18 +20,22 @@
* with the newer caching system
*/
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_double(x, "X", -G_MAXDOUBLE, G_MAXDOUBLE, 0.0,
- "Horizontal position")
-gegl_chant_double(y, "Y", -G_MAXDOUBLE, G_MAXDOUBLE, 0.0,
- "Vertical position")
-gegl_chant_double(width, "Width", 0, G_MAXDOUBLE, 0.0,
- "Horizontal extent")
-gegl_chant_double(height, "Height", 0, G_MAXDOUBLE, 0.0,
- "Vertical extent")
-gegl_chant_color(color, "Color", "white",
- "Color to render")
+gegl_chant_double(x, _("X"), -G_MAXDOUBLE, G_MAXDOUBLE, 0.0,
+ _("Horizontal position"))
+gegl_chant_double(y, _("Y"), -G_MAXDOUBLE, G_MAXDOUBLE, 0.0,
+ _("Vertical position"))
+gegl_chant_double(width, _("Width"), 0, G_MAXDOUBLE, 0.0,
+ _("Horizontal extent"))
+gegl_chant_double(height, _("Height"), 0, G_MAXDOUBLE, 0.0,
+ _("Vertical extent"))
+gegl_chant_color(color, _("Color"), "white",
+ _("Color to render"))
#else
@@ -124,7 +128,8 @@
operation_class->name = "rectangle";
operation_class->categories = "input";
- operation_class->description = "A rectangular source of a fixed size with a solid color";
+ operation_class->description =
+ _("A rectangular source of a fixed size with a solid color");
operation_class->attach = attach;
operation_class->prepare = prepare;
}
Modified: trunk/operations/common/remap.c
==============================================================================
--- trunk/operations/common/remap.c (original)
+++ trunk/operations/common/remap.c Thu Oct 2 23:37:54 2008
@@ -16,10 +16,17 @@
* Copyright 2006 Ãyvind KolÃs
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-//gegl_chant_string ("xlow", "hm", "low description")
-//gegl_chant_string ("xhigh", "hm", "high description")
+#if 0
+//gegl_chant_string ("xlow", "hm", _("low description"))
+//gegl_chant_string ("xhigh", "hm", _("high description"))
+#endif
#else
@@ -186,8 +193,8 @@
operation_class->name = "remap";
operation_class->categories = "color";
operation_class->description =
- "Linearly remap the R,G,B based on per pixel minimum and maximum"
- " values from the high/low input pads";
+ _("Linearly remap the R,G,B based on per pixel minimum and maximum"
+ " values from the high/low input pads");
}
#endif
Modified: trunk/operations/common/save-buffer.c
==============================================================================
--- trunk/operations/common/save-buffer.c (original)
+++ trunk/operations/common/save-buffer.c Thu Oct 2 23:37:54 2008
@@ -15,10 +15,15 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_pointer (buffer, "Buffer location",
- "The location where to store the output GeglBuffer")
+gegl_chant_pointer (buffer, _("Buffer location"),
+ _("The location where to store the output GeglBuffer"))
#else
@@ -59,7 +64,7 @@
operation_class->name = "save-buffer";
operation_class->categories = "programming:output";
- operation_class->description = "A GEGL buffer destination surface.";
+ operation_class->description = _("A GEGL buffer destination surface.");
}
#endif
Modified: trunk/operations/common/snn-mean.c
==============================================================================
--- trunk/operations/common/snn-mean.c (original)
+++ trunk/operations/common/snn-mean.c Thu Oct 2 23:37:54 2008
@@ -17,12 +17,16 @@
* 2007 Ãyvind KolÃs <oeyvindk hig no>
*/
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_double (radius, "Radius", 0.0, 70.0, 8.0,
- "Radius of square pixel region, (width and height will be radius*2+1)")
-gegl_chant_int (pairs, "Pairs", 1, 2, 2,
- "Number of pairs higher number preserves more acute features")
+gegl_chant_double (radius, _("Radius"), 0.0, 70.0, 8.0,
+ _("Radius of square pixel region, (width and height will be radius*2+1)"))
+gegl_chant_int (pairs, _("Pairs"), 1, 2, 2,
+ _("Number of pairs; higher number preserves more acute features"))
#else
@@ -209,7 +213,8 @@
operation_class->name = "snn-mean";
operation_class->categories = "misc";
operation_class->description =
- "Noise reducing edge enhancing blur filter based on Symmetric Nearest Neighbours";
+ _("Noise reducing edge enhancing blur filter based "
+ " on Symmetric Nearest Neighbours");
}
#endif
Modified: trunk/operations/common/stress.c
==============================================================================
--- trunk/operations/common/stress.c (original)
+++ trunk/operations/common/stress.c Thu Oct 2 23:37:54 2008
@@ -18,22 +18,26 @@
* Allesandro Rizzi <rizzi dti unimi it>
*/
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_int (radius, "Radius", 2, 5000.0, 300,
- "Neighbourhood taken into account")
-gegl_chant_int (samples, "Samples", 0, 1000, 10,
- "Number of samples to do")
-gegl_chant_int (iterations, "Iterations", 0, 1000, 10,
- "Number of iterations (length of exposure)")
-gegl_chant_boolean (same_spray, "Same spray", TRUE,
- "Use the same spray for all pixels")
-gegl_chant_double (rgamma, "Radial Gamma", 0.0, 8.0, 2.0,
- "Gamma applied to radial distribution")
-gegl_chant_double (strength, "Strength", -10.0, 10.0, 1.0,
- "Amount of correction 0=none 1.0=full")
-gegl_chant_double (gamma, "Gamma", 0.0, 10.0, 1.0,
- "Post correction gamma.")
+gegl_chant_int (radius, _("Radius"), 2, 5000.0, 300,
+ _("Neighbourhood taken into account"))
+gegl_chant_int (samples, _("Samples"), 0, 1000, 10,
+ _("Number of samples to do"))
+gegl_chant_int (iterations, _("Iterations"), 0, 1000, 10,
+ _("Number of iterations (length of exposure)"))
+gegl_chant_boolean (same_spray, _("Same spray"), TRUE,
+ _("Use the same spray for all pixels"))
+gegl_chant_double (rgamma, _("Radial Gamma"), 0.0, 8.0, 2.0,
+ _("Gamma applied to radial distribution"))
+gegl_chant_double (strength, _("Strength"), -10.0, 10.0, 1.0,
+ _("Amount of correction 0=none 1.0=full"))
+gegl_chant_double (gamma, _("Gamma"), 0.0, 10.0, 1.0,
+ _("Post correction gamma"))
#else
@@ -180,7 +184,7 @@
operation_class->name = "stress";
operation_class->categories = "enhance";
operation_class->description =
- "Spatio Temporal Retinex-like Envelope with Stochastic Sampling.";
+ _("Spatio Temporal Retinex-like Envelope with Stochastic Sampling.");
}
#endif
Modified: trunk/operations/common/stretch-contrast.c
==============================================================================
--- trunk/operations/common/stretch-contrast.c (original)
+++ trunk/operations/common/stretch-contrast.c Thu Oct 2 23:37:54 2008
@@ -15,6 +15,11 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
#else
@@ -149,9 +154,9 @@
operation_class->name = "stretch-contrast";
operation_class->categories = "color:enhance";
operation_class->description =
- "Scales the components of the buffer to be in the 0.0-1.0 range."
- " This improves images that make poor use of the available contrast"
- " (little contrast, very dark, or very bright images).";
+ _("Scales the components of the buffer to be in the 0.0-1.0 range. "
+ "This improves images that make poor use of the available contrast "
+ "(little contrast, very dark, or very bright images).");
}
#endif
Modified: trunk/operations/common/svg-huerotate.c
==============================================================================
--- trunk/operations/common/svg-huerotate.c (original)
+++ trunk/operations/common/svg-huerotate.c Thu Oct 2 23:37:54 2008
@@ -17,9 +17,14 @@
* Copyright 2006 Geert Jordaens <geert jordaens telenet be>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_string (values, "Values", "", "list of <number>s")
+gegl_chant_string (values, _("Values"), "", _("list of <number>s"))
#else
@@ -106,7 +111,7 @@
operation_class->name = "svg-huerotate";
operation_class->categories = "compositors:svgfilter";
- operation_class->description = "SVG color matrix operation svg_huerotate";
+ operation_class->description = _("SVG color matrix operation svg_huerotate");
}
#endif
Modified: trunk/operations/common/svg-luminancetoalpha.c
==============================================================================
--- trunk/operations/common/svg-luminancetoalpha.c (original)
+++ trunk/operations/common/svg-luminancetoalpha.c Thu Oct 2 23:37:54 2008
@@ -17,9 +17,14 @@
* Copyright 2006 Geert Jordaens <geert jordaens telenet be>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_string (values, "Values", "", "list of <number>s")
+gegl_chant_string (values, _("Values"), "", _("list of <number>s"))
#else
@@ -85,7 +90,7 @@
operation_class->name = "svg-luminancetoalpha";
operation_class->categories = "compositors:svgfilter";
operation_class->description =
- "SVG color matrix operation svg_luminancetoalpha";
+ _("SVG color matrix operation svg_luminancetoalpha");
}
#endif
Modified: trunk/operations/common/svg-matrix.c
==============================================================================
--- trunk/operations/common/svg-matrix.c (original)
+++ trunk/operations/common/svg-matrix.c Thu Oct 2 23:37:54 2008
@@ -17,9 +17,14 @@
* Copyright 2006 Geert Jordaens <geert jordaens telenet be>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_string (values, "Values", "", "list of <number>s")
+gegl_chant_string (values, _("Values"), "", _("list of <number>s"))
#else
@@ -122,7 +127,7 @@
operation_class->name = "svg-matrix";
operation_class->categories = "compositors:svgfilter";
- operation_class->description = "SVG color matrix operation svg_matrix";
+ operation_class->description = _("SVG color matrix operation svg_matrix");
}
#endif
Modified: trunk/operations/common/svg-saturate.c
==============================================================================
--- trunk/operations/common/svg-saturate.c (original)
+++ trunk/operations/common/svg-saturate.c Thu Oct 2 23:37:54 2008
@@ -17,9 +17,13 @@
* Copyright 2006 Geert Jordaens <geert jordaens telenet be>
*/
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_string (values, "Values", "", "list of <number>s")
+gegl_chant_string (values, _("Values"), "", _("list of <number>s"))
#else
@@ -118,7 +122,7 @@
operation_class->name = "svg-saturate";
operation_class->categories = "compositors:svgfilter";
- operation_class->description = "SVG color matrix operation svg_saturate";
+ operation_class->description = _("SVG color matrix operation svg_saturate");
}
#endif
Modified: trunk/operations/common/threshold.c
==============================================================================
--- trunk/operations/common/threshold.c (original)
+++ trunk/operations/common/threshold.c Thu Oct 2 23:37:54 2008
@@ -15,10 +15,15 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_double (value, "Threshold", -10.0, 10.0, 0.5,
- "Global threshold level (used when there is no auxiliary input buffer).")
+gegl_chant_double (value, _("Threshold"), -10.0, 10.0, 0.5,
+ _("Global threshold level (used when there is no auxiliary input buffer)."))
#else
@@ -98,8 +103,8 @@
operation_class->name = "threshold";
operation_class->categories = "color";
operation_class->description =
- "Thresholds the image to white/black based on either the global value"
- " set in the value property, or per pixel from the aux input.";
+ _("Thresholds the image to white/black based on either the global value "
+ "set in the value property, or per pixel from the aux input.");
}
#endif
Modified: trunk/operations/common/tonemap.c
==============================================================================
--- trunk/operations/common/tonemap.c (original)
+++ trunk/operations/common/tonemap.c Thu Oct 2 23:37:54 2008
@@ -15,11 +15,16 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_double(radius, "Radius", 0.0, 100.0, 20.0, "radius")
-gegl_chant_double(blur, "Blur", 0.0, 100.0, 15.0, "blur")
-gegl_chant_double(amount, "Amount", -1.0, 2.0, 0.5, "amount")
+gegl_chant_double(radius, _("Radius"), 0.0, 100.0, 20.0, _("radius"))
+gegl_chant_double(blur, _("Blur"), 0.0, 100.0, 15.0, _("blur"))
+gegl_chant_double(amount, _("Amount"), -1.0, 2.0, 0.5, _("amount"))
#else
@@ -127,7 +132,7 @@
operation_class->name = "tonemap";
operation_class->categories = "meta:enhance";
- operation_class->description = "Local contrast enhancement";
+ operation_class->description = _("Local contrast enhancement");
}
#endif
Modified: trunk/operations/common/unsharp-mask.c
==============================================================================
--- trunk/operations/common/unsharp-mask.c (original)
+++ trunk/operations/common/unsharp-mask.c Thu Oct 2 23:37:54 2008
@@ -15,10 +15,16 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_double(std_dev, "Std. Dev.", 0.0, 100.0, 1.0, "Standard deviation (spatial scale factor)")
-gegl_chant_double(scale, "Scale", 0.0, 100.0, 1.0, "Scale, strength of effect.")
+gegl_chant_double(std_dev, _("Std. Dev."), 0.0, 100.0, 1.0,
+ _("Standard deviation (spatial scale factor)"))
+gegl_chant_double(scale, _("Scale"), 0.0, 100.0, 1.0, _("Scale, strength of effect."))
#else
@@ -97,8 +103,8 @@
operation_class->name = "unsharp-mask";
operation_class->categories = "meta:enhance";
operation_class->description =
- "Performs an unsharp mask on the input buffer (sharpens an image by"
- " adding false mach-bands around edges).";
+ _("Performs an unsharp mask on the input buffer (sharpens an image by "
+ "adding false mach-bands around edges).");
}
#endif
Modified: trunk/operations/common/value-invert.c
==============================================================================
--- trunk/operations/common/value-invert.c (original)
+++ trunk/operations/common/value-invert.c Thu Oct 2 23:37:54 2008
@@ -30,6 +30,11 @@
*
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
/* no properties */
@@ -125,7 +130,8 @@
operation_class->name = "value-invert";
operation_class->categories = "color";
operation_class->description =
- "Inverts just the value component, the result is the corresponding `inverted' image.";
+ _("Inverts just the value component, the result is the corresponding "
+ "`inverted' image.");
}
#endif
Modified: trunk/operations/common/whitebalance.c
==============================================================================
--- trunk/operations/common/whitebalance.c (original)
+++ trunk/operations/common/whitebalance.c Thu Oct 2 23:37:54 2008
@@ -16,13 +16,17 @@
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_double (high_a_delta, "High a delta", -2.0, 2.0, 0.0, "")
-gegl_chant_double (high_b_delta, "High b delta", -2.0, 2.0, 0.0, "")
-gegl_chant_double (low_a_delta, "Low a delta", -2.0, 2.0, 0.0, "")
-gegl_chant_double (low_b_delta, "Low b delta", -2.0, 2.0, 0.0, "")
-gegl_chant_double (saturation, "Saturation", -3.0, 3.0, 1.0, "")
+gegl_chant_double (high_a_delta, _("High a delta"), -2.0, 2.0, 0.0, _(""))
+gegl_chant_double (high_b_delta, _("High b delta"), -2.0, 2.0, 0.0, _(""))
+gegl_chant_double (low_a_delta, _("Low a delta"), -2.0, 2.0, 0.0, _(""))
+gegl_chant_double (low_b_delta, _("Low b delta"), -2.0, 2.0, 0.0, _(""))
+gegl_chant_double (saturation, _("Saturation"), -3.0, 3.0, 1.0, _(""))
#else
@@ -97,7 +101,7 @@
operation_class->name = "whitebalance";
operation_class->categories = "color";
operation_class->description =
- "Allows changing the whitepoint and blackpoint of an image.";
+ _("Allows changing the whitepoint and blackpoint of an image.");
}
#endif
Modified: trunk/operations/common/write-buffer.c
==============================================================================
--- trunk/operations/common/write-buffer.c (original)
+++ trunk/operations/common/write-buffer.c Thu Oct 2 23:37:54 2008
@@ -15,10 +15,15 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_object (buffer, "Buffer location",
- "Write to an existing GeglBuffer")
+gegl_chant_object (buffer, _("Buffer location"),
+ _("Write to an existing GeglBuffer"))
#else
@@ -59,7 +64,7 @@
operation_class->name = "write-buffer";
operation_class->categories = "programming:output";
- operation_class->description = "A GEGL buffer destination surface.";
+ operation_class->description = _("A GEGL buffer destination surface.");
}
#endif
Modified: trunk/operations/core/clone.c
==============================================================================
--- trunk/operations/core/clone.c (original)
+++ trunk/operations/core/clone.c Thu Oct 2 23:37:54 2008
@@ -16,10 +16,14 @@
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_string (ref, "Reference", "ID",
- "The reference ID used as input (for use in XML).")
+gegl_chant_string (ref, _("Reference"), "ID",
+ _("The reference ID used as input (for use in XML)."))
#else
@@ -101,7 +105,7 @@
operation_class->name = "clone";
operation_class->categories = "core";
- operation_class->description = "Clone a buffer";
+ operation_class->description = _("Clone a buffer");
operation_class->no_cache = TRUE;
}
Modified: trunk/operations/core/convert-format.c
==============================================================================
--- trunk/operations/core/convert-format.c (original)
+++ trunk/operations/core/convert-format.c Thu Oct 2 23:37:54 2008
@@ -18,10 +18,15 @@
*
* This operation is just a forked grey op with format parameters.
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_string(format, "Output format", "RGBA float",
- "Babl ouput format string")
+gegl_chant_string(format, _("Output format"), "RGBA float",
+ _("Babl ouput format string"))
#else
@@ -70,7 +75,7 @@
operation_class->name = "convert-format";
operation_class->categories = "core:color";
operation_class->description =
- "Convert the data to the specified format";
+ _("Convert the data to the specified format");
}
#endif
Modified: trunk/operations/core/crop.c
==============================================================================
--- trunk/operations/core/crop.c (original)
+++ trunk/operations/core/crop.c Thu Oct 2 23:37:54 2008
@@ -16,12 +16,16 @@
* Copyright 2006 Ãyvind KolÃs
*/
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_double (x, "X", -G_MAXFLOAT, G_MAXFLOAT, 0.0, "X")
-gegl_chant_double (y, "Y", -G_MAXFLOAT, G_MAXFLOAT, 0.0, "Y")
-gegl_chant_double (width, "Width", -G_MAXFLOAT, G_MAXFLOAT, 10.0, "Width")
-gegl_chant_double (height, "Height", -G_MAXFLOAT, G_MAXFLOAT, 10.0, "Height")
+gegl_chant_double (x, _("X"), -G_MAXFLOAT, G_MAXFLOAT, 0.0, _("X"))
+gegl_chant_double (y, _("Y"), -G_MAXFLOAT, G_MAXFLOAT, 0.0, _("Y"))
+gegl_chant_double (width, _("Width"), -G_MAXFLOAT, G_MAXFLOAT, 10.0, _("Width"))
+gegl_chant_double (height, _("Height"), -G_MAXFLOAT, G_MAXFLOAT, 10.0, _("Height"))
#else
@@ -148,7 +152,7 @@
operation_class->name = "crop";
operation_class->categories = "core";
- operation_class->description = "Crop a buffer";
+ operation_class->description = _("Crop a buffer");
operation_class->no_cache = TRUE;
}
Modified: trunk/operations/core/nop.c
==============================================================================
--- trunk/operations/core/nop.c (original)
+++ trunk/operations/core/nop.c Thu Oct 2 23:37:54 2008
@@ -15,6 +15,11 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
/* no properties */
@@ -62,7 +67,7 @@
operation_class->name = "nop";
operation_class->categories = "core";
- operation_class->description = "No operation (can be used as a routing point)";
+ operation_class->description = _("No operation (can be used as a routing point)");
}
#endif
Modified: trunk/operations/core/shift.c
==============================================================================
--- trunk/operations/core/shift.c (original)
+++ trunk/operations/core/shift.c Thu Oct 2 23:37:54 2008
@@ -16,10 +16,15 @@
* Copyright 2006 Ãyvind KolÃs
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_double (x, "X", -G_MAXFLOAT, G_MAXFLOAT, 0.0, "X-axis shift")
-gegl_chant_double (y, "Y", -G_MAXFLOAT, G_MAXFLOAT, 0.0, "Y-axis shift")
+gegl_chant_double (x, _("X"), -G_MAXFLOAT, G_MAXFLOAT, 0.0, _("X-axis shift"))
+gegl_chant_double (y, _("Y"), -G_MAXFLOAT, G_MAXFLOAT, 0.0, _("Y-axis shift"))
#else
@@ -174,7 +179,7 @@
operation_class->name = "shift";
operation_class->categories = "core";
- operation_class->description = "Shift the contents of a buffer";
+ operation_class->description = _("Shift the contents of a buffer");
operation_class->no_cache = TRUE;
}
Modified: trunk/operations/external/display.c
==============================================================================
--- trunk/operations/external/display.c (original)
+++ trunk/operations/external/display.c Thu Oct 2 23:37:54 2008
@@ -15,12 +15,17 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_string (window_title, "", "window_title",
- "Title to be given to output window")
-gegl_chant_string (icon_title, "", "icon_title",
- "Icon to be used for output window")
+gegl_chant_string (window_title, _(""), "window_title",
+ _("Title to be given to output window"))
+gegl_chant_string (icon_title, _(""), "icon_title",
+ _("Icon to be used for output window"))
gegl_chant_pointer (screen, "", "private")
gegl_chant_int(w, "", 0, 1000, 0, "private")
@@ -170,8 +175,8 @@
operation_class->name = "display";
operation_class->categories = "output";
operation_class->description =
- "Displays the input buffer in an SDL window (restricted to one"
- " display op/process, due to SDL implementation issues, a gtk+"
- " based replacement would be nice.";
+ _("Displays the input buffer in an SDL window (restricted to one"
+ " display op/process, due to SDL implementation issues, a gtk+"
+ " based replacement would be nice.");
}
#endif
Modified: trunk/operations/external/ff-load.c
==============================================================================
--- trunk/operations/external/ff-load.c (original)
+++ trunk/operations/external/ff-load.c Thu Oct 2 23:37:54 2008
@@ -15,10 +15,15 @@
*
* Copyright 2003, 2006 Øvind Kolå<pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_path (path, "File", "/home/pippin/input.avi", "Path of file to load.")
-gegl_chant_int (frame, "Frame", 0, 1000000, 0, "frame number")
+gegl_chant_path (path, _("File"), "/home/pippin/input.avi", _("Path of file to load."))
+gegl_chant_int (frame, _("Frame"), 0, 1000000, 0, _("frame number"))
#else
@@ -437,7 +442,7 @@
operation_class->name = "ff-load";
operation_class->categories = "input:video";
- operation_class->description = "FFmpeg video frame importer.";
+ operation_class->description = _("FFmpeg video frame importer.");
}
#endif
Modified: trunk/operations/external/jpg-load.c
==============================================================================
--- trunk/operations/external/jpg-load.c (original)
+++ trunk/operations/external/jpg-load.c Thu Oct 2 23:37:54 2008
@@ -15,9 +15,14 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_path (path, "File", "", "Path of file to load.")
+gegl_chant_path (path, _("File"), "", _("Path of file to load."))
#else
@@ -195,7 +200,7 @@
operation_class->name = "jpg-load";
operation_class->categories = "hidden";
- operation_class->description = "JPG image loader";
+ operation_class->description = _("JPG image loader");
// static gboolean done=FALSE;
// if (done)
Modified: trunk/operations/external/pixbuf.c
==============================================================================
--- trunk/operations/external/pixbuf.c (original)
+++ trunk/operations/external/pixbuf.c Thu Oct 2 23:37:54 2008
@@ -15,8 +15,15 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_pointer (pixbuf, "Pixbuf", "GdkPixbuf to use")
+
+gegl_chant_pointer (pixbuf, _("Pixbuf"), _("GdkPixbuf to use"))
+
#else
#define GEGL_CHANT_TYPE_SOURCE
@@ -87,7 +94,7 @@
operation_class->name = "pixbuf";
operation_class->categories = "programming:input";
operation_class->description =
- "Uses the GdkPixbuf located at the memory location in <em>pixbuf</em>.";
+ _("Uses the GdkPixbuf located at the memory location in <em>pixbuf</em>.");
}
#endif
Modified: trunk/operations/external/png-load.c
==============================================================================
--- trunk/operations/external/png-load.c (original)
+++ trunk/operations/external/png-load.c Thu Oct 2 23:37:54 2008
@@ -17,9 +17,14 @@
* 2006 Dominik Ernst <dernst gmx de>
* 2006 Kevin Cozens <kcozens cvs gnome org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_path (path, "File", "", "Path of file to load.")
+gegl_chant_path (path, _("File"), "", _("Path of file to load."))
#else
@@ -417,7 +422,7 @@
operation_class->name = "png-load";
operation_class->categories = "hidden";
- operation_class->description = "PNG image loader.";
+ operation_class->description = _("PNG image loader.");
// static gboolean done=FALSE;
// if (done)
Modified: trunk/operations/external/png-save.c
==============================================================================
--- trunk/operations/external/png-save.c (original)
+++ trunk/operations/external/png-save.c Thu Oct 2 23:37:54 2008
@@ -16,12 +16,17 @@
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
* 2006 Dominik Ernst <dernst gmx de>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_string (path, "File", "",
- "Target path and filename, use '-' for stdout.")
-gegl_chant_int (compression, "Compression",
- 1, 9, 1, "PNG compression level from 1 to 9")
+gegl_chant_string (path, _("File"), "",
+ _("Target path and filename, use '-' for stdout."))
+gegl_chant_int (compression, _("Compression"),
+ 1, 9, 1, _("PNG compression level from 1 to 9"))
#else
@@ -188,7 +193,7 @@
operation_class->name = "png-save";
operation_class->categories = "output";
operation_class->description =
- "PNG image saver (passes the buffer through, saves as a side-effect.)";
+ _("PNG image saver (passes the buffer through, saves as a side-effect.)");
}
Modified: trunk/operations/external/save-pixbuf.c
==============================================================================
--- trunk/operations/external/save-pixbuf.c (original)
+++ trunk/operations/external/save-pixbuf.c Thu Oct 2 23:37:54 2008
@@ -15,10 +15,15 @@
*
* Copyright 2007 Ãtienne Bersac <bersace03 laposte net>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_pointer (pixbuf, "Pixbuf location",
- "The location where to store the output GdkPixbuf.")
+gegl_chant_pointer (pixbuf, _("Pixbuf location"),
+ _("The location where to store the output GdkPixbuf."))
#else
@@ -97,7 +102,7 @@
operation_class->name = "save-pixbuf";
operation_class->categories = "programming:output";
- operation_class->description = "Save output into a GdkPixbuf.";
+ operation_class->description = _("Save output into a GdkPixbuf.");
}
Modified: trunk/operations/external/svg-load.c
==============================================================================
--- trunk/operations/external/svg-load.c (original)
+++ trunk/operations/external/svg-load.c Thu Oct 2 23:37:54 2008
@@ -15,14 +15,19 @@
*
* Copyright 2006 Kevin Cozens <kcozens cvs gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_path (path, "File", "",
- "Path to SVG file to load")
-gegl_chant_int (width, "Width", 1, G_MAXINT, 100,
- "Width for rendered image")
-gegl_chant_int (height, "Height", 1, G_MAXINT, 100,
- "Height for rendered image")
+gegl_chant_path (path, _("File"), "",
+ _("Path to SVG file to load"))
+gegl_chant_int (width, _("Width"), 1, G_MAXINT, 100,
+ _("Width for rendered image"))
+gegl_chant_int (height, _("Height"), 1, G_MAXINT, 100,
+ _("Height for rendered image"))
#else
@@ -231,7 +236,7 @@
operation_class->name = "svg-load";
operation_class->categories = "input"; /* not hidden because it has extra API */
- operation_class->description = "Load an SVG file using librsvg";
+ operation_class->description = _("Load an SVG file using librsvg");
// static gboolean done=FALSE;
// if (done)
Modified: trunk/operations/external/text.c
==============================================================================
--- trunk/operations/external/text.c (original)
+++ trunk/operations/external/text.c Thu Oct 2 23:37:54 2008
@@ -15,24 +15,30 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_multiline (string, "Text", "Hello",
- "String to display (utf8)")
-gegl_chant_string (font, "Font family", "Sans",
- "Font family (utf8)")
-gegl_chant_double (size, "Size", 1.0, 2048.0, 10.0,
- "Approximate height of text in pixels.")
-gegl_chant_color (color, "Color", "white",
- "Color for the text (defaults to 'white')")
-gegl_chant_int (wrap, "Wrap width", -1, 1000000, -1,
- "Sets the width in pixels at which long lines will wrap. Use -1 for no wrapping.")
-gegl_chant_int (alignment, "Justification", 0, 2, 0,
- "Alignment for multi-line text (0=Left, 1=Center, 2=Right)")
-gegl_chant_int (width, "Width", 0, 1000000, 0,
- "Rendered width in pixels. (read only)")
-gegl_chant_int (height, "Height", 0, 1000000, 0,
- "Rendered height in pixels. (read only)")
+gegl_chant_multiline (string, _("Text"), "Hello",
+ _("String to display (utf8)"))
+gegl_chant_string (font, _("Font family"), "Sans",
+ _("Font family (utf8)"))
+gegl_chant_double (size, _("Size"), 1.0, 2048.0, 10.0,
+ _("Approximate height of text in pixels."))
+gegl_chant_color (color, _("Color"), "white",
+ _("Color for the text (defaults to 'white')"))
+gegl_chant_int (wrap, _("Wrap width"), -1, 1000000, -1,
+ _("Sets the width in pixels at which long lines will wrap. "
+ "Use -1 for no wrapping."))
+gegl_chant_int (alignment, _("Justification"), 0, 2, 0,
+ _("Alignment for multi-line text (0=Left, 1=Center, 2=Right)"))
+gegl_chant_int (width, _("Width"), 0, 1000000, 0,
+ _("Rendered width in pixels. (read only)"))
+gegl_chant_int (height, _("Height"), 0, 1000000, 0,
+ _("Rendered height in pixels. (read only)"))
#else
@@ -286,7 +292,7 @@
operation_class->name = "text";
operation_class->categories = "render";
- operation_class->description = "Display a string of text using pango and cairo.";
+ operation_class->description = _("Display a string of text using pango and cairo.");
operation_class->prepare = prepare;
operation_class->get_bounding_box = get_bounding_box;
operation_source_class->process = process;
Modified: trunk/operations/external/v4l.c
==============================================================================
--- trunk/operations/external/v4l.c (original)
+++ trunk/operations/external/v4l.c Thu Oct 2 23:37:54 2008
@@ -16,12 +16,18 @@
* Copyright 2004-2008 Ãyvind KolÃs <pippin gimp org>
* originally written for gggl
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_path (path, "Path", "/dev/video0", "Path to v4l device")
-gegl_chant_int (width, "Width", 0, G_MAXINT, 320, "Width for rendered image")
-gegl_chant_int (height, "Height", 0, G_MAXINT, 240, "Height for rendered image")
-gegl_chant_int (frame, "Frame", 0, G_MAXINT, 0, "current frame number, can be changed to trigger a reload of the image.")
+gegl_chant_path (path, _("Path"), "/dev/video0", _("Path to v4l device"))
+gegl_chant_int (width, _("Width"), 0, G_MAXINT, 320, _("Width for rendered image"))
+gegl_chant_int (height, _("Height"), 0, G_MAXINT, 240, _("Height for rendered image"))
+gegl_chant_int (frame, _("Frame"), 0, G_MAXINT, 0,
+ _("current frame number, can be changed to trigger a reload of the image."))
#else
@@ -287,7 +293,8 @@
operation_class->name = "v4l";
operation_class->categories = "input:video";
- operation_class->description = "Video4Linux input, webcams framegrabbers and similar devices.";
+ operation_class->description =
+ _("Video4Linux input, webcams framegrabbers and similar devices.");
}
Modified: trunk/operations/generated/math.rb
==============================================================================
--- trunk/operations/generated/math.rb (original)
+++ trunk/operations/generated/math.rb Thu Oct 2 23:37:54 2008
@@ -49,9 +49,13 @@
file.write copyright
file.write "
+#include \"config.h\"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_double (value, \"Value\", -G_MAXDOUBLE, G_MAXDOUBLE, #{item[2]}, \"global value used if aux doesn't contain data\")
+gegl_chant_double (value, _(\"Value\"), -G_MAXDOUBLE, G_MAXDOUBLE, #{item[2]}, _(\"global value used if aux doesn't contain data\"))
#else
@@ -145,7 +149,7 @@
operation_class->name = \"#{name}\";
operation_class->categories = \"compositors:math\";
operation_class->description =
- \"Math operation #{name} (#{formula})\";
+ _(\"Math operation #{name} (#{formula})\");
}
#endif
"
Modified: trunk/operations/generated/other-blend.rb
==============================================================================
--- trunk/operations/generated/other-blend.rb (original)
+++ trunk/operations/generated/other-blend.rb Thu Oct 2 23:37:54 2008
@@ -43,6 +43,10 @@
]
file_head1 = '
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
/* no properties */
@@ -190,7 +194,7 @@
file.write "
operation_class->name = \"#{name}\";
operation_class->description =
- \"Porter Duff operation #{name} (d = #{c_formula})\";
+ _(\"Porter Duff operation #{name} (d = #{c_formula})\");
"
file.write file_tail2
file.close
Modified: trunk/operations/generated/svg-12-blend.rb
==============================================================================
--- trunk/operations/generated/svg-12-blend.rb (original)
+++ trunk/operations/generated/svg-12-blend.rb Thu Oct 2 23:37:54 2008
@@ -70,6 +70,10 @@
]
file_head1 = '
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
/* no properties */
@@ -178,7 +182,7 @@
file.write "
operation_class->name = \"#{name}\";
operation_class->description =
- \"SVG blend operation #{name} (<tt>d = #{formula1}</tt>)\";
+ _(\"SVG blend operation #{name} (<tt>d = #{formula1}</tt>)\");
"
file.write file_tail2
file.close
@@ -240,7 +244,7 @@
file.write "
operation_class->name = \"#{name}\";
operation_class->description =
- \"SVG blend operation #{name} (<tt>if #{cond1}: d = #{formula1} otherwise: d = #{formula2}</tt>)\";
+ _(\"SVG blend operation #{name} (<tt>if #{cond1}: d = #{formula1} otherwise: d = #{formula2}</tt>)\");
"
file.write file_tail2
file.close
@@ -307,7 +311,7 @@
file.write "
operation_class->name = \"#{name}\";
operation_class->description =
- \"SVG blend operation #{name} (<tt>if #{cond1}: d = #{formula1}; if #{cond2}: d = #{formula2}; otherwise: d = #{formula3}</tt>)\";
+ _(\"SVG blend operation #{name} (<tt>if #{cond1}: d = #{formula1}; if #{cond2}: d = #{formula2}; otherwise: d = #{formula3}</tt>)\");
"
file.write file_tail2
file.close
@@ -365,7 +369,7 @@
file.write "
operation_class->name = \"#{name}\";
operation_class->description =
- \"SVG blend operation #{name} (<tt>d = #{formula1}</tt>)\";
+ _(\"SVG blend operation #{name} (<tt>d = #{formula1}</tt>)\");
"
file.write file_tail2
file.close
Modified: trunk/operations/generated/svg-12-porter-duff.rb
==============================================================================
--- trunk/operations/generated/svg-12-porter-duff.rb (original)
+++ trunk/operations/generated/svg-12-porter-duff.rb Thu Oct 2 23:37:54 2008
@@ -72,6 +72,10 @@
]
file_head1 = '
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
/* no properties */
@@ -219,7 +223,7 @@
file.write "
operation_class->name = \"#{name}\";
operation_class->description =
- \"Porter Duff operation #{name} (d = #{c_formula})\";
+ _(\"Porter Duff operation #{name} (d = #{c_formula})\");
"
file.write file_tail2
file.close
Modified: trunk/operations/workshop/box-max.c
==============================================================================
--- trunk/operations/workshop/box-max.c (original)
+++ trunk/operations/workshop/box-max.c Thu Oct 2 23:37:54 2008
@@ -15,10 +15,15 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_double (radius, "Radius", 0.0, 200.0, 4.0,
- "Radius of square pixel region (width and height will be radius*2+1)")
+gegl_chant_double (radius, _("Radius"), 0.0, 200.0, 4.0,
+ _("Radius of square pixel region (width and height will be radius*2+1)"))
#else
@@ -186,7 +191,7 @@
operation_class->name = "box-max";
operation_class->categories = "misc";
operation_class->description =
- "Sets the target pixel to the value of the maximum value in a box surrounding the pixel.";
+ _("Sets the target pixel to the value of the maximum value in a box surrounding the pixel.");
}
#endif
Modified: trunk/operations/workshop/box-min.c
==============================================================================
--- trunk/operations/workshop/box-min.c (original)
+++ trunk/operations/workshop/box-min.c Thu Oct 2 23:37:54 2008
@@ -15,10 +15,15 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_double (radius, "Radius", 0.0, 200.0, 4.0,
- "Radius of square pixel region (width and height will be radius*2+1)")
+gegl_chant_double (radius, _("Radius"), 0.0, 200.0, 4.0,
+ _("Radius of square pixel region (width and height will be radius*2+1)"))
#else
@@ -187,7 +192,7 @@
operation_class->name = "box-min";
operation_class->categories = "misc";
operation_class->description =
- "Sets the target pixel to the value of the minimum value in a box surrounding the pixel.";
+ _("Sets the target pixel to the value of the minimum value in a box surrounding the pixel.");
}
#endif
Modified: trunk/operations/workshop/box-percentile.c
==============================================================================
--- trunk/operations/workshop/box-percentile.c (original)
+++ trunk/operations/workshop/box-percentile.c Thu Oct 2 23:37:54 2008
@@ -17,12 +17,17 @@
* 2007 Ãyvind KolÃs <oeyvindk hig no>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_double (radius, "Radius", 0.0, 70.0, 4.0,
- "Radius of square pixel region (width and height will be radius*2+1)")
-gegl_chant_double (percentile, "Percentile", 0.0, 100.0, 50,
- "The percentile to compute, defaults to 50, which is a median filter.")
+gegl_chant_double (radius, _("Radius"), 0.0, 70.0, 4.0,
+ _("Radius of square pixel region (width and height will be radius*2+1)"))
+gegl_chant_double (percentile, _("Percentile"), 0.0, 100.0, 50,
+ _("The percentile to compute, defaults to 50, which is a median filter."))
#else
@@ -219,7 +224,8 @@
operation_class->name = "box-percentile";
operation_class->categories = "misc";
operation_class->description =
- "Sets the target pixel to the color corresponding to a given percentile when colors are sorted by luminance.";
+ _("Sets the target pixel to the color corresponding to a given percentile "
+ "when colors are sorted by luminance.");
}
#endif
Modified: trunk/operations/workshop/color-reduction.c
==============================================================================
--- trunk/operations/workshop/color-reduction.c (original)
+++ trunk/operations/workshop/color-reduction.c Thu Oct 2 23:37:54 2008
@@ -16,13 +16,18 @@
* Copyright 2008 Hans Petter Jansson <hpj copyleft no>
*/
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_int (red_bits, "Red bits", 1, 16, 16, "Number of bits for red channel")
-gegl_chant_int (green_bits, "Green bits", 1, 16, 16, "Number of bits for green channel")
-gegl_chant_int (blue_bits, "Blue bits", 1, 16, 16, "Number of bits for blue channel")
-gegl_chant_int (alpha_bits, "Alpha bits", 1, 16, 16, "Number of bits for alpha channel")
-gegl_chant_string (dither_type, "Dither", "none", "Dithering strategy (none, random, random-covariant, bayer, floyd-steinberg)")
+gegl_chant_int (red_bits, _("Red bits"), 1, 16, 16, _("Number of bits for red channel"))
+gegl_chant_int (green_bits, _("Green bits"), 1, 16, 16, _("Number of bits for green channel"))
+gegl_chant_int (blue_bits, _("Blue bits"), 1, 16, 16, _("Number of bits for blue channel"))
+gegl_chant_int (alpha_bits, _("Alpha bits"), 1, 16, 16, _("Number of bits for alpha channel"))
+gegl_chant_string (dither_type, _("Dither"), "none",
+ _("Dithering strategy (none, random, random-covariant, bayer, floyd-steinberg)"))
#else
@@ -453,7 +458,8 @@
operation_class->name = "color-reduction";
operation_class->categories = "misc";
- operation_class->description = "Reduces the number of bits per channel (colors and alpha), with optional dithering.";
+ operation_class->description =
+ _("Reduces the number of bits per channel (colors and alpha), with optional dithering.");
}
#endif
Modified: trunk/operations/workshop/demosaic-bimedian.c
==============================================================================
--- trunk/operations/workshop/demosaic-bimedian.c (original)
+++ trunk/operations/workshop/demosaic-bimedian.c Thu Oct 2 23:37:54 2008
@@ -16,10 +16,15 @@
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
* Copyright 2008 Bradley Broom <bmbroom gmail com>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_int (pattern, "Bayer pattern", 0, 3, 0,
- "Bayer pattern used, 0 seems to work for some nikon files, 2 for some Fuji files.")
+gegl_chant_int (pattern, _("Bayer pattern"), 0, 3, 0,
+ _("Bayer pattern used, 0 seems to work for some nikon files, 2 for some Fuji files."))
#else
@@ -205,7 +210,7 @@
operation_class->name = "demosaic-bimedian";
operation_class->categories = "blur";
operation_class->description =
- "Performs a grayscale2color demosaicing of an image, using bimedian interpolation.";
+ _("Performs a grayscale2color demosaicing of an image, using bimedian interpolation.");
}
#endif
Modified: trunk/operations/workshop/demosaic-simple.c
==============================================================================
--- trunk/operations/workshop/demosaic-simple.c (original)
+++ trunk/operations/workshop/demosaic-simple.c Thu Oct 2 23:37:54 2008
@@ -15,10 +15,15 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_int (pattern, "Bayer pattern", 0, 3, 0,
- "Bayer pattern used, 0 seems to work for some nikon files, 2 for some Fuji files.")
+gegl_chant_int (pattern, _("Bayer pattern"), 0, 3, 0,
+ _("Bayer pattern used, 0 seems to work for some nikon files, 2 for some Fuji files."))
#else
@@ -145,6 +150,6 @@
operation_class->name = "demosaic-simple";
operation_class->categories = "blur";
operation_class->description =
- "Performs a naive grayscale2color demosaicing of an image, no interpolation.";
+ _("Performs a naive grayscale2color demosaicing of an image, no interpolation.");
}
#endif
Modified: trunk/operations/workshop/disc-percentile.c
==============================================================================
--- trunk/operations/workshop/disc-percentile.c (original)
+++ trunk/operations/workshop/disc-percentile.c Thu Oct 2 23:37:54 2008
@@ -16,12 +16,17 @@
* Copyright 2005 Ãyvind KolÃs <pippin gimp org>,
* 2007 Ãyvind KolÃs <oeyvindk hig no>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_double (radius, "Radius", 0.0, 70.0, 4.0,
- "Radius of square pixel region (width and height will be radius*2+1)")
-gegl_chant_double (percentile, "Percentile", 0.0, 100.0, 50,
- "The percentile to compute, defaults to 50, which is a median filter.")
+gegl_chant_double (radius, _("Radius"), 0.0, 70.0, 4.0,
+ _("Radius of square pixel region (width and height will be radius*2+1)"))
+gegl_chant_double (percentile, _("Percentile"), 0.0, 100.0, 50,
+ _("The percentile to compute, defaults to 50, which is a median filter."))
#else
@@ -223,8 +228,8 @@
operation_class->name = "disc-percentile";
operation_class->categories = "misc";
operation_class->description =
- "Sets the target pixel to the color corresponding to a given"
- " percentile when colors are sorted by luminance.";
+ _("Sets the target pixel to the color corresponding to a given"
+ " percentile when colors are sorted by luminance.");
}
#endif
Modified: trunk/operations/workshop/external/ff-save.c
==============================================================================
--- trunk/operations/workshop/external/ff-save.c (original)
+++ trunk/operations/workshop/external/ff-save.c Thu Oct 2 23:37:54 2008
@@ -15,11 +15,16 @@
*
* Copyright 2003,2004,2007 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_string (path, "File", "/tmp/fnord.mp4", "Target path and filename, use '-' for stdout.")
-gegl_chant_double (bitrate, "Bitrate", 0.0, 100000000.0, 800000.0, "target bitrate")
-gegl_chant_double (fps, "FPS", 0.0, 100.0, 25, "frames per second")
+gegl_chant_string (path, _("File"), "/tmp/fnord.mp4", _("Target path and filename, use '-' for stdout."))
+gegl_chant_double (bitrate, _("Bitrate"), 0.0, 100000000.0, 800000.0, _("target bitrate"))
+gegl_chant_double (fps, _("FPS"), 0.0, 100.0, 25, _("frames per second"))
#else
@@ -852,7 +857,7 @@
operation_class->name = "ff-save";
operation_class->categories = "output:video";
- operation_class->description = "FFmpeg video output sink";
+ operation_class->description = _("FFmpeg video output sink");
}
#endif
Modified: trunk/operations/workshop/external/gluas.c
==============================================================================
--- trunk/operations/workshop/external/gluas.c (original)
+++ trunk/operations/workshop/external/gluas.c Thu Oct 2 23:37:54 2008
@@ -15,6 +15,11 @@
*
* Copyright 2004, 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
#define THRESHOLD_SCRIPT \
@@ -32,9 +37,11 @@
" progress (y/height)\n"\
"end"
-gegl_chant_multiline (script, "Script", THRESHOLD_SCRIPT, "The lua script containing the implementation of this operation.")
-gegl_chant_path (file, "File", "", "a stored lua script on disk implementing an operation.")
-gegl_chant_double (user_value, "User value", -1000.0, 1000.0, 1.0, "(appears in the global variable 'user_value' in lua.")
+gegl_chant_multiline (script, _("Script"), THRESHOLD_SCRIPT,
+ _("The lua script containing the implementation of this operation."))
+gegl_chant_path (file, _("File"), "", _("a stored lua script on disk implementing an operation."))
+gegl_chant_double (user_value, _("User value"), -1000.0, 1000.0, 1.0,
+ _("(appears in the global variable 'user_value' in lua."))
#else
@@ -1030,8 +1037,8 @@
operation_class->name = "gluas";
operation_class->categories = "script";
operation_class->description =
- "A general purpose filter/composer implementation proxy for the"
- " lua programming language.";
+ _("A general purpose filter/composer implementation proxy for the"
+ " lua programming language.");
}
#endif
Modified: trunk/operations/workshop/external/gtk-display.c
==============================================================================
--- trunk/operations/workshop/external/gtk-display.c (original)
+++ trunk/operations/workshop/external/gtk-display.c Thu Oct 2 23:37:54 2008
@@ -15,10 +15,15 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_string (window_title, "Window Title", "",
- "Title to give window, if no title given inherits name of the pad providing input.")
+gegl_chant_string (window_title, _("Window Title"), "",
+ _("Title to give window, if no title given inherits name of the pad providing input."))
#else
@@ -177,7 +182,7 @@
operation_class->name = "gtk-display";
operation_class->categories = "output";
operation_class->description =
- "Displays the input buffer in an GTK window .";
+ _("Displays the input buffer in an GTK window .");
}
#endif
Modified: trunk/operations/workshop/external/line-profile.c
==============================================================================
--- trunk/operations/workshop/external/line-profile.c (original)
+++ trunk/operations/workshop/external/line-profile.c Thu Oct 2 23:37:54 2008
@@ -15,16 +15,21 @@
*
* Copyright 2007 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_int (x0, "X0", 0, 1000, 0, "Start x coordinate")
-gegl_chant_int (x1, "X1", 0, 1000, 200, "End x coordinate")
-gegl_chant_int (y0, "Y0", 0, 1000, 0, "Start y coordinate")
-gegl_chant_int (y1, "Y1", 0, 1000, 200, "End y coordinate")
-gegl_chant_int (width, "Width", 10, 10000, 1024, "Width of plot")
-gegl_chant_int (height, "Height", 10, 10000, 256, "Height of plot")
-gegl_chant_double (min, "Min", -500.0, 500, 0.0, "Value at bottom")
-gegl_chant_double (max, "Max", -500.0, 500, 8.0, "Value at top")
+gegl_chant_int (x0, _("X0"), 0, 1000, 0, _("Start x coordinate"))
+gegl_chant_int (x1, _("X1"), 0, 1000, 200, _("End x coordinate"))
+gegl_chant_int (y0, _("Y0"), 0, 1000, 0, _("Start y coordinate"))
+gegl_chant_int (y1, _("Y1"), 0, 1000, 200, _("End y coordinate"))
+gegl_chant_int (width, _("Width"), 10, 10000, 1024, _("Width of plot"))
+gegl_chant_int (height, _("Height"), 10, 10000, 256, _("Height of plot"))
+gegl_chant_double (min, _("Min"), -500.0, 500, 0.0, _("Value at bottom"))
+gegl_chant_double (max, _("Max"), -500.0, 500, 8.0, _("Value at top"))
#else
@@ -168,9 +173,9 @@
operation_class->name = "line-profile";
operation_class->categories = "debug";
operation_class->description =
- "Renders luminance profiles for red green and blue components along"
- " the specified line in the input buffer, plotted in a buffer of the"
- " specified size.";
+ _("Renders luminance profiles for red green and blue components along"
+ " the specified line in the input buffer, plotted in a buffer of the"
+ " specified size.");
}
#endif
Modified: trunk/operations/workshop/generated/blend.rb
==============================================================================
--- trunk/operations/workshop/generated/blend.rb (original)
+++ trunk/operations/workshop/generated/blend.rb Thu Oct 2 23:37:54 2008
@@ -61,6 +61,10 @@
file.write copyright
file.write "
+#include \"config.h\"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
/* no properties */
@@ -137,7 +141,7 @@
operation_class->name = \"#{name}\";
operation_class->categories = \"compositors:blend\";
operation_class->description =
- \"Image blending operation '#{name}' (<tt>c = #{formula}</tt>)\";
+ _(\"Image blending operation '#{name}' (<tt>c = #{formula}</tt>)\");
}
#endif
Modified: trunk/operations/workshop/hstack.c
==============================================================================
--- trunk/operations/workshop/hstack.c (original)
+++ trunk/operations/workshop/hstack.c Thu Oct 2 23:37:54 2008
@@ -16,6 +16,10 @@
* Copyright 2007 Ãyvind KolÃs <oeyvindk hig no>
*/
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
/* No properties */
@@ -170,7 +174,7 @@
operation_class->name = "hstack";
operation_class->categories = "misc";
operation_class->description =
- "Horizontally stack inputs, (in \"output\" \"aux\" is placed to the right of \"input\")";
+ _("Horizontally stack inputs, (in \"output\" \"aux\" is placed to the right of \"input\")");
}
#endif
Modified: trunk/operations/workshop/kuwahara-max.c
==============================================================================
--- trunk/operations/workshop/kuwahara-max.c (original)
+++ trunk/operations/workshop/kuwahara-max.c Thu Oct 2 23:37:54 2008
@@ -15,10 +15,15 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_double (radius, "Radius", 0.0, 50.0, 4.0,
- "Radius of square pixel region (width and height will be radius*2+1)")
+gegl_chant_double (radius, _("Radius"), 0.0, 50.0, 4.0,
+ _("Radius of square pixel region (width and height will be radius*2+1)"))
#else
@@ -232,7 +237,7 @@
operation_class->name = "kuwahara-max";
operation_class->categories = "misc";
- operation_class->description = "Edge preserving max filter";
+ operation_class->description = _("Edge preserving max filter");
}
#endif
Modified: trunk/operations/workshop/kuwahara-min.c
==============================================================================
--- trunk/operations/workshop/kuwahara-min.c (original)
+++ trunk/operations/workshop/kuwahara-min.c Thu Oct 2 23:37:54 2008
@@ -15,10 +15,15 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_double (radius, "Radius", 0.0, 50.0, 4.0,
- "Radius of square pixel region (width and height will be radius*2+1)")
+gegl_chant_double (radius, _("Radius"), 0.0, 50.0, 4.0,
+ _("Radius of square pixel region (width and height will be radius*2+1)"))
#else
@@ -232,7 +237,7 @@
operation_class->name = "kuwahara-min";
operation_class->categories = "misc";
- operation_class->description = "Edge preserving min filter";
+ operation_class->description = _("Edge preserving min filter");
}
#endif
Modified: trunk/operations/workshop/kuwahara.c
==============================================================================
--- trunk/operations/workshop/kuwahara.c (original)
+++ trunk/operations/workshop/kuwahara.c Thu Oct 2 23:37:54 2008
@@ -15,10 +15,15 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_double (radius, "Radius", 0.0, 50.0, 10.0,
- "Radius of square pixel region (width and height will be radius*2+1)")
+gegl_chant_double (radius, _("Radius"), 0.0, 50.0, 10.0,
+ _("Radius of square pixel region (width and height will be radius*2+1)"))
#else
@@ -232,7 +237,7 @@
operation_class->name = "kuwahara";
operation_class->categories = "misc";
- operation_class->description = "Edge preserving blur";
+ operation_class->description = _("Edge preserving blur");
}
#endif
Modified: trunk/operations/workshop/lens-correct.c
==============================================================================
--- trunk/operations/workshop/lens-correct.c (original)
+++ trunk/operations/workshop/lens-correct.c Thu Oct 2 23:37:54 2008
@@ -16,10 +16,15 @@
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
* Copyright 2008 Bradley Broom <bmbroom gmail com>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_pointer (lens_info_pointer, "Model",
- "Pointer to LensCorrectionModel")
+gegl_chant_pointer (lens_info_pointer, _("Model"),
+ _("Pointer to LensCorrectionModel"))
#else
@@ -396,7 +401,7 @@
operation_class->name = "lens-correct";
operation_class->categories = "blur";
operation_class->description =
- "Copies image performing lens distortion correction.";
+ _("Copies image performing lens distortion correction.");
}
#endif
Modified: trunk/operations/workshop/mandelbrot.c
==============================================================================
--- trunk/operations/workshop/mandelbrot.c (original)
+++ trunk/operations/workshop/mandelbrot.c Thu Oct 2 23:37:54 2008
@@ -15,16 +15,21 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_double(real, "Real", -200.0, 200.0, -1.77,
- "Real coordinate")
-gegl_chant_double(img, "Imaginary", -200.0, 200.0, 0.0,
- "Imaginary coordinate")
-gegl_chant_double(level, "Level", -200.0, 200.0, 3.5,
- "Water level")
-gegl_chant_int (maxiter, "Iterations", 0, 512, 128,
- "Maximum number of iterations")
+gegl_chant_double(real, _("Real"), -200.0, 200.0, -1.77,
+ _("Real coordinate"))
+gegl_chant_double(img, _("Imaginary"), -200.0, 200.0, 0.0,
+ _("Imaginary coordinate"))
+gegl_chant_double(level, _("Level"), -200.0, 200.0, 3.5,
+ _("Water level"))
+gegl_chant_int (maxiter, _("Iterations"), 0, 512, 128,
+ _("Maximum number of iterations"))
#else
@@ -134,7 +139,7 @@
operation_class->name = "mandelbrot";
operation_class->categories = "render";
- operation_class->description = "Mandelbrot renderer.";
+ operation_class->description = _("Mandelbrot renderer.");
}
#endif
Modified: trunk/operations/workshop/rawbayer-load.c
==============================================================================
--- trunk/operations/workshop/rawbayer-load.c (original)
+++ trunk/operations/workshop/rawbayer-load.c Thu Oct 2 23:37:54 2008
@@ -15,9 +15,14 @@
*
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_string (path, "File", "/tmp/test.raw", "Path of file to load.")
+gegl_chant_string (path, _("File"), "/tmp/test.raw", _("Path of file to load."))
#else
@@ -146,11 +151,11 @@
operation_class->name = "rawbayer-load";
operation_class->categories = "hidden";
operation_class->description =
- "Raw image loader, wrapping dcraw with pipes, provides the raw bayer"
- " grid as grayscale, if the fileformat is .rawbayer it will use this"
- " loader instead of the normal dcraw loader, if the fileformat is"
- " .rawbayerS it will swap the returned 16bit numbers (the pnm loader"
- " is apparently buggy)";
+ _("Raw image loader, wrapping dcraw with pipes, provides the raw bayer"
+ " grid as grayscale, if the fileformat is .rawbayer it will use this"
+ " loader instead of the normal dcraw loader, if the fileformat is"
+ " .rawbayerS it will swap the returned 16bit numbers (the pnm loader"
+ " is apparently buggy)");
gegl_extension_handler_register (".rawbayer", "rawbayer-load");
gegl_extension_handler_register (".rawbayerS", "rawbayer-load");
Modified: trunk/operations/workshop/snn-percentile.c
==============================================================================
--- trunk/operations/workshop/snn-percentile.c (original)
+++ trunk/operations/workshop/snn-percentile.c Thu Oct 2 23:37:54 2008
@@ -17,14 +17,19 @@
* 2007 Ãyvind KolÃs <oeyvindk hig no>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_double (radius, "Radius", 0.0, 70.0, 8.0,
- "Radius of square pixel region (width and height will be radius*2+1)")
-gegl_chant_int (pairs, "Pairs", 1, 2, 2,
- "Number of pairs, higher number preserves more acute features")
-gegl_chant_double (percentile, "Percentile", 0.0, 100.0, 50.0,
- "The percentile to return, the default value 50 is equal to the median.")
+gegl_chant_double (radius, _("Radius"), 0.0, 70.0, 8.0,
+ _("Radius of square pixel region (width and height will be radius*2+1)"))
+gegl_chant_int (pairs, _("Pairs"), 1, 2, 2,
+ _("Number of pairs, higher number preserves more acute features"))
+gegl_chant_double (percentile, _("Percentile"), 0.0, 100.0, 50.0,
+ _("The percentile to return, the default value 50 is equal to the median."))
#else
@@ -262,7 +267,7 @@
operation_class->name = "snn-percentile";
operation_class->categories = "misc";
operation_class->description =
- "Noise reducing edge enhancing percentile filter based on Symmetric Nearest Neighbours";
+ _("Noise reducing edge enhancing percentile filter based on Symmetric Nearest Neighbours");
}
#endif
Modified: trunk/operations/workshop/stroke.c
==============================================================================
--- trunk/operations/workshop/stroke.c (original)
+++ trunk/operations/workshop/stroke.c Thu Oct 2 23:37:54 2008
@@ -16,16 +16,21 @@
* Copyright 2006 Ãyvind KolÃs <pippin gimp org>
*/
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_vector (vector, "Vector",
- "A GeglVector representing the path of the stroke")
-gegl_chant_color (color, "Color", "rgba(0.1,0.2,0.3,1.0)",
- "Color of paint to use")
-gegl_chant_double (linewidth,"Linewidth", 0.0, 100.0, 3.0,
- "width of stroke")
-gegl_chant_double (hardness, "Hardness", 0.0, 1.0, 0.7,
- "hardness of brush, 0.0 for soft brush 1.0 for hard brush.")
+gegl_chant_vector (vector, _("Vector"),
+ _("A GeglVector representing the path of the stroke"))
+gegl_chant_color (color, _("Color"), "rgba(0.1,0.2,0.3,1.0)",
+ _("Color of paint to use"))
+gegl_chant_double (linewidth,_("Linewidth"), 0.0, 100.0, 3.0,
+ _("width of stroke"))
+gegl_chant_double (hardness, _("Hardness"), 0.0, 1.0, 0.7,
+ _("hardness of brush, 0.0 for soft brush 1.0 for hard brush."))
#else
@@ -92,7 +97,7 @@
operation_class->name = "stroke";
operation_class->categories = "render";
- operation_class->description = "Renders a brush stroke";
+ operation_class->description = _("Renders a brush stroke");
operation_class->get_cached_region = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]