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.
Using a mapping file like this:
[python: **.gd] encoding = utf-8 extract_messages = tr [godot_scene: **.tscn] encoding = utf-8
you can extract messages to be translated from both your .gd and .tscn files using:
pybabel extract -F babel_mapping_file -k Label/text -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.
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-0.1-1.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for Babel_Godot-0.1-1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a8e67357f1af8dfc298f63fc040e888ed5b9df24568dfff9396948a91ad646b |
|
MD5 | c42de98a282e5cb81cb4ea2aa53a961b |
|
BLAKE2b-256 | b70f59ec4d3f6d625e9ea55110251fd3cf6c778a05b50a304b0143167e773a18 |