MSGCOMM(1)
πΈ MSGCOMM(1) β User Commands πΈ
okay bestie, sit down, hydrate, and let me tell you about msgcomm β it lives in the GNU gettext-tools 1.0 era (January 2026 vibes) and it is literally the friend-group matchmaker for translation files. π
β¨ NAME β¨
msgcomm β match two message catalogs π«Ά
π SYNOPSIS π
msgcomm [OPTION] [INPUTFILE]...
π DESCRIPTION π
So the whole ~thing~ is: you hand it a bunch of PO files and it finds the messages that are common to two or more of them. Bestie matchmaking, but for strings. π
Wanna be picky about how much overlap counts? Say less:
- use
--more-thanif you want to demand greater commonality before anything gets printed - use
--less-thanif you want to lower the bar before anything gets printed β fr fr,--less-than=2will only print the unique messages β¨
Translations, comments and extracted comments? Preserved, no cap β but only from the first PO file to define them. And file positions from all PO files get cumulated. π
Mandatory arguments to long options are mandatory for short options too. (yes, that rule applies here too, don't fight it π)
π Input file location: π
INPUTFILE ...β the input files, obviously π-f,--files-from=FILEβ grab your list of input files from FILE instead-D,--directory=DIRECTORYβ add DIRECTORY to the list it searches for input files in
If an input file is -, standard input gets read. classic move π
πΎ Output file location: πΎ
-o,--output-file=FILEβ write the output to the specified file
No output file specified, or it's -? Then results go to standard output. that's it, that's the deal β¨
π Message selection: π
-<,--less-than=NUMBERβ print messages with less than this many definitions. defaults to infinite if you don't set it πΈ->,--more-than=NUMBERβ print messages with more than this many definitions. defaults to1if you don't set it πΈ-u,--uniqueβ shorthand for--less-than=2, i.e. "pls only print the unique messages bestie" π
π Input file syntax: π
-P,--properties-inputβ input files are in Java.propertiessyntax--stringtable-inputβ input files are in NeXTstep/GNUstep.stringssyntax
π¨ Output details: π¨
--colorβ use colors and other text attributes always--color=WHENβ use colors and other text attributes if WHEN. WHEN may be'always','never','auto', or'html'π--style=STYLEFILEβ specify the CSS style rule file for--color-e,--no-escapeβ do not use C escapes in output (this is the default, btw)-E,--escapeβ use C escapes in output, no extended chars--force-poβ write the PO file even if it's empty π«Ά-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 a strict Uniforum conforming.pofile-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-s,--sort-outputβ generate sorted output-F,--sort-by-fileβ sort output by file location--omit-headerβ don't write the header with the'msgid ""'entry π
π£ Informative output: π£
-h,--helpβ display this help and exit π₯°-V,--versionβ output version information and exit β¨
π AUTHOR π
Written by Peter Miller. icon behavior, honestly π
π REPORTING BUGS π
Found a bug? (π) Report it in the bug tracker at <https://savannah.gnu.org/projects/gettext> or by email to <bug-gettext@gnu.org>.
π COPYRIGHT π
Copyright Β© 1995-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, screaming that one, it matters π)
π¦ SEE ALSO π¦
The full documentation for msgcomm is maintained as a Texinfo manual. If the info and msgcomm programs are properly installed at your site, the command
info msgcomm
should give you access to the complete manual. slay π
and that's the whole page bestie β this was GNU gettext-tools 1.0, dated January 2026. go forth and match your catalogs, mwah π«Άπ
π¦ 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