Opened 7 years ago

Closed 7 years ago

#22593 closed Uncategorized (invalid)

ABout the locale paths

Reported by: lushizhao@… Owned by: nobody
Component: Uncategorized Version: 1.6
Severity: Normal Keywords: i18n, locale_paths
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I want to make a django.po in the root of the project( contains all model and templates )
in my settings.py

LOCAL_PATHS = (

'/path/to/project/locale/',

)
but it doesn't work.and here is my project structure. It seems the django.po cannot be recognized.

project/

-app/
-app/
-project/

-settings.py
-urls.py

-templates/
-static/
-locale/

then i put the locale directory under an app directory and use the makemessages tool,
it works. But it only contains the translation which marked in this app, which means I can't make the translations that marked in templates or other apps.
So is there any better solution for this situation?

Change History (1)

comment:1 Changed 7 years ago by Tim Graham

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top