Opened 10 years ago

Closed 10 years ago

#24805 closed Bug (fixed)

Improve makemessages error reporting for invalid locale path

Reported by: Wim Feijen Owned by: nobody
Component: Internationalization Version: 1.8
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

Following https://docs.djangoproject.com/en/dev/topics/i18n/translation/ in a Mezzanine project, I get an error when I run

django-admin.py makemessages -l nl

CommandError: Unable to find a locale path to store translations for file requirements.txt

mkdir locale solves it.
http://stackoverflow.com/questions/24937133/django-commanderror-unable-to-find-a-locale-path-to-store-translations-for-fi

Proposal: update documentation to add an instruction to make a locale directory, (f.e.
mkdir locale) before the command: django-admin.py makemessages -l nl

Change History (5)

comment:1 by Claude Paroz, 10 years ago

Component: DocumentationInternationalization
Triage Stage: UnreviewedAccepted
Type: Cleanup/optimizationBug

Do your project really have translations outside of apps? I doubt that requirements.txt have translations. So IMHO the bug is that makemessages is complaining before having tried to extract strings from files. I'll suggest a patch.

comment:3 by Tim Graham, 10 years ago

Triage Stage: AcceptedReady for checkin

comment:4 by Tim Graham, 10 years ago

Summary: Update translation documentation to add mkdir localeImprove makemessages error reporting for invalid locale path

comment:5 by Claude Paroz <claude@…>, 10 years ago

Resolution: fixed
Status: newclosed

In 7b027c4:

Fixed #24805 -- Delayed check for locale_dir in makemessages

Thanks Wim Feijen for the report.

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