Skip to main content

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 msgid separately 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 GPL 3.0.

Metadata

Release files for gettext-translator-marianmt 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gettext-translator-marianmt 0.1.0
File Size Uploaded Provenance Actions
gettext_translator_marianmt-0.1.0.tar.gz 3.2 kB Without provenance Details for gettext_translator_marianmt-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gettext-translator-marianmt 0.1.0
File Interpreter ABI Platform Actions
gettext_translator_marianmt-0.1.0-py3-none-any.whl Python 3 none any Details for gettext_translator_marianmt-0.1.0-py3-none-any.whl

Total release size: 7.5 kB

Release files / gettext_translator_marianmt-0.1.0.tar.gz

Download URL gettext_translator_marianmt-0.1.0.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
639fdc5158216e4da02cdcb88759aa6cd879fd8dad0cef787a37ae4e5fb2dbe5
BLAKE2b-256 checksum
How to use checksums
3b45eb04420392266e04b870c9bd7080d34109b14c3127c7da1e8f0bcb755cf4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / gettext_translator_marianmt-0.1.0-py3-none-any.whl

Download URL gettext_translator_marianmt-0.1.0-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f3d7b56b1359b12f264773986bda1bea3b4c745a22b50b8f756d5cbaa52f8ca3
BLAKE2b-256 checksum
How to use checksums
b74151cc1109f27a5d4bc1561f7bdbc3fdaadea5cc4bf6f4c262c9b473a6ca76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for gettext-translator-marianmt 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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