changeset 2640:af857f8c2e44

Import BotConfig in i18n module (makes testing easier...)
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Mon, 06 Aug 2007 03:45:12 +0200
parents 117e1bee2444
children b0a8154e8874
files jabberbot/i18n.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jabberbot/i18n.py	Sun Aug 05 22:47:12 2007 +0200
+++ b/jabberbot/i18n.py	Mon Aug 06 03:45:12 2007 +0200
@@ -6,6 +6,7 @@
     @license: GNU GPL, see COPYING for details.
 """
 import logging, xmlrpclib
+from jabberbot.config import BotConfig
 
 TRANSLATIONS = None
 
@@ -20,7 +21,7 @@
 
     global TRANSLATIONS
     if not TRANSLATIONS:
-        init_i18n()
+        init_i18n(BotConfig)
 
     try:
         return TRANSLATIONS[lang][original]