Opened 6 years ago

Closed 6 years ago

Last modified 5 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.

Change History (4)

comment:1 Changed 6 years ago by Jannis Leidel

Component: TranslationsInternationalization
milestone: 1.3
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedAccepted

comment:2 Changed 6 years ago by Jannis Leidel

Resolution: invalid
Status: newclosed

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 6 years ago by Ramiro Morales

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 5 years ago by Jacob

milestone: 1.3

Milestone 1.3 deleted

Note: See TracTickets for help on using tickets.
Back to Top