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

14 lines
374 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}}`