summaryrefslogtreecommitdiffstats
path: root/support/include/nls.h
diff options
context:
space:
mode:
authorAmit Gud <agud@redhat.com>2006-06-12 19:08:27 -0400
committerNeil Brown <neilb@suse.de>2006-06-16 12:19:45 +1000
commit4e2bae795e5eaf9922f0b966ab5df64994c836a2 (patch)
tree5bd9031586cbc3f6e644d9967d54acf00a7ebb4d /support/include/nls.h
parenta0520fa1a41bd33815b331b660b4545f2723495c (diff)
downloadnfs-utils-4e2bae795e5eaf9922f0b966ab5df64994c836a2.tar.gz
nfs-utils-4e2bae795e5eaf9922f0b966ab5df64994c836a2.tar.xz
nfs-utils-4e2bae795e5eaf9922f0b966ab5df64994c836a2.zip
Move NFS mount code from util-linux to nfs-utils - part 2
Adds the support functions needed for mount and umount. This functionality will someday be available in the form of shared mount library. Signed-off-by: Amit Gud <agud@redhat.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/include/nls.h')
-rw-r--r--support/include/nls.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/support/include/nls.h b/support/include/nls.h
new file mode 100644
index 0000000..899e8d7
--- /dev/null
+++ b/support/include/nls.h
@@ -0,0 +1,27 @@
+/*
+ * 2006-06-08 Amit Gud <agud@redhat.com>
+ * - Copied to nfs-utils/support/include from util-linux/mount
+ */
+
+#ifndef LOCALEDIR
+#define LOCALEDIR "/usr/share/locale"
+#endif
+
+#ifdef ENABLE_NLS
+# include <libintl.h>
+# define _(Text) gettext (Text)
+# ifdef gettext_noop
+# define N_(String) gettext_noop (String)
+# else
+# define N_(String) (String)
+# endif
+#else
+# undef bindtextdomain
+# define bindtextdomain(Domain, Directory) /* empty */
+# undef textdomain
+# define textdomain(Domain) /* empty */
+# define _(Text) (Text)
+# define N_(Text) (Text)
+#endif
+
+