[accerciser] Fix for bug #654418 - Strings with context are not getting properly localized even though the transl



commit 1ea5466e25bac758e82698b229d4d6529c666525
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Mon Jul 11 16:36:15 2011 -0400

    Fix for bug #654418 - Strings with context are not getting properly localized even though the translations have been provided

 src/lib/accerciser/i18n.py.in |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/lib/accerciser/i18n.py.in b/src/lib/accerciser/i18n.py.in
index 0cb9033..fbbee2a 100644
--- a/src/lib/accerciser/i18n.py.in
+++ b/src/lib/accerciser/i18n.py.in
@@ -59,6 +59,8 @@ LOCALE_DIR = os.path.join(sys.prefix, '@DATADIRNAME@', 'locale')
 DOMAIN = '@GETTEXT_PACKAGE@'
 # build a default instance to the LSR domain and locale directory
 _ = bind(DOMAIN, LOCALE_DIR)
+gettext.bindtextdomain (DOMAIN, LOCALE_DIR)
+gettext.textdomain(DOMAIN)
 
 def C_(ctx, s):
   '''Provide qualified translatable strings.  Some strings translate to



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