/pybabel-godot

Plugin for Babel to support Godot scene files (.tscn)

Primary LanguagePythonOtherNOASSERTION

Babel Godot plugin

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.