[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-cppi] [PATCH] Enable L18N
From: |
Sergey Poznyakoff |
Subject: |
[bug-cppi] [PATCH] Enable L18N |
Date: |
Tue, 30 Mar 2010 13:37:00 +0300 |
Hi Jim,
Cppi does not enable L18N support. The following patch fixes it:
diff --git a/src/cppi.l b/src/cppi.l
index f46940a..a8986bb 100644
--- a/src/cppi.l
+++ b/src/cppi.l
@@ -787,6 +787,11 @@ main (int argc, char** argv)
int fail = 0;
set_program_name (argv[0]);
+#ifdef ENABLE_NLS
+ setlocale (LC_ALL, "");
+ bindtextdomain (PACKAGE, LOCALEDIR);
+ textdomain (PACKAGE);
+#endif
atexit (close_stdout);
Regards,
Sergey
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug-cppi] [PATCH] Enable L18N,
Sergey Poznyakoff <=