The purpose of the console mode is to use OmegaT as translation tool in a scripting environment. When started in console mode, no GUI is loaded (so it will work on any console). Depending on the running mode, the given project is automatically translated or a pseudo-translated translation memory is created.
To run OmegaT, a valid OmegaT-project must be present. The location does not matter, since you have to add it to the command-line at startup anyway.
If you need altered settings, the configuration files must be present. This can be achieved in two ways:
To start OmegaT in console
mode, some extra
parameters have to be passed on startup. Required are
<project-dir>
and --mode=<mode>
.
Optional is --config-dir=<config-dir>
.
Depending on the mode, additional parameters have to be (or can be) provided.
For mode console-createpseudotranslatetmx
the required parameter is
--pseudotranslatetmx=<file.tmx>
and optional is
--pseudotranslatetype=<type>
Example of translate project:
$>java -jar OmegaT.jar /path/to/project
--config-dir=/path/to/config-files/ --mode=console-translate
Example of create pseudo translated tmx:
java -jar OmegaT.jar /path/to/project
--config-dir=/path/to/config-files/ --mode=console-createpseudotranslatetmx
--pseudotranslatetmx=allsegments.tmx --pseudotranslatetype=equal
Explanation:
<project-dir> |
tells OmegaT where to find the project. E.g. |
--config-dir=<config-dir> |
allows to tell OmegaT in which directory the configuration files are stored. If not given, OmegaT reverts to default values (OmegaT dir under user home, or if not available: the current working directory). |
--mode=[console-translate | console-createpseudotranslatetmx] |
OmegaT starts in console mode. If mode is |
--pseudotranslatetmx=<file.tmx> |
Only valid when mode is |
--pseudotranslatetype=[empty|equal] |
Only valid when mode is
The parameter is optional and defaults to |
There is one extra command line
parameter specific for the console mode: --quiet
.
In quiet mode, less info is logged to the screen. All messages that you
would usually find in the status bar are not shown.
Usage: java -jar OmegaT.jar
/path/to/project --quiet
Legal notices | Home | Index of contents |