Skip to main content

BabelGladeExtractor

This package contains message catalog extractors for the following formats, extending Babel so it can handle them.

Getting started

To make these formats translatable, install this package using pip:

pip3 install BabelGladeExtractor

Then in your own projects, map some source and data files to the simple extractor names "glade" and "desktop" that are provided by this package. In your setup.py, add a section like

[extract_messages]
mapping_file = babel.cfg
output_file = subdir/myproject.pot
input_dirs = .

Next, create a separate babel.cfg file, and add sections to it for each format you want to translate.

[glade: **.ui]

[desktop: **.desktop]

You can then use Babel's setuptools integration or its command line interface for your routine i18n lifecycle tasks.

python3 setup.py extract_messages

There's a lot more to it than this, naturally. See Babel's extensive Working with Message Catalogs documentation for a detailed explanation of how to get translatable strings into your Python code.

In Glade 3.22, when you are editing a string property in a sidebar, click the edit icon on the right hand side of the text entry. In the dialog that pops up, enter the text in the main text box, and make sure that the Translatable checkbox is ticked. You can also add some helpful context or comments for your translators if you need to give them a hint. BabelGladeExtractor will handle the corresponding XML attributes appropriately when it extracts strings for translation.

Metadata

Release files for babelgladeextractor 0.7.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 babelgladeextractor 0.7.2
File Size Uploaded Provenance Actions
babelgladeextractor-0.7.2.tar.gz 11.1 kB Without provenance Details for babelgladeextractor-0.7.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for babelgladeextractor 0.7.2
File Interpreter ABI Platform Actions
babelgladeextractor-0.7.2-py3-none-any.whl Python 3 none any Details for babelgladeextractor-0.7.2-py3-none-any.whl

Total release size: 24.1 kB

Release files / babelgladeextractor-0.7.2.tar.gz

Download URL babelgladeextractor-0.7.2.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f0b5a6b1030f6e05f451b66577bee6d965e7e1547ee3a96f7caa0d949fc636fd
BLAKE2b-256 checksum
How to use checksums
e4b39343c2a44d2dd1cf21ceed95c1b68fa262393ac7f31e96f0a2e5d9013b7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release files / babelgladeextractor-0.7.2-py3-none-any.whl

Download URL babelgladeextractor-0.7.2-py3-none-any.whl
Size 13.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8bc401cd747162dadae754dabacc4f9b2a7254032d295120c2d9ca29b01acd92
BLAKE2b-256 checksum
How to use checksums
8525a09feebde146eb8571736036979fd0eb80562482be0c5684cc5634b7d350
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Security for babelgladeextractor 0.7.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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