[gnome-dvb-daemon] Fixed binding gettext domain



commit 54b32886bce3dac8a3121d00d59aeac649885d41
Author: Sebastian Pölsterl <sebp k-d-w org>
Date:   Tue May 10 21:04:09 2011 +0200

    Fixed binding gettext domain

 client/gnomedvb/__init__.py |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/client/gnomedvb/__init__.py b/client/gnomedvb/__init__.py
index ae0e36f..9062fd6 100644
--- a/client/gnomedvb/__init__.py
+++ b/client/gnomedvb/__init__.py
@@ -22,7 +22,6 @@ import gnomedvb.defs
 import gnomedvb.userdirs
 import gettext
 from gi.repository import Gtk
-import locale
 import os
 from gettext import gettext as _
 from os.path import abspath, join, expanduser
@@ -42,18 +41,11 @@ XDG_CONFIG_HOME = os.environ.get('XDG_CONFIG_HOME', join(_home, '.config'))
 
 def setup_i18n():
     # Setup i18n
-    gettext.bindtextdomain(gnomedvb.defs.PACKAGE,
-        abspath(join(gnomedvb.defs.DATA_DIR, 'locale')))
+    gettext.bindtextdomain(gnomedvb.defs.PACKAGE)
     if hasattr(gettext, 'bind_textdomain_codeset'):
         gettext.bind_textdomain_codeset(gnomedvb.defs.PACKAGE, 'UTF-8')
     gettext.textdomain(gnomedvb.defs.PACKAGE)
 
-    locale.bindtextdomain(gnomedvb.defs.PACKAGE,
-        abspath(join(gnomedvb.defs.DATA_DIR, 'locale')))
-    if hasattr(locale, 'bind_textdomain_codeset'):
-        locale.bind_textdomain_codeset(gnomedvb.defs.PACKAGE, 'UTF-8')
-    locale.textdomain(gnomedvb.defs.PACKAGE)
-    
 def get_config_dir():
     return join(XDG_CONFIG_HOME, gnomedvb.defs.PACKAGE)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]