Skip to main content

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.

Release files for Babel-Godot 1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Babel-Godot 1.2
File Size Uploaded
Babel-Godot-1.2.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Babel-Godot 1.2
File Interpreter ABI Platform
Babel_Godot-1.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 9.5 kB

Release files / Babel-Godot-1.2.tar.gz

Download URL Babel-Godot-1.2.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
cb71da26fecabbe9f961ebc9025861278ecff2998ca4453dea2db7f92f02393a
BLAKE2b-256 checksum
How to use checksums
b4667fb7715d7a1f55ea561f27d8949aed451bd3e5f0d20a928ac8ff01848c86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

Release files / Babel_Godot-1.2-py2.py3-none-any.whl

Download URL Babel_Godot-1.2-py2.py3-none-any.whl
Size 4.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
89425a31738d5ce7920468b32328525ee35264c12e98052cf9a57dcc656060a8
BLAKE2b-256 checksum
How to use checksums
08494e8de253fba8a1a08ccb4895d386a364eeb25bc5233f8aedb696b522cdbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

Release history Release notifications | RSS feed

This release

1.2 This release

2 release files

1.1

2 release files

1.0

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page