Wed May 2 09:11:44 2012 UTC ()
Add a patch to fix translations fail of ibus-setup.
Bump PKGREVISION.
(obache)
diff -r1.14 -r1.15 pkgsrc/inputmethod/ibus/Makefile
diff -r1.4 -r1.5 pkgsrc/inputmethod/ibus/distinfo
diff -r0 -r1.1 pkgsrc/inputmethod/ibus/patches/patch-setup_i18n.py
--- pkgsrc/inputmethod/ibus/Makefile 2012/04/22 13:57:30 1.14
+++ pkgsrc/inputmethod/ibus/Makefile 2012/05/02 09:11:43 1.15
--- pkgsrc/inputmethod/ibus/distinfo 2012/04/22 13:57:30 1.4
+++ pkgsrc/inputmethod/ibus/distinfo 2012/05/02 09:11:44 1.5
$NetBSD: patch-setup_i18n.py,v 1.1 2012/05/02 09:11:44 obache Exp $
* fix translations fail
http://code.google.com/p/ibus/issues/detail?id=1453
--- setup/i18n.py.orig 2012-02-02 04:54:54.000000000 +0000
+++ setup/i18n.py
@@ -20,6 +20,7 @@
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
# Boston, MA 02111-1307 USA
+import locale
import gettext
import os
@@ -30,5 +31,12 @@ N_ = lambda a: a
def init():
localedir = os.getenv("IBUS_LOCALEDIR")
+ # Python's locale module doesn't provide all methods on some
+ # operating systems like FreeBSD
+ try:
+ # for non-standard localedir
+ locale.bindtextdomain(DOMAINNAME, localedir)
+ except AttributeError:
+ pass
gettext.bindtextdomain(DOMAINNAME, localedir)
gettext.bind_textdomain_codeset(DOMAINNAME, "UTF-8")