From 506c6919fa6dd01b738e022e625105d12cd05c48 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Thu, 3 Sep 2009 19:17:33 +0200 Subject: Screw debugging ... prefer the ctypes approach to get rid of yet another c-module. --- portato/gui/windows/gettext.pyx | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 portato/gui/windows/gettext.pyx (limited to 'portato/gui/windows/gettext.pyx') diff --git a/portato/gui/windows/gettext.pyx b/portato/gui/windows/gettext.pyx deleted file mode 100644 index c8174e8..0000000 --- a/portato/gui/windows/gettext.pyx +++ /dev/null @@ -1,18 +0,0 @@ -cdef extern from "langinfo.h": - char* nl_langinfo (int item) - cdef enum: - CODESET - -cdef extern from "libintl.h": - char * textdomain (char* domain) - char * bindtextdomain (char* domain, char* dir) - char * bind_textdomain_codeset (char* domain, char* codeset) - -def set_gtk_gettext (char* domain, char* dir): - textdomain(domain) - bindtextdomain(domain, dir) - - old_charset = nl_langinfo(CODESET) - bind_textdomain_codeset(domain, "UTF-8") - - return old_charset -- cgit v1.2.3-70-g09d2