Opened 10 years ago
Last modified 10 years ago
#24247 closed Bug
makemessages command should use case insensitivity when checking for paths in LOCALE_PATHS — at Initial Version
Reported by: | Teri | Owned by: | Teri |
---|---|---|---|
Component: | Internationalization | Version: | 1.6 |
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
The makemessages command should use case insensitivity when checking for paths in LOCALE_PATHS
For example, I set LOCALE_PATHS to the path ‘locale’
The .po files will only be generated if the locale folder is named with the same lowercase spelling of ‘locale’.
If the locale folder has the name “LOCALE”, Django will not find the folder ‘locale’, and makemessages will throw out this command error:
Error: This script should be run from the Django SVN tree or your project or app tree. If you did indeed run it from the SVN checkout or your project or application, maybe you are just missing the conf/locale (in the django tree) or locale (for project and application) directory? It is not created automatically, you have to create it by hand if you want to enable i18n for your project or application.