| 1 |
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.6. |
| 2 |
.TH MSGPRE "1" "January 2026" "GNU gettext-tools 1.0" "User Commands" |
| 3 |
.SH NAME |
| 4 |
msgpre \- pretranslate a message catalog |
| 5 |
.SH SYNOPSIS |
| 6 |
.B msgpre |
| 7 |
[\fI\,OPTION\/\fR...] |
| 8 |
.SH DESCRIPTION |
| 9 |
.\" Add any additional description here |
| 10 |
.PP |
| 11 |
Pretranslates a translation catalog. |
| 12 |
.PP |
| 13 |
Warning: The pretranslations might not be what you expect. |
| 14 |
They might be of the wrong form, be of poor quality, or reflect some biases. |
| 15 |
.PP |
| 16 |
Mandatory arguments to long options are mandatory for short options too. |
| 17 |
.SS "Input file location:" |
| 18 |
.TP |
| 19 |
\fB\-i\fR, \fB\-\-input\fR=\fI\,INPUTFILE\/\fR |
| 20 |
input PO file |
| 21 |
.TP |
| 22 |
\fB\-D\fR, \fB\-\-directory\fR=\fI\,DIRECTORY\/\fR |
| 23 |
add DIRECTORY to list for input files search |
| 24 |
.PP |
| 25 |
If no input file is given or if it is \-, standard input is read. |
| 26 |
.SS "Output file location:" |
| 27 |
.TP |
| 28 |
\fB\-o\fR, \fB\-\-output\-file\fR=\fI\,FILE\/\fR |
| 29 |
write output to specified file |
| 30 |
.PP |
| 31 |
The results are written to standard output if no output file is specified |
| 32 |
or if it is \-. |
| 33 |
.SS "Message selection:" |
| 34 |
.TP |
| 35 |
\fB\-\-keep\-fuzzy\fR |
| 36 |
Keep fuzzy messages unmodified. |
| 37 |
Pretranslate only untranslated messages. |
| 38 |
.SS "Large Language Model (LLM) options:" |
| 39 |
.TP |
| 40 |
\fB\-\-species\fR=\fI\,TYPE\/\fR |
| 41 |
Specifies the type of LLM. The default and only |
| 42 |
valid value is 'ollama'. |
| 43 |
.TP |
| 44 |
\fB\-\-url\fR=\fI\,URL\/\fR |
| 45 |
Specifies the URL of the server that runs the LLM. |
| 46 |
.TP |
| 47 |
\fB\-m\fR, \fB\-\-model\fR=\fI\,MODEL\/\fR |
| 48 |
Specifies the model to use. |
| 49 |
.TP |
| 50 |
\fB\-\-prompt\fR=\fI\,TEXT\/\fR |
| 51 |
Specifies the prompt to use before standard input. |
| 52 |
.TP |
| 53 |
\fB\-\-postprocess\fR=\fI\,COMMAND\/\fR |
| 54 |
Specifies a command to post\-process the output. |
| 55 |
.SS "Input file syntax:" |
| 56 |
.TP |
| 57 |
\fB\-P\fR, \fB\-\-properties\-input\fR |
| 58 |
input file is in Java .properties syntax |
| 59 |
.TP |
| 60 |
\fB\-\-stringtable\-input\fR |
| 61 |
input file is in NeXTstep/GNUstep .strings syntax |
| 62 |
.SS "Output details:" |
| 63 |
.TP |
| 64 |
\fB\-\-color\fR |
| 65 |
use colors and other text attributes always |
| 66 |
.TP |
| 67 |
\fB\-\-color\fR=\fI\,WHEN\/\fR |
| 68 |
use colors and other text attributes if WHEN. |
| 69 |
WHEN may be 'always', 'never', 'auto', or 'html'. |
| 70 |
.TP |
| 71 |
\fB\-\-style\fR=\fI\,STYLEFILE\/\fR |
| 72 |
specify CSS style rule file for \fB\-\-color\fR |
| 73 |
.TP |
| 74 |
\fB\-\-force\-po\fR |
| 75 |
write PO file even if empty |
| 76 |
.TP |
| 77 |
\fB\-\-indent\fR |
| 78 |
indented output style |
| 79 |
.TP |
| 80 |
\fB\-\-no\-location\fR |
| 81 |
suppress '#: filename:line' lines |
| 82 |
.TP |
| 83 |
\fB\-n\fR, \fB\-\-add\-location\fR |
| 84 |
preserve '#: filename:line' lines (default) |
| 85 |
.TP |
| 86 |
\fB\-\-strict\fR |
| 87 |
strict Uniforum output style |
| 88 |
.TP |
| 89 |
\fB\-p\fR, \fB\-\-properties\-output\fR |
| 90 |
write out a Java .properties file |
| 91 |
.TP |
| 92 |
\fB\-\-stringtable\-output\fR |
| 93 |
write out a NeXTstep/GNUstep .strings file |
| 94 |
.TP |
| 95 |
\fB\-w\fR, \fB\-\-width\fR=\fI\,NUMBER\/\fR |
| 96 |
set output page width |
| 97 |
.TP |
| 98 |
\fB\-\-no\-wrap\fR |
| 99 |
do not break long message lines, longer than |
| 100 |
the output page width, into several lines |
| 101 |
.TP |
| 102 |
\fB\-s\fR, \fB\-\-sort\-output\fR |
| 103 |
generate sorted output |
| 104 |
.TP |
| 105 |
\fB\-F\fR, \fB\-\-sort\-by\-file\fR |
| 106 |
sort output by file location |
| 107 |
.SS "Informative output:" |
| 108 |
.TP |
| 109 |
\fB\-h\fR, \fB\-\-help\fR |
| 110 |
display this help and exit |
| 111 |
.TP |
| 112 |
\fB\-V\fR, \fB\-\-version\fR |
| 113 |
output version information and exit |
| 114 |
.TP |
| 115 |
\fB\-q\fR, \fB\-\-quiet\fR, \fB\-\-silent\fR |
| 116 |
suppress progress indicators |
| 117 |
.SH AUTHOR |
| 118 |
Written by Bruno Haible. |
| 119 |
.SH "REPORTING BUGS" |
| 120 |
Report bugs in the bug tracker at <https://savannah.gnu.org/projects/gettext> |
| 121 |
or by email to <bug\[email protected]>. |
| 122 |
.SH COPYRIGHT |
| 123 |
Copyright \(co 2001\-2026 Free Software Foundation, Inc. |
| 124 |
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html> |
| 125 |
.br |
| 126 |
This is free software: you are free to change and redistribute it. |
| 127 |
There is NO WARRANTY, to the extent permitted by law. |
| 128 |
.SH "SEE ALSO" |
| 129 |
The full documentation for |
| 130 |
.B msgpre |
| 131 |
is maintained as a Texinfo manual. If the |
| 132 |
.B info |
| 133 |
and |
| 134 |
.B msgpre |
| 135 |
programs are properly installed at your site, the command |
| 136 |
.IP |
| 137 |
.B info msgpre |
| 138 |
.PP |
| 139 |
should give you access to the complete manual. |