Opened 13 years ago

Closed 13 years ago

#18492 closed Cleanup/optimization (invalid)

LOCALE_PATHS documentation mismatch?

Reported by: baokham.chau@… Owned by: nobody
Component: Documentation Version: 1.4
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

At https://docs.djangoproject.com/en/dev/ref/settings/ (and also for the 1.4 version), we have:

LOCALE_PATHS
Default: () (Empty tuple)

A tuple of directories where Django looks for translation files. See Using translations in your own projects.

However, when I set LOCALE_PATHS = ('my/path/to/locale/'), it didn't work. Setting LOCALE_PATHS = my/path/to/locale/ works. Suggest changing the documentation to reflect that LOCALE_PATHS is a list, not a tuple.

Thanks!

Change History (1)

comment:1 by anonymous, 13 years ago

Resolution: invalid
Status: newclosed

Nevermind, I forgot to add a comma in LOCALE_PATHS = ('my/path/to/locale/'). Should have been LOCALE_PATHS = ('my/path/to/locale/', ). If you think that the documentation is clear enough, please disregard and close this bug.

Thanks!

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