Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #18547 -- Improved error message when gettext is missing

  • Loading branch information...
commit 8184aff2b0a3fbe6759163c0289f640a393a3e99 1 parent 23f94f0
Claude Paroz claudep authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 django/core/management/commands/
5 django/core/management/commands/
@@ -291,7 +291,10 @@ def make_messages(locale=None, domain='django', verbosity=1, all=False,
raise CommandError(message)
# We require gettext version 0.15 or newer.
- output = _popen('xgettext --version')[0]
+ output, errors = _popen('xgettext --version')
+ if errors:
+ raise CommandError("Error running xgettext. Note that Django "
+ "internationalization requires GNU gettext 0.15 or newer.")
match ='(?P<major>\d+)\.(?P<minor>\d+)', output)
if match:
xversion = (int('major')), int('minor')))
Please sign in to comment.
Something went wrong with that request. Please try again.