Skip to content
/ trubar Public

Utility for translation of strings and f-strings in Python files

License

Notifications You must be signed in to change notification settings

janezd/trubar

Repository files navigation

Trubar

A tool for translation and localization of Python programs via modification of source files.

Trubar supports f-strings and does not require any changes to the original source code, such as marking strings for translation.

Installation and use

Use pip to install Trubar

pip install trubar`

Collect (or update) all strings in your project by

trubar collect -s myproject/source messages.jaml

Add translations to messages.jaml and then run

trubar translate -s myproject/source -d translated/myproject/source messages.jaml

to produce translated source files.

See Getting Started for a slightly longer introduction and complete documentation.

About

Utility for translation of strings and f-strings in Python files

Resources

License

Stars

Watchers

Forks

Packages

No packages published