29f5bad2fb
With help from rpointel@, thanks ! ok ajacoutot@
17 lines
633 B
Plaintext
17 lines
633 B
Plaintext
$OpenBSD: patch-src_plugins_plugins_i18n_py,v 1.1 2012/03/28 12:37:05 pea Exp $
|
|
--- src/plugins/plugins_i18n.py.orig Wed Mar 28 14:17:35 2012
|
|
+++ src/plugins/plugins_i18n.py Wed Mar 28 14:18:35 2012
|
|
@@ -29,7 +29,11 @@ plugins_locale_dir = os_path.join(gajim.PLUGINS_DIRS[1
|
|
|
|
if os.name != 'nt':
|
|
locale.setlocale(locale.LC_ALL, '')
|
|
- locale.bindtextdomain(APP, plugins_locale_dir)
|
|
+ # We don't provide bindtextdomain
|
|
+ try:
|
|
+ locale.bindtextdomain(APP, plugins_locale_dir)
|
|
+ except AttributeError:
|
|
+ pass
|
|
gettext.bindtextdomain(APP, plugins_locale_dir)
|
|
gettext.textdomain(APP)
|
|
|