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>
.
Depending on the mode, additional parameters have to be (or can be) provided. See command line arguments for more information.
Example of translate project:
$>java -jar OmegaT.jar /path/to/project
--config-dir=/path/to/config-files/ --mode=console-translate
Example of translate project for a single file:
$>java -jar OmegaT.jar /path/to/project
--config-dir=/path/to/config-files/ --mode=console-translate
--source-pattern=test\.html
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
Legal notices | Home | Index of contents |