← 返回命令列表

Linux command

msguniq 命令

文本

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

常用示例

Remove duplicate messages

msguniq [input.po] -o [output.po]

Use first occurrence

msguniq -u [input.po] -o [output.po]

Report duplicates

msguniq -d [input.po]

Sort output

msguniq -s [input.po] -o [output.po]

Unique by msgid and msgctxt

msguniq --use-first [input.po] -o [output.po]

说明

msguniq removes duplicate translations from PO files. It's part of GNU gettext. The tool unifies message entries. Handles duplicates by combining or selecting.

参数

-o _FILE_
Output file.
-u
Keep only unique messages.
-d
Report duplicate messages.
-s
Sort output.
--use-first
Use first of duplicates.
--help
Display help information.

FAQ

What is the msguniq command used for?

msguniq removes duplicate translations from PO files. It's part of GNU gettext. The tool unifies message entries. Handles duplicates by combining or selecting.

How do I run a basic msguniq example?

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

What does -o _FILE_ do in msguniq?

Output file.