mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-31 17:42:07 +00:00
18 lines
418 B
Plaintext
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]}}`
|