#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 , 14 years ago
Component: | Translations → Internationalization |
---|---|
milestone: | → 1.3 |
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 14 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:3 by , 14 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.
Note:
See TracTickets
for help on using tickets.
Actually, this works for me, raising this: