[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
9.3.3 Message selection
[-N sourcefile]... [-M domainname]... [-J msgctxt-pattern] [-K msgid-pattern] [-T msgstr-pattern] [-C comment-pattern]
A message is selected if
- it comes from one of the specified source files,
- or if it comes from one of the specified domains,
- or if ‘-J’ is given and its context (msgctxt) matches msgctxt-pattern,
- or if ‘-K’ is given and its key (msgid or msgid_plural) matches msgid-pattern,
- or if ‘-T’ is given and its translation (msgstr) matches msgstr-pattern,
- or if ‘-C’ is given and the translator’s comment matches comment-pattern.
When more than one selection criterion is specified, the set of selected messages is the union of the selected messages of each criterion.
msgctxt-pattern or msgid-pattern or msgstr-pattern syntax:
[-E | -F] [-e pattern | -f file]...
patterns are basic regular expressions by default, or extended regular expressions if -E is given, or fixed strings if -F is given.
- ‘-N sourcefile’
- ‘--location=sourcefile’
-
Select messages extracted from sourcefile. sourcefile can be either a literal file name or a wildcard pattern.
- ‘-M domainname’
- ‘--domain=domainname’
-
Select messages belonging to domain domainname.
- ‘-J’
- ‘--msgctxt’
-
Start of patterns for the msgctxt.
- ‘-K’
- ‘--msgid’
-
Start of patterns for the msgid.
- ‘-T’
- ‘--msgstr’
-
Start of patterns for the msgstr.
- ‘-C’
- ‘--comment’
-
Start of patterns for the translator’s comment.
- ‘-X’
- ‘--extracted-comment’
-
Start of patterns for the extracted comments.
- ‘-E’
- ‘--extended-regexp’
-
Specify that pattern is an extended regular expression.
- ‘-F’
- ‘--fixed-strings’
-
Specify that pattern is a set of newline-separated strings.
- ‘-e pattern’
- ‘--regexp=pattern’
-
Use pattern as a regular expression.
- ‘-f file’
- ‘--file=file’
-
Obtain pattern from file.
- ‘-i’
- ‘--ignore-case’
-
Ignore case distinctions.
- ‘-v’
- ‘--invert-match’
-
Output only the messages that do not match any selection criterion, instead of the messages that match a selection criterion.
[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated on June 7, 2014 using texi2html 5.0.