MSGPRE(1)
π MSGPRE(1) β the manual, but make it cute π
okay bestie, gather round, because this is msgpre from the GNU gettext-tools lineup, and she is that girl. pretranslation? in this economy? yes. let's go. π¦
β¨ NAME β¨
msgpre β pretranslate a message catalog
πΈ SYNOPSIS πΈ
msgpre [OPTION...]
π DESCRIPTION π
so what she does is: she pretranslates a translation catalog. that's the whole gig. π
β οΈ Warning, and I need you to actually read this one: the pretranslations might not be what you expect. They might be of the wrong form, be of poor quality, or reflect some biases. π that's not me being dramatic, that's literally in the manual. the vibes are not guaranteed.
Mandatory arguments to long options are mandatory for short options too. (yes, say it with me: mandatory means mandatory, no skipping. periodt.)
π§ OPTIONS π§
π₯ Input file location:
-i,--input=INPUTFILEβ the input PO file goes here-D,--directory=DIRECTORYβ add DIRECTORY to the list of places we go looking for input files
If no input file is given, or if it's -, standard input is read. slay, stdin stays winning. β¨
π€ Output file location:
-o,--output-file=FILEβ write the output to the file you named
The results are written to standard output if no output file is specified or if it is -. π«Ά
π― Message selection:
--keep-fuzzyβ keep fuzzy messages unmodified. only pretranslate the untranslated ones. no touching the fuzzy ones, hands off. π
π€ Large Language Model (LLM) options:
--species=TYPEβ specifies the type of LLM. the default and only valid value is'ollama'. (one species only, she's monogamous π)--url=URLβ specifies the URL of the server that runs the LLM-m,--model=MODELβ specifies the model to use--prompt=TEXTβ specifies the prompt to use before standard input--postprocess=COMMANDβ specifies a command to post-process the output
π Input file syntax:
-P,--properties-inputβ input file is in Java.propertiessyntax--stringtable-inputβ input file is 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 CSS style rule file for--color--force-poβ write PO file even if empty (empty but brave π )--indentβ indented output style--no-locationβ suppress'#: filename:line'lines-n,--add-locationβ preserve'#: filename:line'lines (default)--strictβ strict Uniforum output style-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-q,--quiet,--silentβ suppress progress indicators
π AUTHOR π
Written by Bruno Haible. (the icon, the legend, the moment. π)
π REPORTING BUGS π
found a bug? bestie, tell them, don't just suffer in silence. Report bugs in the bug tracker at <https://savannah.gnu.org/projects/gettext> or by email to <bug-gettext@gnu.org>. π«Ά
β 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. (read it again. NO WARRANTY. not a vibe, just the law. π)
π SEE ALSO π
The full documentation for msgpre is maintained as a Texinfo manual. If the info and msgpre programs are properly installed at your site, the command
info msgpre
should give you access to the complete manual. go read her, she's thorough. πβ¨
okay that's the whole thing, you're officially a msgpre girlie now π this page is from GNU gettext-tools 1.0, dated January 2026, and it lives at section MSGPRE(1). mwah. π bye bestie!! πΈπ
π¦
π¦ 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