summaryrefslogtreecommitdiff
path: root/pot.c
diff options
context:
space:
mode:
authorjkar8572 <jkar8572>2001-03-23 12:03:26 +0000
committerjkar8572 <jkar8572>2001-03-23 12:03:26 +0000
commit869fe242340fefe0540fdcf51698ba4c3c8c07bb (patch)
tree950fa3f5997c1e8ee68c0f17d4eaf17abef64f34 /pot.c
downloadlinuxquota-869fe242340fefe0540fdcf51698ba4c3c8c07bb.tar.gz
Initial revision
Diffstat (limited to 'pot.c')
-rw-r--r--pot.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/pot.c b/pot.c
new file mode 100644
index 0000000..bfacfe2
--- /dev/null
+++ b/pot.c
@@ -0,0 +1,15 @@
+#include "pot.h"
+#include <locale.h>
+
+/*************************************************************************
+ * if you want to turn off gettext without changing sources edit pot.h
+ *************************************************************************/
+
+void gettexton(void)
+{
+#ifdef __GETTEXT__
+ setlocale(LC_ALL, "");
+ bindtextdomain("quota", "/usr/share/locale");
+ textdomain("quota");
+#endif
+}