diff --git a/django/core/management/base.py b/django/core/management/base.py
index db855e1..80cadda 100644
a
|
b
|
class BaseCommand(object):
|
137 | 137 | |
138 | 138 | # Configuration shortcuts that alter various logic. |
139 | 139 | can_import_settings = True |
| 140 | keep_active_language = False |
140 | 141 | requires_model_validation = True |
141 | 142 | output_transaction = False # Whether to wrap the output in a "BEGIN; COMMIT;" |
142 | 143 | |
… |
… |
class BaseCommand(object):
|
210 | 211 | # But only do this if we can assume we have a working settings file, |
211 | 212 | # because django.utils.translation requires settings. |
212 | 213 | saved_lang = None |
213 | | if self.can_import_settings: |
| 214 | if self.can_import_settings and not self.keep_active_language: |
214 | 215 | try: |
215 | 216 | from django.utils import translation |
216 | 217 | saved_lang = translation.get_language() |
217 | 218 | translation.activate('en-us') |
| 219 | verbosity = int(options.get('verbosity')) |
| 220 | if verbosity >= 2: |
| 221 | sys.stderr.write("Setting active language to 'en-us'\n") |
218 | 222 | except ImportError, e: |
219 | 223 | # If settings should be available, but aren't, |
220 | 224 | # raise the error and quit. |
diff --git a/django/core/management/commands/shell.py b/django/core/management/commands/shell.py
index a8c9456..76ee477 100644
a
|
b
|
class Command(NoArgsCommand):
|
9 | 9 | ) |
10 | 10 | help = "Runs a Python interactive interpreter. Tries to use IPython, if it's available." |
11 | 11 | shells = ['ipython', 'bpython'] |
| 12 | keep_active_language = True |
12 | 13 | requires_model_validation = False |
13 | 14 | |
14 | 15 | def ipython(self): |