From b022b7884011ab7ef597cbe0864c59e9179e6bf3 Mon Sep 17 00:00:00 2001 From: Keith Mitchell Date: Thu, 15 Dec 2011 12:00:40 -0800 Subject: [PATCH] Fix I18N_PATH for opensource (correctly this time) --- r2/r2/lib/translation.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/r2/r2/lib/translation.py b/r2/r2/lib/translation.py index dffa3027e..9c3e9546e 100644 --- a/r2/r2/lib/translation.py +++ b/r2/r2/lib/translation.py @@ -26,9 +26,10 @@ from pylons.i18n.translation import translation, LanguageError, NullTranslations try: import reddit_i18n - I18N_PATH = os.path.dirname(reddit_i18n.__file__) except ImportError: - I18N_PATH = os.path.abspath('r2/r2/i18n') + import r2.i18n as reddit_i18n + +I18N_PATH = os.path.dirname(reddit_i18n.__file__) _domain = 'r2'