Opened 13 years ago

Closed 13 years ago

Last modified 12 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: no UI/UX: no

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 by Jannis Leidel, 13 years ago

Component: TranslationsInternationalization
milestone: 1.3
Triage Stage: UnreviewedAccepted

comment:2 by Jannis Leidel, 13 years ago

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

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

milestone: 1.3

Milestone 1.3 deleted

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