mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-15 23:48:56 +00:00
Update cheatsheets
This commit is contained in:
41
tldr/msgattrib
Normal file
41
tldr/msgattrib
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
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/html_node/msgattrib-Invocation.html>.
|
||||
|
||||
- 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]}}`
|
||||
Reference in New Issue
Block a user