gegl r2014 - in trunk: . gegl gegl/module operations/color
- From: ok svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r2014 - in trunk: . gegl gegl/module operations/color
- Date: Tue, 12 Feb 2008 23:08:02 +0000 (GMT)
Author: ok
Date: Tue Feb 12 23:08:02 2008
New Revision: 2014
URL: http://svn.gnome.org/viewvc/gegl?rev=2014&view=rev
Log:
* gegl/gegl-plugin.h: start using gettext for translation.
* gegl/module/geglmodule.c: disabled old hacks for gettext.
* operations/color/brightness-contrast.c: marked strings for
translation.
Modified:
trunk/ChangeLog
trunk/gegl/gegl-plugin.h
trunk/gegl/module/geglmodule.c
trunk/operations/color/brightness-contrast.c
Modified: trunk/gegl/gegl-plugin.h
==============================================================================
--- trunk/gegl/gegl-plugin.h (original)
+++ trunk/gegl/gegl-plugin.h Tue Feb 12 23:08:02 2008
@@ -20,9 +20,14 @@
#ifndef __GEGL_PLUGIN_H__
#define __GEGL_PLUGIN_H__
+#ifndef GETTEXT_PACKAGE
+#define GETTEXT_PACKAGE "gegl-0.0"
+#endif
+
#include <string.h>
#include <glib-object.h>
#include <gegl.h>
+#include <glib/gi18n-lib.h>
/* Extra types needed when coding operations */
typedef struct _GeglOperation GeglOperation;
Modified: trunk/gegl/module/geglmodule.c
==============================================================================
--- trunk/gegl/module/geglmodule.c (original)
+++ trunk/gegl/module/geglmodule.c Tue Feb 12 23:08:02 2008
@@ -23,14 +23,16 @@
#include "geglmodule.h"
+#if 0
/* define hacks to make it compile with as small modifications as possible
* from geglmodule
*/
#define _(string) (string)
#define N_(string) (string)
-#define gegl_filename_to_utf8(filename) (filename)
#define gettext(string) (string)
+#endif
+#define gegl_filename_to_utf8(filename) (filename)
enum
{
MODIFIED,
Modified: trunk/operations/color/brightness-contrast.c
==============================================================================
--- trunk/operations/color/brightness-contrast.c (original)
+++ trunk/operations/color/brightness-contrast.c Tue Feb 12 23:08:02 2008
@@ -23,10 +23,10 @@
* the the parameters are:
* property name, min, max, default, "description of property" */
-gegl_chant_double (contrast, "Contrast", -5.0, 5.0, 1.0,
- "Range scale factor")
-gegl_chant_double (brightness, "Brightness", -3.0, 3.0, 0.0,
- "Amount to increase brightness")
+gegl_chant_double (contrast, _("Contrast"), -5.0, 5.0, 1.0,
+ _("Range scale factor"))
+gegl_chant_double (brightness, _("Brightness"), -3.0, 3.0, 0.0,
+ _("Amount to increase brightness"))
/* this will create the instance structure for our use, and register the
* property with the given ranges, default values and a comment for the
@@ -132,7 +132,7 @@
operation_class->categories = "color";
/* a description of what this operations does */
- operation_class->description = "Changes the light level and contrast.";
+ operation_class->description = _("Changes the light level and contrast.");
}
#endif /* closing #ifdef GEGL_CHANT_PROPERTIES ... else ... */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]