Code

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#15105 closed (invalid)

django-admin.py makemessages --all exists without warning if gettext is not installed

Reported by: elpargo Owned by: nobody
Component: Internationalization Version: 1.2
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

If you run django-admin.py makemessages --all on a project in a system that does not have the gettext package installed, it will just exit without error or warning.

For new users this is a bit misleading, it should print out a warning about not finding xgettext like django-admin.py makemessages -l <locale> does.

Attachments (0)

Change History (4)

comment:1 Changed 3 years ago by jezdez

  • Component changed from Translations to Internationalization
  • milestone set to 1.3
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 3 years ago by jezdez

  • Resolution set to invalid
  • Status changed from new to closed

Actually, this works for me, raising this:

Error: errors happened while running xgettext on __init__.py
/bin/sh: xgettext: command not found

comment:3 Changed 3 years ago by ramiro

FWIW this is what I get running the command on Django own tree:

Linux:

django$ PYTHONPATH=.. bin/django-admin.py makemessages --all
processing language th
Error: errors happened while running xgettext on __init__.py
/bin/sh: xgettext: command not found


django$ PYTHONPATH=.. bin/django-admin.py makemessages -l es_AR
processing language es_AR
Error: errors happened while running xgettext on __init__.py
/bin/sh: xgettext: command not found

Windows:

C:\...\django>python bin\django-admin.py makemessages --all
processing language ar
Error: errors happened while running xgettext on __init__.py
'xgettext' is not recognized as an internal or external command, operable program or batch file.


C:\...\django>python bin\django-admin.py makemessages -l es_AR
processing language es_AR
Error: errors happened while running xgettext on __init__.py
'xgettext' is not recognized as an internal or external command, operable program or batch file.

comment:4 Changed 3 years ago by jacob

  • milestone 1.3 deleted

Milestone 1.3 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.