Update cheatsheets

This commit is contained in:
ivuorinen
2025-10-23 00:19:46 +00:00
parent 0cc7cfe867
commit 058ce19122
64 changed files with 437 additions and 86 deletions

41
tldr/msgattrib Normal file
View 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]}}`