Babel-Godot-1.2
توضیحات
Plugin for Babel to support Godot scene files (.tscn)
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | Babel-Godot-1.2 |
| نام | Babel-Godot |
| نسخه کتابخانه | 1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Remi Rampin |
| ایمیل نویسنده | remirampin@gmail.com |
| آدرس صفحه اصلی | https://github.com/remram44/pybabel-godot |
| آدرس اینترنتی | https://pypi.org/project/Babel-Godot/ |
| مجوز | BSD |
Babel Godot plugin
==================
This is a plugin for `Babel <http://babel.pocoo.org/>`_, the internationalization library, that adds support for scene files from the `Godot game engine <https://godotengine.org/>`_.
Installation
------------
Install Babel and this plugin::
pip install Babel Babel-Godot
Usage
-----
Using a mapping file like this::
[python: **.gd]
encoding = utf-8
extract_messages = tr
[godot_scene: **.tscn]
encoding = utf-8
[godot_resource: **.tres]
encoding = utf-8
you can extract messages to be translated from your ``.gd``, ``.tres``, and ``.tscn`` files using::
pybabel extract -F babel_mapping_file -k Label/text -k Resource/catchphrase -k tr -o translations.pot .
You can then create ``.po`` files from the POT catalog using `Poedit <https://poedit.net/>`_, or online services such as `Crowdin <https://crowdin.com/>`_, `Transifex <https://www.transifex.com/>`_, or `Weblate <https://weblate.org/>`_.
See ``testproject/`` in the repository for an example.
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.* | Python |
نحوه نصب
نصب پکیج whl Babel-Godot-1.2:
pip install Babel-Godot-1.2.whl
نصب پکیج tar.gz Babel-Godot-1.2:
pip install Babel-Godot-1.2.tar.gz