← 返回命令列表

Linux command

pofilter 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Check for common errors

pofilter -t [check] [input.po] [output.po]

List available checks

pofilter --list

Check accelerators

pofilter -t accelerators [input.po] [output.po]

Check printf format

pofilter -t printf [input.po] [output.po]

Multiple checks

pofilter -t escapes -t variables [input.po] [output.po]

说明

pofilter filters PO files to find translation errors. It checks for common issues like missing variables, inconsistent punctuation, and encoding problems. Part of the Translate Toolkit.

参数

-t, --test _test_
Test to run.
-l, --language _lang_
Target language.
--excludefilter _filter_
Exclude specific test.
--list
List available tests.
-i, --input _path_
Input file or directory.
-o, --output _path_
Output file or directory.

FAQ

What is the pofilter command used for?

pofilter filters PO files to find translation errors. It checks for common issues like missing variables, inconsistent punctuation, and encoding problems. Part of the Translate Toolkit.

How do I run a basic pofilter example?

Run `pofilter -t [check] [input.po] [output.po]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -t, --test _test_ do in pofilter?

Test to run.