[accerciser] Using GNUTranslations.gettext instead of ugettext



commit 96fd85ea7879fb66af13ff398263ea5aa572626b
Author: Daniel Garcia Moreno <danigm wadobo com>
Date:   Mon Feb 18 20:09:52 2013 +0100

    Using GNUTranslations.gettext instead of ugettext
    
    In python3 there's no GNUTranslations.ugettext so accerciser fails.
    It's needed to use gettext instead.

 src/lib/accerciser/i18n.py.in |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/lib/accerciser/i18n.py.in b/src/lib/accerciser/i18n.py.in
index e175362..bc12284 100644
--- a/src/lib/accerciser/i18n.py.in
+++ b/src/lib/accerciser/i18n.py.in
@@ -41,12 +41,12 @@ def bind(domain, locale_dir):
   @type domain: string
   @param locale_dir: Directory to search for translation files for the domain
   @type locale_dir: string
-  @return: Bound method ugettext on the translation object
+  @return: Bound method gettext on the translation object
   @rtype: callable
   '''
   try:
     t = gettext.translation(domain, locale_dir)
-    return t.ugettext
+    return t.gettext
   except IOError:
     # no translation file, so just return the unicode version of the given 
     # string


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