Skip to content

confdnt/python-auto-translate-gettext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

python-auto-translate-gettext

What is it?

This tool will translate a gettext .po file using DeepL and save the translated strings to that same file.

Documentation

You will need the polib and deepl python libraries installed on your system. Get an API key from DeepL for free. Add it as an environment variable or directly in the script.

Just run python ./main.py

or

python ./main.py -l FR -f ./text.po

-l = Language -f = Filename (full path)

Provide the full path of your .po file. Pick the language it should be translated to e.g. DE or FR.

Licensing

python-auto-translate-gettext is licensed under the terms of the MIT License (see License).

python-auto-translate-gettext includes copies of Python's captured_output, captured_stdout and captured_stderr context managers, which are licensed under the terms of the PSF LICENSE AGREEMENT FOR PYTHON.

About

Simple script to translate gettext po files using DeepL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages