summaryrefslogtreecommitdiffstats
path: root/fish/fish.h
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-05-21 12:01:36 +0100
committerRichard Jones <rjones@redhat.com>2009-05-21 12:01:36 +0100
commitd70248333edf8a5b5f509609cf2c8f7fd77d5e05 (patch)
tree11adc51a662cd5769cb0cec80cd81942293729fd /fish/fish.h
parent29204fe10d6ad46bace50e82557cb95e8a0f3529 (diff)
downloadlibguestfs-d70248333edf8a5b5f509609cf2c8f7fd77d5e05.tar.gz
libguestfs-d70248333edf8a5b5f509609cf2c8f7fd77d5e05.tar.xz
libguestfs-d70248333edf8a5b5f509609cf2c8f7fd77d5e05.zip
Gettextize the source, make library strings translatable.
Diffstat (limited to 'fish/fish.h')
-rw-r--r--fish/fish.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/fish/fish.h b/fish/fish.h
index c9dd3508..91424e1e 100644
--- a/fish/fish.h
+++ b/fish/fish.h
@@ -21,6 +21,15 @@
#include <guestfs.h>
+#ifdef HAVE_GETTEXT
+#include "gettext.h"
+#define _(str) dgettext(PACKAGE, (str))
+#define N_(str) dgettext(PACKAGE, (str))
+#else
+#define _(str) str
+#define N_(str) str
+#endif
+
/* in fish.c */
extern guestfs_h *g;
extern int quit;