Skip to main content

lint-po

A simple gettext .po linter to check for mangled variable names in translations.

Features

  • reads utf-8 encoded *.po files
  • skips msgid/msgstr pairs where either value is unset
  • compares original/translation pairs for common interpolation markers:
    • supports {name}, {123}, <123>, </123>, <123/>, %(name)s
    • ensures both messages use the same set of variables - no renames, no removals, no additions
  • supports Github Actions error reporting syntax (when env.GITHUB_ACTIONS is set)
  • supports lingui plural syntax - msgstr "{count, plural, one {依存関係} other {依存関係}}" is the one case when the thing in {} needs to change between msgid and msgstr

Example usage

$ lint-po locale/*.po

Difference between msgid="Hello {name}" and msgstr="Bonjour {nom}":
  Missing from msgstr: {name}
  Unexpected in msgstr: {nom}
  at problem.po:2

TODO

  • catch nesting errors (<0><1></0></1>), reordering is fine but nesting still needs to make sense
  • ensure positional counts (3x %s vs 4x %s, etc.)
  • build: autoincrement version for releases
  • check headers, Language: should match the filename

Metadata

Release files for lint-po 0.1.5

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

Source distribution (sdist)

Source distribution for lint-po 0.1.5
File Size Uploaded
lint_po-0.1.5.tar.gz 7.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lint-po 0.1.5
File Interpreter ABI Platform
lint_po-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 16.3 kB

Release files / lint_po-0.1.5.tar.gz

Download URL lint_po-0.1.5.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3e67ed31568163a9a9e1770dce7ce543dc120a576da17e8343a478763b732213
BLAKE2b-256 checksum
How to use checksums
3e4b31ee4d62c31262d6d891381882df2bfd64cf8473c7deca40d41881fe9b49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 5, 2026.

Transparency log

Release files / lint_po-0.1.5-py3-none-any.whl

Download URL lint_po-0.1.5-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc5b316104c2a61e54c5132e1ab2f20f9452886d69548719eb37d87570661806
BLAKE2b-256 checksum
How to use checksums
68209a3127fb08285c7a4fc7a8abf8910ea3cca6f926dab634f9f4f75f45e894
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 5, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

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