mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
42 lines
937 B
Plaintext
42 lines
937 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# msgattrib
|
|
|
|
> Filter and manipulate message attributes in `.po` translation files.
|
|
> More information: <https://www.gnu.org/software/gettext/manual/gettext.html#msgattrib-Invocation>.
|
|
|
|
- Keep only translated messages:
|
|
|
|
`msgattrib --translated {{input.po}} > {{translated.po}}`
|
|
|
|
- Keep only untranslated messages:
|
|
|
|
`msgattrib --untranslated {{input.po}} > {{untranslated.po}}`
|
|
|
|
- Remove fuzzy messages:
|
|
|
|
`msgattrib --no-fuzzy {{input.po}} > {{clean.po}}`
|
|
|
|
- Keep only fuzzy messages:
|
|
|
|
`msgattrib --only-fuzzy {{input.po}} > {{fuzzy.po}}`
|
|
|
|
- Mark all messages as fuzzy:
|
|
|
|
`msgattrib --set-fuzzy {{input.po}} > {{fuzzy.po}}`
|
|
|
|
- Clear fuzzy marks:
|
|
|
|
`msgattrib --clear-fuzzy {{input.po}} > {{clean.po}}`
|
|
|
|
- Sort output by file location:
|
|
|
|
`msgattrib {{[-F|--sort-by-file]}} {{input.po}} > {{sorted.po}}`
|
|
|
|
- Display help:
|
|
|
|
`msgattrib {{[-h|--help]}}`
|