From ffeb1494cbe06624bcc45669e4a4d9692f2707c8 Mon Sep 17 00:00:00 2001 From: Griatch Date: Tue, 13 Sep 2011 10:18:20 +0200 Subject: [PATCH] Added empty log dir (mercurial don't allow that normally), as well as fixed an issue with i18n when starting without a settings.py file. --- game/logs/.empty | 0 game/manage.py | 11 ++++++----- 2 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 game/logs/.empty diff --git a/game/logs/.empty b/game/logs/.empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/game/manage.py b/game/manage.py index 21a0bf835c..e5f3cbe8a1 100755 --- a/game/manage.py +++ b/game/manage.py @@ -8,9 +8,6 @@ the database. import sys import os -# i18n -from django.utils.translation import ugettext as _ - # Tack on the root evennia directory to the python path. sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) @@ -100,9 +97,13 @@ from src.settings_default import * settings_file.write(string) settings_file.close() - print _(""" + # obs - this string cannot be under i18n since settings didn't exist yet. + print """ Welcome to Evennia (version %(version)s)! - We created a fresh settings.py file for you.""") % {'version': VERSION} + We created a fresh settings.py file for you.""" % {'version': VERSION} + +# i18n +from django.utils.translation import ugettext as _ #------------------------------------------------------------ # Test the import of the settings file