mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-02-01 02:05:03 -05:00
Fix I18N_PATH for opensource (correctly this time)
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user