]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
- support --disable-nls option
authormlichvar <mlichvar>
Wed, 23 Jan 2008 16:28:53 +0000 (16:28 +0000)
committermlichvar <mlichvar>
Wed, 23 Jan 2008 16:28:53 +0000 (16:28 +0000)
snackmodule.c
whiptcl.c

index da3368af2931f815896dbe7090a5b9a7959596e4..0f5628eddfa0dc6e8316ea6612d9582606f143dc 100644 (file)
@@ -1274,9 +1274,11 @@ static PyObject * pywstrlen(PyObject * s, PyObject * args)
 void init_snack(void) {
     PyObject * d, * m;
 
+#ifdef ENABLE_NLS
     setlocale (LC_ALL, "");
     bindtextdomain (PACKAGE, LOCALEDIR);
     textdomain (PACKAGE);
+#endif
 
     m = Py_InitModule("_snack", snackModuleMethods);
     d = PyModule_GetDict(m);
index 7d01f343dbf5349717db94f610aa1c312e0c5ade..264ddeb0bbb835b9cb5d3a23f0c126aef69cf37c 100644 (file)
--- a/whiptcl.c
+++ b/whiptcl.c
@@ -91,9 +91,11 @@ static int wtCmd(ClientData clientData, Tcl_Interp * interp, int argc,
            { 0, 0, 0, 0, 0 } 
     };
    
+#ifdef ENABLE_NLS
     setlocale (LC_ALL, "");
     bindtextdomain (PACKAGE, LOCALEDIR);
     textdomain (PACKAGE);
+#endif
 
     optCon = poptGetContext("whiptcl", argc, argv, optionsTable, 0);