MSGEN(1)
π MSGEN(1) β the msgen manual, bestie edition π
okay so. this is the manual page for msgen, and yes it lives in section 1 (User Commands) of the manual, and it's giving extremely useful. sit down, grab a strawberry drink π, and let's get into it.
β¨ NAME β¨
msgen β create English message catalog π
πΈ SYNOPSIS πΈ
msgen [OPTION] INPUTFILE
that's it. that's the whole vibe check. one input file, as many options as your heart desires.
π¦ DESCRIPTION π¦
So basically it creates an English translation catalog. π«Ά
The input file is the last created English PO file, or a PO Template file (which is generally created by xgettext, iykyk). Untranslated entries get assigned a translation that is identical to the msgid β like, the English is already the English, so it just... says that. iconic behavior honestly.
π real talk: mandatory arguments to long options are also mandatory for short options. no exceptions, no shortcuts, periodt.
π Input file location:
INPUTFILEβ the input PO or POT file. that's the one, bestie.-D,--directory=DIRECTORYβ addDIRECTORYto the list of places we search for input files π
If the input file is -, then standard input is read. classic - move.
π Output file location:
-o,--output-file=FILEβ write the output to the specified file πΎ
The results go to standard output if you didn't specify an output file, or if it's -. so like, no output file = screen. - = also screen. the - said "same energy."
π€ Input file syntax:
-P,--properties-inputβ the input file is in Java.propertiessyntax β--stringtable-inputβ the input file is in NeXTstep/GNUstep.stringssyntax π
π¨ Output details:
--lang=CATALOGNAMEβ sets the'Language'field in the header entry π--colorβ use colors and other text attributes always π no chill, all color--color=WHENβ use colors and other text attributes ifWHEN. andWHENmay be'always','never','auto', or'html'. pick your fighter π--style=STYLEFILEβ specify the CSS style rule file for--colorπ-e,--no-escapeβ do not use C escapes in output (default)-E,--escapeβ use C escapes in output, no extended chars--force-poβ write the PO file even if it's empty. not me forcing output π-i,--indentβ indented output style (yes, aesthetic matters)--no-locationβ suppress the'#: filename:line'lines π-n,--add-locationβ preserve the'#: filename:line'lines (default)--strictβ strict Uniforum output style π no slouching-p,--properties-outputβ write out a Java.propertiesfile β--stringtable-outputβ write out a NeXTstep/GNUstep.stringsfile π-w,--width=NUMBERβ set the output page width π--no-wrapβ do not break long message lines, longer than the output page width, into several lines. leave them long. let them be free π¦-s,--sort-outputβ generate sorted output. everything in its place, main character energy β¨-F,--sort-by-fileβ sort the output by file location π
π’ Informative output:
-h,--helpβ display this help and exit π-V,--versionβ output version information and exit π’
βοΈ AUTHOR βοΈ
Written by Bruno Haible. legend behavior, fr fr. π«‘
π REPORTING BUGS π
Found a bug? bestie, do not suffer in silence. Report bugs in the bug tracker at <https://savannah.gnu.org/projects/gettext> or by email to <bug-gettext@gnu.org>. π¬
βοΈ COPYRIGHT βοΈ
Copyright Β© 2001-2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. π (yes, all caps, they mean it)
π SEE ALSO π
The full documentation for msgen is maintained as a Texinfo manual. If the info and msgen programs are properly installed at your site, the command
info msgen
should give you access to the complete manual. go read it, it's giving thorough π
and that's the whole page, bestie. this one came from GNU gettext-tools 1.0, dated January 2026, and it's literally MSGEN(1) β so if you remember nothing else, remember: msgen [OPTION] INPUTFILE, and you ate. π
β¨π¦
π¦ where this page comes from
- alpine 3.24: gettext-doc 1.0-r0 Β· GPL-3.0-or-later AND LGPL-2.1-or-later AND MIT
- arch rolling: gettext 1.0-2 Β· GFDL-1.2-only AND GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.0-only
- nixos 26.05: gettext 1.0
- nixpkgs unstable: gettext 1.0
- ubuntu stonking: gettext 1.0-3 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms