Linux command
msgfilter 命令
文本
涉及管道、覆盖或删除,执行前请先确认路径和参数。
常用示例
Filter translations through command
msgfilter [sed -e 's/old/new/g'] < [input.po] > [output.po]
Apply filter to messages
msgfilter -i [input.po] -o [output.po] [tr a-z A-Z]
Keep header
msgfilter --keep-header [command] < [input.po]
Process specific messages
msgfilter --msgid [command] < [input.po]
说明
msgfilter filters PO file translations through a command. It's part of GNU gettext. The tool processes each msgstr through a filter. Useful for batch transformations.
参数
- -i _FILE_
- Input PO file.
- -o _FILE_
- Output PO file.
- --keep-header
- Preserve PO header.
- --msgid
- Filter msgid instead of msgstr.
- --help
- Display help information.
FAQ
What is the msgfilter command used for?
msgfilter filters PO file translations through a command. It's part of GNU gettext. The tool processes each msgstr through a filter. Useful for batch transformations.
How do I run a basic msgfilter example?
Run `msgfilter [sed -e 's/old/new/g'] < [input.po] > [output.po]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -i _FILE_ do in msgfilter?
Input PO file.