Babel插件,支持Godot场景文件 (.tscn)
项目描述
这是一个为Babel国际化库的插件,它增加了对Godot游戏引擎场景文件 (.tscn) 的支持。
安装
安装Babel和此插件
pip install Babel Babel-Godot
使用
使用如下映射文件
[python: **.gd] encoding = utf-8 extract_messages = tr [godot_scene: **.tscn] encoding = utf-8 [godot_resource: **.tres] encoding = utf-8
您可以使用以下命令从您的 .gd,.tres 和 .tscn 文件中提取要翻译的消息
pybabel extract -F babel_mapping_file -k Label/text -k Resource/catchphrase -k tr -o translations.pot .
然后您可以使用Poedit或在线服务,如Crowdin,Transifex或Weblate从POT目录创建 .po 文件。
请参阅存储库中的 testproject/ 以获取示例。
项目详情
关闭
Babel-Godot-1.2.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | cb71da26fecabbe9f961ebc9025861278ecff2998ca4453dea2db7f92f02393a |
|
MD5 | f9ad8c100195748b68116b71bbfc3b50 |
|
BLAKE2b-256 | b4667fb7715d7a1f55ea561f27d8949aed451bd3e5f0d20a928ac8ff01848c86 |
关闭
Babel_Godot-1.2-py2.py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 89425a31738d5ce7920468b32328525ee35264c12e98052cf9a57dcc656060a8 |
|
MD5 | 5f74c1ca96c6d283e64e94e44002658a |
|
BLAKE2b-256 | 08494e8de253fba8a1a08ccb4895d386a364eeb25bc5233f8aedb696b522cdbd |