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 details)
Built Distribution
File details
Details for the file Babel-Godot-0.1-1.tar.gz
.
File metadata
- Download URL: Babel-Godot-0.1-1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.19.9 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fae2071f28de3bc26973d96017ed6e7cd49f7d37173143f54947d803b0995798 |
|
MD5 | 73e9ea3df971ac667da693fda2fa302e |
|
BLAKE2b-256 | 7536d5c706e46f867aed8026204ec76b78bf2a91fb5968c96312e652300e46ba |
File details
Details for the file Babel_Godot-0.1-1-py2.py3-none-any.whl
.
File metadata
- Download URL: Babel_Godot-0.1-1-py2.py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.19.9 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a8e67357f1af8dfc298f63fc040e888ed5b9df24568dfff9396948a91ad646b |
|
MD5 | c42de98a282e5cb81cb4ea2aa53a961b |
|
BLAKE2b-256 | b70f59ec4d3f6d625e9ea55110251fd3cf6c778a05b50a304b0143167e773a18 |