diff options
| author | Claude Paroz <claude@2xlibre.net> | 2014-05-24 12:19:49 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2014-05-24 12:19:49 +0200 |
| commit | e692c5818b7a57a878dce8d96e697493d680a123 (patch) | |
| tree | 1c457afc57b401a293cb539742ba5a8bfa63715e | |
| parent | 8dad90911afb0007856f82c0ab9199af7cb43111 (diff) | |
[1.7.x] Removed translatability of PIL error messages
Note these are no longer in master anyway.
| -rw-r--r-- | django/utils/image.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/django/utils/image.py b/django/utils/image.py index 795300c1e4..a52ae65a48 100644 --- a/django/utils/image.py +++ b/django/utils/image.py @@ -76,7 +76,6 @@ import warnings from django.core.exceptions import ImproperlyConfigured from django.utils.deprecation import RemovedInDjango18Warning -from django.utils.translation import ugettext_lazy as _ Image = None @@ -106,7 +105,7 @@ def _detect_image_library(): except ImportError as err: # Neither worked, so it's likely not installed. raise ImproperlyConfigured( - _("Neither Pillow nor PIL could be imported: %s") % err + "Neither Pillow nor PIL could be imported: %s" % err ) # ``Image.alpha_composite`` was added to Pillow in SHA: e414c6 & is not @@ -131,8 +130,8 @@ def _detect_image_library(): import _imaging as PIL_imaging except ImportError as err: raise ImproperlyConfigured( - _("The '_imaging' module for the PIL could not be " - "imported: %s") % err + "The '_imaging' module for the PIL could not be " + "imported: %s" % err ) # Try to import ImageFile as well. |
