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

Qt Designer 做的 UI 转换的 py 脚本能直接 pylupdate5 转换成 ts 文件供 Qt Linguist 翻译使用,直接 Python 脚本转换后是空的

  •  
  •   a251922581 · 2017-08-12 15:07:16 +08:00 · 1840 次点击
    这是一个创建于 2450 天前的主题,其中的信息可能已经有所发展或是发生改变。
    Qt Designer 做好 UI 保存成 abc.ui
    用 pyuic5-3.4 abc.ui -o abc.py 转换到 python3 脚本格式
    用 pylupdate5-3.4 abc.py -o abc.ts 转换到 Qt Linguist 能直接用来翻译的 ts 文件
    如果是写的 Python3 脚本(PyQt 业务程序),用 pylupdate5-3.4 的话转换出的 ts 文件( XML 格式)是空的。。
    是命令行参数少了吗..
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   945 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 19:34 · PVG 03:34 · LAX 12:34 · JFK 15:34
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.