V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
pythonee
V2EX  ›  Python

django 的 makemessages 不会把 installed app 的多语言包含进来吗

  •  
  •   pythonee · 2015-05-15 09:57:03 +08:00 · 2186 次点击
    这是一个创建于 3276 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我在project root下面跑makemessages,发现语言key只是当前项目的,它不会扫描settings.py,把installed app下面的app的多语言也带过来吗
    6 条回复    2015-05-18 14:33:07 +08:00
    recall704
        1
    recall704  
       2015-05-15 10:11:40 +08:00
    不知道你用的是哪个版本,我记得需要自己设置
    LOCALE_PATHS
    pythonee
        2
    pythonee  
    OP
       2015-05-15 10:46:04 +08:00
    @recall704 django 1.6
    ericls
        3
    ericls  
       2015-05-15 22:45:45 +08:00 via Android
    你是 manage.py 还是 django-admin 在哪个目录执行的?
    pythonee
        4
    pythonee  
    OP
       2015-05-18 11:12:58 +08:00
    @ericls 是在项目的当前目录
    ericls
        5
    ericls  
       2015-05-18 13:10:02 +08:00
    pythonee
        6
    pythonee  
    OP
       2015-05-18 14:33:07 +08:00
    @ericls 是的, python manage.py makemessages -l zh_CN
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2115 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 00:17 · PVG 08:17 · LAX 17:17 · JFK 20:17
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.