A specialized grep for po files.
Go to file
2020-06-14 19:27:26 +02:00
tests Drop flit for a more classic install setup, introduce tox, pytest, pip-compile, ... 2020-06-14 19:23:57 +02:00
.gitignore Adding a .gitignore. 2020-04-02 15:44:16 +02:00
LICENSE LICENSE 2019-11-01 20:23:59 +01:00
pogrep.py Drop flit for a more classic install setup, introduce tox, pytest, pip-compile, ... 2020-06-14 19:23:57 +02:00
pyproject.toml Drop flit for a more classic install setup, introduce tox, pytest, pip-compile, ... 2020-06-14 19:23:57 +02:00
README.md Drop flit for a more classic install setup, introduce tox, pytest, pip-compile, ... 2020-06-14 19:23:57 +02:00
requirements-dev.in Drop flit for a more classic install setup, introduce tox, pytest, pip-compile, ... 2020-06-14 19:23:57 +02:00
requirements-dev.txt Bump requirements. 2020-06-14 19:27:26 +02:00
setup.cfg Drop flit for a more classic install setup, introduce tox, pytest, pip-compile, ... 2020-06-14 19:23:57 +02:00
setup.py Drop flit for a more classic install setup, introduce tox, pytest, pip-compile, ... 2020-06-14 19:23:57 +02:00
tox.ini Drop flit for a more classic install setup, introduce tox, pytest, pip-compile, ... 2020-06-14 19:23:57 +02:00

pogrep

Searches for string in po files. popgrep supports various GNU grep options to ease its use.

Examples

Print usage: pogrep --help

Find how 'flavors' has already been translated: search recursively in the current directory, show the names of the matching files, excluding the venv directory which contains a virtual env:

pogrep --recursive --line-number --exclude-dir venv flavor

Search the word 'typo' in traductions, but not in sources:

pogrep --recursive --translation --no-source --word-regexp typo

Contributing

Please test your contribution using tox -p auto.