Commit 6296993a authored by Øyvind Kolås's avatar Øyvind Kolås

Applied patches from yahvuu at gmail.com for bug #307195 that

	marks strings in operation for translation.

	* operations/*/*.c:

svn path=/trunk/; revision=2590
parent 8f5d7ea1
2008-10-03 Øyvind Kolås <pippin@gimp.org>
Applied patches from yahvuu at gmail.com for bug #307195 that
marks strings in operation for translation.
* operations/*/*.c:
2008-10-03 Øyvind Kolås <pippin@gimp.org>
* gegl/buffer/gegl-sampler-cubic.c: (gegl_sampler_cubic_get):
......
......@@ -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 @@ op_affine_class_init (OpAffineClass *klass)
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));
}
......
......@@ -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
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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 @@ gegl_chant_class_init (GeglChantClass *klass)
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
......@@ -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 @@ gegl_chant_class_init (GeglChantClass *klass)
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
......@@ -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 @@ gegl_chant_class_init (GeglChantClass *klass)
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
......@@ -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 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->name = "checkerboard";
operation_class->categories = "render";
operation_class->description = "Checkerboard renderer.";
operation_class->description = _("Checkerboard renderer");
}
#endif
......@@ -189,7 +189,7 @@ gegl_chant_class_init (GeglChantClass *klass)
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
......
......@@ -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 @@ gegl_chant_class_init (GeglChantClass *klass)
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
......@@ -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 @@ gegl_chant_class_init (GeglChantClass *klass)
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
......@@ -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 @@ gegl_chant_class_init (GeglChantClass *klass)
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
......@@ -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 @@ gegl_chant_class_init (GeglChantClass *klass)
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
......@@ -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_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_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 (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_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_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_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 @@ gegl_chant_class_init (GeglChantClass *klass)
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;
......
......@@ -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 @@ gegl_chant_class_init (GeglChantClass *klass)
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
......@@ -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 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->name = "grey";
operation_class->categories = "color";
operation_class->description = "Turns the image greyscale";
operation_class->description = _("Turns the image greyscale");
}
#endif
......@@ -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 @@ gegl_chant_class_init (GeglChantClass *klass)
operation_class->name = "introspect";
operation_class->categories = "render";
operation_class->description = "GEGL graph visualizer.";
operation_class->description = _("GEGL graph visualizer.");
}
#endif
......
......@@ -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 @@ gegl_chant_class_init (GeglChantClass *klass)
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.");