diff jabberbot/i18n.py @ 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 c27ee67397f0
children 6f06c7d051a4
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]