gettext-translator-marianmt
MarianMT backend for gettext-translator.
Usage from gettext-translator
gettext-translator --backend marianmt --src en --dst zh_CN --po ../../example/messages.po
This command translates the messages.po file from English into Simplified Chinese from China (zh_CN), using the Helsinki-NLP OPUS multilingual models processing 100 translations per batch. This plugin runs locally.
Configuration
None for the moment.
Installation
pip install "gettext-translator[marianmt]"
Notes
- Plural forms: this backend translates the singular and the plural
msgidseparately and uses the plural translation for every form except the first one. That is right for languages with two plural forms; for languages with more (Russian, Polish, Arabic...) use an LLM backend.
- You might need to get a token from HuggingFace and set this environment variable in order to avoid limits:
export HF_TOKEN=hf_xxxxxxxxxxxxxxxxx
License
Copyright (C) 2026 Rodolfo González González.
Licensed under LGPL 3.0 or later.
Metadata
Release files for gettext-translator-marianmt 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gettext_translator_marianmt-0.1.1.tar.gz | 17.1 kB | With provenance | Details for gettext_translator_marianmt-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gettext_translator_marianmt-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for gettext_translator_marianmt-0.1.1-py3-none-any.whl |
Total release size: 36.7 kB
Release files / gettext_translator_marianmt-0.1.1.tar.gz
| Download URL | gettext_translator_marianmt-0.1.1.tar.gz |
|---|---|
| Size | 17.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e58abb321efa31dd1ea654e39b07b9f9141ccbfe13289c5f3288ac71f46d0ed9
|
|
BLAKE2b-256 checksum How to use checksums |
c47b1fd20a45a7b579433fc9ea74b32da841db06a7e22bcb70922b49188520ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.
Transparency logRelease files / gettext_translator_marianmt-0.1.1-py3-none-any.whl
| Download URL | gettext_translator_marianmt-0.1.1-py3-none-any.whl |
|---|---|
| Size | 19.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6ef30d9c8fcb1ac201814199257b4d78ffda3f69260a1587a6828f974f23e0e8
|
|
BLAKE2b-256 checksum How to use checksums |
7922f5c855883b5c0dd87994f60a961aabd19a4201119651d526b5c78b1f59b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.
Transparency logSecurity for gettext-translator-marianmt 0.1.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for gettext_translator_marianmt-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.
Transparency logA 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.