Skip to main content

gettext-translator-ollama

Ollama backend for gettext-translator.

Usage from gettext-translator

gettext-translator --backend ollama --config ollama-sample.yaml --src en --dst de_DE --po /path/to/example/messages.po

This command translates the messages.po file from English into German.

Configuration

  • ollama the address:port of the Ollama server. For example: "127.0.0.1:11434"
  • model the model you want to use. See the recommended models below.
  • temperature optional. Default: 0.1.

Thinking is disabled for thinking models (qwen3...), it slows the translation down and doesn't improve it.

Installation

pip install "gettext-translator[ollama]"

For 2026, model names in Ollama have been standardized following the version and parameter size nomenclature. Here is the exact list of commands you should run based on your needs and hardware:

Currently the most balanced model for translation and general tasks:

  • qwen2.5:14b
  • Note: If version 3 is already available in your region: qwen3:14b.

2. Specialized in Translation (High Fidelity)

If you are looking for maximum grammatical precision, Google released specific variants within the Gemma 3 family.

  • For most PCs: translategemma:12b
  • For lightweight devices (laptops): translategemma:4b
  • Maximum quality (Requires +24GB VRAM): translategemma:27b

3. The Meta "All-Rounder"

Ideal if you need the model to be very fast and understand complex instructions in English and Spanish perfectly.

  • Balanced version: llama3.2:3b
  • Powerful version: llama4:8b (The latest version of the Llama series in 2026).

Summary

Ideal Use Case Exact Name for Ollama RAM/VRAM Requirement
Technical Translation qwen2.5:14b 16 GB
Literary Translation translategemma:12b 12 GB
Fast/Mobile Translation gemma3:4b 8 GB
Very Long Contexts mistral-nemo:12b 12 GB

Tip to save space

If you are not sure which one will give you the best result, you can use pull to download them in the background:

ollama pull qwen2.5:14b
ollama pull translategemma:12b

and then modify the YAML configuration file to try each one for your use cases.

License

Copyright (C) 2026 Rodolfo González González.

Licensed under LGPL 3.0 or later.

Metadata

Release files for gettext-translator-ollama 0.1.1

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-ollama 0.1.1
File Size Uploaded Provenance Actions
gettext_translator_ollama-0.1.1.tar.gz 17.6 kB With provenance Details for gettext_translator_ollama-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 37.6 kB

Release files / gettext_translator_ollama-0.1.1.tar.gz

Download URL gettext_translator_ollama-0.1.1.tar.gz
Size 17.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0c95dcf1a0f6e792cc13cf047cf165617c02c768c2e9f03c8da04f608ff772e2
BLAKE2b-256 checksum
How to use checksums
c2e7c65a32641169f09be56f2fa4dfc8b7fa543c3f21ee9f21f2eb7cceef1770
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 log

Release files / gettext_translator_ollama-0.1.1-py3-none-any.whl

Download URL gettext_translator_ollama-0.1.1-py3-none-any.whl
Size 20.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af04caed1224300d268fea13864b039a29ad82f58d42d68424331bf863387d36
BLAKE2b-256 checksum
How to use checksums
cfe851da28fd462d56555f5cc2d19e245dd177a800c564298f8bb945df59f96e
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 log

Security for gettext-translator-ollama 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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for gettext_translator_ollama-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 log

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.1 This release

2 release files Full 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