MSGCAT(1)
π MSGCAT(1) β the user commands manual page, bestie π
okay so. <rainbow>msgcat</rainbow>. it's a User Commands girlie and she has ONE job: gluing your message catalogs together. and she does it flawlessly. periodt.
β¨ NAME β¨
msgcat β combines several message catalogs π«Ά
β¨ SYNOPSIS β¨
msgcat [OPTION] [INPUTFILE]...
β¨ DESCRIPTION β¨
okay so picture this: you have a bunch of PO files and you need them β¨unifiedβ¨. msgcat concatenates and merges the specified PO files. it also finds messages which are common to two or more of the specified PO files. iconic behaviour honestly π
and the way you can tune how common a message has to be before it gets printed?? obsessed. with --more-than you can request greater commonality before messages are printed. conversely, --less-than lets you request less commonality before messages are printed β like, --less-than=2 will only print the unique messages. no cap.
translations, comments, extracted comments, and file positions will be cumulated, except that if --use-first is specified, they will be taken from the first PO file to define them. iykyk.
π¨ bestie PSA: mandatory arguments to long options are mandatory for short options too. it's giving equal rights.
πΈ Input file location πΈ
INPUTFILE ...β the input files, plural, give me all of them-f,--files-from=FILEβ get the list of input files fromFILE-D,--directory=DIRECTORYβ addDIRECTORYto the list for input files search
if the input file is -, standard input is read. classic - behaviour, we love her π
π Output file location π
-o,--output-file=FILEβ write output to the specified file
the results are written to standard output if no output file is specified, or if it is -. so if you just vibe and don't specify anything, stdout gets the goods π
π Message selection π
-<,--less-than=NUMBERβ print messages with less than this many definitions, defaults to infinite if not set->,--more-than=NUMBERβ print messages with more than this many definitions, defaults to0if not set-u,--uniqueβ shorthand for--less-than=2, requests that only unique messages be printed
π¦ Input file syntax π¦
-P,--properties-inputβ input files are in Java.propertiessyntax--stringtable-inputβ input files are in NeXTstep/GNUstep.stringssyntax
π Output details π
-t,--to-code=NAMEβ encoding for output--use-firstβ use first available translation for each message, don't merge several translations--lang=CATALOGNAMEβ set the 'Language' field in the header entry--colorβ use colors and other text attributes always--color=WHENβ use colors and other text attributes ifWHEN.WHENmay be'always','never','auto', or'html'.--style=STYLEFILEβ specify 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 PO file even if empty (yes, even when it's giving nothing π)-i,--indentβ write the.pofile using indented style--no-locationβ do not write'#: filename:line'lines-n,--add-locationβ generate'#: filename:line'lines (default)--strictβ write out strict Uniforum conforming.pofile-p,--properties-outputβ write out a Java.propertiesfile--stringtable-outputβ write out a NeXTstep/GNUstep.stringsfile-w,--width=NUMBERβ set output page width--no-wrapβ do not break long message lines, longer than the output page width, into several lines-s,--sort-outputβ generate sorted output-F,--sort-by-fileβ sort 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. a legend, fr fr π
π REPORTING BUGS π
found a bug? bestie, tell the bug tracker at <https://savannah.gnu.org/projects/gettext> or email <bug-gettext@gnu.org>. they want to hear from you, no cap.
π 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. like, none. zero. the way that legally means nothing is guaranteed π
π§ SEE ALSO π§
The full documentation for msgcat is maintained as a Texinfo manual. If the info and msgcat programs are properly installed at your site, the command
info msgcat
should give you access to the complete manual. go read it, it's giving β¨comprehensiveβ¨ π
and that's the whole page, bestie!! GNU gettext-tools 1.0, dated January 2026 β mwah, slay, go merge some catalogs π ππ
π¦ 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