Skip to main content

Convert PO files to Excel Spreadsheets and back.

Project description

pox-convert

PyPI Python License

Convert .po (gettext) files to Excel spreadsheets and back. Supports fuzzy entries and multiple plural forms.

Screenshot

Usage

PO to Excel

uvx pox-convert export path/to/messages.po

Use globbing to convert multiple files at once:

uvx pox-convert export locales/**/django.po

Options:

-o, --outdir      Output directory (default: current directory)
-f, --filename    Filename template using {lang} and {date} variables
                  (default: translations_{lang}.xlsx)
-l, --language    Override the language metadata from the PO file
--fuzzy           How to handle fuzzy entries: stop, ignore, include (default: stop)

Excel to PO

uvx pox-convert import path/to/translations.xlsx

Options:

-o, --outdir      Output directory (default: current directory)
-f, --filename    Filename template using {lang} variable (default: {lang}.po)

Spreadsheet format

The generated Excel file has the following structure:

id Context Singular Form Translation
1 Hello Hallo
2 adjective Open Offen
3 Goodbye
  • Empty translations are highlighted in yellow with a black border
  • The header row is frozen for easy scrolling
  • Alternating row stripes improve readability
  • Plural forms get additional translation columns
  • Language metadata is stored as a custom document property

Django integration

pox-convert ships with a Django management command that wraps makemessages to skip fuzzy matching:

python manage.py makemessages_nofuzzy -l de

Add pox.contrib.django.pox to your INSTALLED_APPS to use it.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pox_convert-1.0.1.tar.gz (564.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pox_convert-1.0.1-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

Details for the file pox_convert-1.0.1.tar.gz.

File metadata

  • Download URL: pox_convert-1.0.1.tar.gz
  • Upload date:
  • Size: 564.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pox_convert-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e597058b959a014bba9dfddd045da8a24c95194a11e803b202b079cf3e8b6676
MD5 645971339703a1f0834c8b654a8be671
BLAKE2b-256 a8c7418364528c109d3a01ff11dd2eae971b7da3e8eaeccb87367b5851dc25e0

See more details on using hashes here.

File details

Details for the file pox_convert-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pox_convert-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 19.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pox_convert-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 25cf059578ac2b88645b68cbd037829e99fc293944098a203518a57474da71f7
MD5 6e4ac767cc5753dd5f8fc06195622942
BLAKE2b-256 ef56b7e28a99be887e7bd35b4476812cc269c26d20abbf0fc07f53ec5d9360a7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page