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
Melodic
V2EX  ›  Python

Flask-babel 不翻译...求解答

  •  
  •   Melodic · 2015-01-23 14:44:37 +08:00 · 2359 次点击
    这是一个创建于 3380 天前的主题,其中的信息可能已经有所发展或是发生改变。

    完全按照文档配置。

    Stackoverflow问题链接

    2 条回复    2015-02-26 00:01:20 +08:00
    Melodic
        1
    Melodic  
    OP
       2015-01-30 00:56:23 +08:00
    好吧,不知道为什么Babal的localeselector不识别`zh_Cn`,要return一`zh`才生效,明明locale -a有zh_CN啊。
    Melodic
        2
    Melodic  
    OP
       2015-02-26 00:01:20 +08:00
    好吧,zh_Hans也是可以的,而且新版本只认这个,但是和flask-admin的筛选器仍然有冲突
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4890 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 03:58 · PVG 11:58 · LAX 20:58 · JFK 23:58
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.