MSGCMP(1)
π
MSGCMP(1) β the msgcmp page, bestie edition β¨
okay so this is the manual for msgcmp, a User Command, and yes it's giving "I check your translation homework" energy π
β¨ NAME β¨
msgcmp β compare message catalog and template π¦
πΈ SYNOPSIS πΈ
msgcmp [OPTION] def.po ref.pot
π DESCRIPTION π
So what this does is compare two Uniforum style .po files to check that both of them contain the same set of msgid strings. That's the whole vibe check. π
Here's the tea on the two files:
def.pois an existing PO file with the translations β that's the one you've been pouring your heart into πref.potis the last created PO file, or a PO Template file (generally created byxgettext)
This is useful for checking that you have translated each and every message in your program. Not one skipped, not one forgotten, periodt. π
Where an exact match cannot be found, fuzzy matching is used to produce better diagnostics β so like, it'll still try to help you figure out what's up instead of just ghosting you π«Ά
β¨ Little note: mandatory arguments to long options are mandatory for short options too. No exceptions bestie, the rules apply to everyone.
π Input file location π
def.poβ translations π¬ref.potβ references to the sources ποΈ-D,--directory=DIRECTORYβ addDIRECTORYto list for input files search π
βοΈ Operation modifiers βοΈ
-m,--multi-domainβ applyref.potto each of the domains indef.poπ-N,--no-fuzzy-matchingβ do not use fuzzy matching π ββοΈ--use-fuzzyβ consider fuzzy entries π--use-untranslatedβ consider untranslated entries π«₯
π Input file syntax π
-P,--properties-inputβ input files are in Java.propertiessyntax β--stringtable-inputβ input files are in NeXTstep/GNUstep.stringssyntax π
π’ Informative output π’
-h,--helpβ display this help and exit π-V,--versionβ output version information and exit π·οΈ
π AUTHOR π
Written by Peter Miller. Iconic of him, honestly. π
π REPORTING BUGS π
Found a bug? Not me being the bearer of bad news, but fr fr, report it in the bug tracker at <https://savannah.gnu.org/projects/gettext> or by email to <bug-gettext@gnu.org>. They wanna hear it, bestie π«Ά
π 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, that's the dramatic part, respect it)
π¦ SEE ALSO π¦
The full documentation for msgcmp is maintained as a Texinfo manual. If the info and msgcmp programs are properly installed at your site, the command
info msgcmp
should give you access to the complete manual. Go read it, it's the main character of documentation π
k byeee, that was GNU gettext-tools 1.0, from January 2026 β thanks for reading my whole thing, ily, go translate something beautiful πβ¨ππ¦πΈ
π¦ 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