Browse files

Call locale.bindtextdomain() for non-standard localedir (Issue#27).

  • Loading branch information...
1 parent 545e76b commit afb7cc7137be89db1899299351354da07b758197 @ueno committed Dec 21, 2010
Showing with 3 additions and 0 deletions.
  1. +1 −0 THANKS
  2. +2 −0 setup/main.py
View
1 THANKS
@@ -5,6 +5,7 @@ IRIE Shinsuke irieshinsuke at yahoo.co.jp
iws iws1011 at gmail.com
Jens Petersen petersen at redhat.com
Kazuhiro NISHIYAMA
+OBATA Akio
OHASHI Hideya ohachige at gmail.com
TAGOMORI Satoshi sigh at shirts.st
TAKAHASHI Tamotsu
View
2 setup/main.py
@@ -24,6 +24,8 @@ class PreferencesDialog:
def __init__(self):
locale.setlocale(locale.LC_ALL, '')
localedir = os.getenv('IBUS_LOCALEDIR')
+ # for non-standard localedir (Issue#27)
+ locale.bindtextdomain('ibus-skk', localedir)
gettext.bindtextdomain('ibus-skk', localedir)
gettext.bind_textdomain_codeset('ibus-skk', 'UTF-8')

0 comments on commit afb7cc7

Please sign in to comment.