Opened 7 years ago

Closed 7 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


At (and also for the 1.4 version), we have:

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.


Change History (1)

comment:1 Changed 7 years ago by anonymous

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.


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