开发者

Django: How to access locale string among apps?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜