Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

AFPy/pogrep

Repository files navigation

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.

About

Repo migré sur une forge open-source et hébergée en France : https://git.afpy.org/AFPy/pogrep

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •  

Languages