Files
cheatsheet-tldr/tldr/msginit
2025-08-17 00:22:45 +00:00

22 lines
550 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# msginit
> Generate language specific translation files based on Portable Object Templates.
> More information: <https://www.gnu.org/software/gettext/manual/gettext.html#msginit-Invocation>.
- Generate Portable Object files in system locale from `messages.pot`:
`msginit`
- Define locale to generate from a specific template:
`msginit {{[-l|--locale]}} {{locale}} {{[-i|--input]}} {{path/to/messages.pot}}`
- Display help:
`msginit {{[-h|--help]}}`