2019-11-01 19:22:22 +00:00
|
|
|
# pogrep
|
|
|
|
|
2020-05-20 22:05:09 +00:00
|
|
|
Searches for string in po files. *popgrep* supports various *GNU grep* options
|
|
|
|
to ease its use.
|
2019-11-01 19:22:22 +00:00
|
|
|
|
2020-10-14 16:24:12 +00:00
|
|
|
## Pogrep is part of poutils!
|
2020-06-14 17:20:10 +00:00
|
|
|
|
2020-10-14 16:24:12 +00:00
|
|
|
[Poutils](https://pypi.org/project/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](https://pypi.org/project/poutils) to discover the other tools!
|
|
|
|
|
|
|
|
## Examples
|
2019-11-01 19:22:22 +00:00
|
|
|
|
2020-05-20 22:05:09 +00:00
|
|
|
Print usage: `pogrep --help`
|
|
|
|
|
|
|
|
Find how 'flavors' has already been translated: search recursively in the
|
2022-12-01 13:44:23 +00:00
|
|
|
current directory, show the names of the matching files, excluding the venv and the
|
|
|
|
locales directories which are not relevant:
|
2020-05-20 22:05:09 +00:00
|
|
|
|
2022-12-01 13:44:23 +00:00
|
|
|
`pogrep --recursive --line-number --exclude-dir venv --exclude-dir locales flavor `
|
2020-05-20 22:05:09 +00:00
|
|
|
|
|
|
|
Search the word 'typo' in traductions, but not in sources:
|
|
|
|
|
|
|
|
`pogrep --recursive --translation --no-source --word-regexp typo `
|
2020-06-14 17:20:10 +00:00
|
|
|
|
|
|
|
|
2020-10-14 16:24:12 +00:00
|
|
|
## Contributing
|
2020-06-14 17:20:10 +00:00
|
|
|
|
|
|
|
Please test your contribution using `tox -p auto`.
|