@task
@timed
def i18n_validate_gettext():
 returncode = subprocess.call(['which', 'xgettext'])
 if (returncode != 0):
  msg = colorize('red', 'Cannot locate GNU gettext utilities, which are required by django for internationalization.\n (see https://docs.djangoproject.com/en/dev/topics/i18n/translation/#message-files)\nTry downloading them from http://www.gnu.org/software/gettext/ \n')
  sys.stderr.write(msg)
  sys.exit(1)

@ task @ timed def i18n_validate_gettext ( ) : returncode = subprocess . call ( [ 'which' , 'xgettext' ] ) if ( returncode != 0 ) : msg = colorize ( 'red' , 'Cannot locate GNU gettext utilities, which are required by django for internationalization.\n (see https://docs.djangoproject.com/en/dev/topics/i18n/translation/#message-files)\nTry downloading them from http://www.gnu.org/software/gettext/ \n' ) sys . stderr . write ( msg ) sys . exit ( 1 )
make sure gnu gettext utilities are available .