A specialized grep for po files.
Go to file
2022-12-01 15:00:31 +01:00
tests Colors and tty (#53) 2022-08-30 17:09:12 +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 Releasing 0.1.4. 2022-12-01 14:51:24 +01:00
pyproject.toml Releasing 0.1.3. 2022-08-30 17:21:50 +02:00
README.md Add blame option (#57) 2022-12-01 14:46:27 +01:00
requirements-dev.in Colors and tty (#53) 2022-08-30 17:09:12 +02:00
requirements-dev.txt Colors and tty (#53) 2022-08-30 17:09:12 +02:00
requirements.txt Colors and tty (#53) 2022-08-30 17:09:12 +02:00
tox.ini Colors and tty (#53) 2022-08-30 17:09:12 +02:00

pogrep

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

Pogrep is part of poutils!

Poutils (.po utils) is a metapackage to easily install useful Python tools to use with po files and pogrep is a part of it! Go check out Poutils to discover the other tools!

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 and the locales directories which are not relevant:

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

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

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

Blame usage of 'allogène' in traductions:

pogrep --recursive --ignore-case --blame allogène

Contributing

Please test your contribution using tox -p auto.