.\" This manual page was written based on msghack --help .\" by Nicolas François in 2007. .\" It is distributed under the same license as msghack.py .TH MSGHACK 1 .SH NAME msghack \- Alter .po files in ways no sane mind would think about .SH SYNOPSIS .B msghack [OPTION] .I file.po .RI [ ref.po ] .SH DESCRIPTION \fBmsghack\fP can be used to alter .po files in ways no sane mind would think about. .P It can swap msgid and msgstr in a PO file, remove all translations in order to convert a translation file into a template file, and can also append the contents of one PO file to another. .SH OPTIONS .TP .BI "\-o " FILE Write the result to \fIFILE\fP. .TP .B \-\-invert Invert a po file by switching msgid and msgstr. .TP .B \-\-master Join any number of files in a master-formatted catalog .TP .B \-\-empty Empty the contents of the .po file, creating a .pot. .TP .B \-\-append Append entries from \fIref.po\fP that don't exist in \fIfile.po\fP.