From 47850ca0b27b0624353aa020111620bcb5142cfe Mon Sep 17 00:00:00 2001 From: William Kendrick Date: Wed, 9 Jul 2008 21:48:21 +0000 Subject: [PATCH] tp_magic_api.h now has gettext_noop() macro def; example code doesn't need it. --- magic/docs/tp_magic_example.c | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/magic/docs/tp_magic_example.c b/magic/docs/tp_magic_example.c index b88151098..a2d75cc6a 100644 --- a/magic/docs/tp_magic_example.c +++ b/magic/docs/tp_magic_example.c @@ -1,7 +1,7 @@ /* tp_magic_example.c An example of a "Magic" tool plugin for Tux Paint - Last modified: 2008.07.08 + Last modified: 2008.07.09 */ @@ -42,18 +42,9 @@ const char * icon_filenames[NUM_TOOLS] = { }; -// Below, we define a macro called "gettext_noop()" that does nothing in our -// code when compiled (it simply disappears; e.g., 'gettext_noop("foo")' -// becomes simply "foo"), but is useful because the gettext localization -// tools will look for it and create a catalog of strings that should be -// translated into other languages. - -#ifndef gettext_noop -#define gettext_noop(String) String -#endif - -// We'll use this macro below, in some arrays of strings (char *'s) that -// hold the names and descriptions of our "Magic" tools. +// NOTE: We use a macro called "gettext_noop()" below in some arrays of +// strings (char *'s) that hold the names and descriptions of our "Magic" +// tools. This allows the strings to be localized into other languages. /* A list of names for the tools */