Contents  History  Source  Email Feedback

pogrep

The pogrep tool extracts messages that match a regular expresion into a new set
of PO files that can be examined, edited and corrected.  These corrections can
then be merged using pomerge.

Example

pogrep --accelerator="_" --search msgid -I -e "software|hardware" only-zu only-zu-check

Search for the words "software" or "hardware" in the msgid field.  Ignore case
(-I) and treat the underscore (_) character as an accelerator key.  Search
through all PO files in the directory "only-zu" and place any matches in PO
files in the directory "only-zu-check".

Options

  --version             show program's version number and exit
  -h, --help            show this help message and exit
  --progress=PROGRESS   show progress as: dots, none, bar, verbose
  --errorlevel=ERRORLEVEL
                        show errorlevel as: none, message, exception, traceback
  -iINPUT, --input=INPUT
                        read from INPUT in pot, po formats
  -xEXCLUDE, --exclude=EXCLUDE
                        exclude names matching EXCLUDE from input paths
  -oOUTPUT, --output=OUTPUT
                        write to OUTPUT in po, pot formats
  --psyco=PSYCO         use psyco to speed up the operation (set mode)
  --search=SEARCHPARTS  searches the given parts 
		(valid values are msgid or msgstr)
  -I, --ignore-case     ignore case distinctions
  -e, --regexp          use regular expression matching
  -v, --invert-match    select non-matching lines
  --accelerator=ACCELERATOR
                        ignores the given accelerator when matching
		(valid values are &_~)