1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00

msgfmt, msgunfmt: add page (#13809)

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
This commit is contained in:
Lasse Mattila 2024-09-30 12:23:13 +03:00 committed by GitHub
parent 2a0b916d29
commit eb8962b458
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 20 additions and 0 deletions

8
pages/common/msgfmt.md Normal file
View file

@ -0,0 +1,8 @@
# msgfmt
> Compile message catalog to binary format.
> More information: <https://www.gnu.org/software/gettext/manual/html_node/msgfmt-Invocation.html>.
- Convert a `.po` file to a `.mo` file:
`msgfmt {{path/to/file.po}} -o {{path/to/file.mo}}`

12
pages/common/msgunfmt.md Normal file
View file

@ -0,0 +1,12 @@
# msgunfmt
> Decompile message catalog from the binary format.
> More information: <https://www.gnu.org/software/gettext/manual/html_node/msgunfmt-Invocation.html>.
- Output conversion:
`msgunfmt {{path/to/file.mo}}`
- Convert a `.mo` file to a `.po` file:
`msgunfmt {{path/to/file.mo}} > {{path/to/file.po}}`