Linux command
po4a-updatepo 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
po4a-updatepo
po4a-updatepo
说明
po4a-updatepo updates the translation PO files when the original master document changes. It extracts translatable strings from the current master document and merges them with existing translations, marking obsolete, fuzzy, and new strings appropriately. The tool is part of the po4a (PO for anything) suite, which facilitates documentation translation using the gettext methodology. When the source document is modified, translators use this tool to synchronize their PO files and see which translations need updating.
参数
- -f, --format _format_
- Format of the master document (text, pod, man, sgml, xml, etc.)
- -m, --master _file_
- Path to the master (original) document
- -p, --po _file_
- Path to the PO file to update (can be specified multiple times)
- --help-format
- List available document formats
- -M, --master-charset _charset_
- Character set of the master document
- --previous
- Keep previous msgid strings in PO file for reference
- --no-deprecation
- Don't add deprecation comments
FAQ
What is the po4a-updatepo command used for?
po4a-updatepo updates the translation PO files when the original master document changes. It extracts translatable strings from the current master document and merges them with existing translations, marking obsolete, fuzzy, and new strings appropriately. The tool is part of the po4a (PO for anything) suite, which facilitates documentation translation using the gettext methodology. When the source document is modified, translators use this tool to synchronize their PO files and see which translations need updating.
How do I run a basic po4a-updatepo example?
Run `po4a-updatepo` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -f, --format _format_ do in po4a-updatepo?
Format of the master document (text, pod, man, sgml, xml, etc.)