Files
cheatsheet-tldr/tldr/gettext
2025-03-26 00:18:43 +00:00

18 lines
418 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# gettext
> Get string translations.
> More information: <https://www.gnu.org/software/gettext/manual/html_node/gettext-Invocation.html>.
- Get the translation of a string or output a default string if it doesn't exist:
`LANGUAGE={{locale}} gettext {{msgid}} {{default_value}}`
- Display help:
`gettext {{[-h|--help]}}`