Plugin for Babel to support Godot scene files (.tscn)
Project description
This is a plugin for Babel, the internationalization library, that adds support for scene files from the Godot game engine.
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, or online services such as Crowdin, Transifex, or Weblate.
See testproject/ in the repository for an example.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Babel-Godot-1.2.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for Babel_Godot-1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89425a31738d5ce7920468b32328525ee35264c12e98052cf9a57dcc656060a8 |
|
MD5 | 5f74c1ca96c6d283e64e94e44002658a |
|
BLAKE2b-256 | 08494e8de253fba8a1a08ccb4895d386a364eeb25bc5233f8aedb696b522cdbd |