← 返回命令列表

Linux command

msgattrib 命令

文本

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

常用示例

Extract translated messages

msgattrib --translated [input.po] -o [output.po]

Extract untranslated messages

msgattrib --untranslated [input.po] -o [output.po]

Extract fuzzy messages

msgattrib --fuzzy [input.po] -o [output.po]

Clear fuzzy flags

msgattrib --clear-fuzzy [input.po] -o [output.po]

说明

msgattrib filters gettext PO files by message attributes. Extracts or modifies messages based on translation status (translated, fuzzy, obsolete). Part of GNU gettext for internationalization workflows.

参数

--translated
Keep only translated messages.
--untranslated
Keep only untranslated messages.
--fuzzy
Keep only fuzzy messages.
--clear-fuzzy
Remove fuzzy flags.
--set-fuzzy
Set fuzzy flags.
-o _file_
Output file.

FAQ

What is the msgattrib command used for?

msgattrib filters gettext PO files by message attributes. Extracts or modifies messages based on translation status (translated, fuzzy, obsolete). Part of GNU gettext for internationalization workflows.

How do I run a basic msgattrib example?

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

What does --translated do in msgattrib?

Keep only translated messages.