开发者

Django: How to access locale string among apps?

开发者 https://www.devze.com 2023-03-19 02:35 出处:网络
There are two apps in my Django project root: app1/ app1/locale/ app2/ app2/locale/ I want to use locale string form app1 in app2, so I can have no duplicated msgid.

There are two apps in my Django project root:

app1/
app1/locale/
app2/
app2/locale/

I want to use locale string form app1 in app2, so I can have no duplicated msgid.

Maybe, another solution is shared locale dir in project开发者_运维百科 root dir:

app1/
app2/
locale/

but I have to rebuild many locale files ...


You can make a symlink between them.

0

精彩评论

暂无评论...
验证码 换一张
取 消