msgfilter(filtr,
options=[])
|
|
Pass PO file through msgfilter(1) [hook factory].
Wrappers modify PO files in place; the executed command is:
msgfilter <options> -i <filepath> -o <filepath> <filtr>
where options parameter may be used to pass any extra
options to msgfilter. Both filtr and
options are lists of command line arguments rather than
monolithic strings, to avoid shell quoting problems. For example, to
rewrap the PO file at 70 columns:
msgfilter(["cat"], ["-w", "70"])
or to replace every foo with bar in
translation:
msgfilter(["sed", "s/foo/bar/g"])
- Parameters:
filtr ([string*]) - filter to use
options ([string*]) - additional options to pass to msgfilter
- Returns:
(filepath) -> numerr
- type F6A hook
Note:
In case msgfilter does not finish without errors,
wrapper always reports number of errors as 1.
|