info > msgcat

📛 NAME

msgcat — concatenate and merge PO files

📋 SYNOPSIS

msgcat [OPTION] [INPUTFILE]...

🚀 Quick Reference

Use CaseCommandDescription
Concatenate PO filesmsgcat file1.po file2.poMerge multiple PO files into one
Find common messagesmsgcat --more-than=2 *.poShow messages that appear in more than 2 files
Find unique messagesmsgcat --unique *.poShow messages that appear in only one file
Specify output filemsgcat -o output.po file.poWrite merged output to a file
Use first translationmsgcat --use-first file.poKeep first translation instead of merging
Change output encodingmsgcat -t UTF-8 file.poConvert to specified encoding

📖 DESCRIPTION

The msgcat program concatenates and merges the specified PO files. It finds messages which are common to two or more of the specified PO files. By using the --more-than option, greater commonality may be requested before messages are printed. Conversely, the --less-than option may be used to specify less commonality before messages are printed (i.e. --less-than=2 will only print the unique messages). 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.

To concatenate POT files, better use xgettext, not msgcat, because msgcat would choke on the undefined charsets in the specified POT files.

📁 9.1.1 Input file location

If INPUTFILE is -, standard input is read.

📤 9.1.2 Output file location

The results are written to standard output if no output file is specified or if it is -.

🔍 9.1.3 Message selection

🔧 9.1.4 Input file syntax

🎨 9.1.5 Output details

â„šī¸ 9.1.6 Informative output

msgcat
📛 NAME 📋 SYNOPSIS 🚀 Quick Reference 📖 DESCRIPTION
📁 9.1.1 Input file location 📤 9.1.2 Output file location 🔍 9.1.3 Message selection 🔧 9.1.4 Input file syntax 🎨 9.1.5 Output details â„šī¸ 9.1.6 Informative output

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-31 09:07 @216.73.217.152
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format

^_top_^