Batch Mode for Passolo
This describes the batch mode, used to use Passolo in the command line.
In batch mode SDL Passolo is run using the command line or a console batch file.
There are various commands available that can used to carry out different operations automatically, without user interaction.
For example, it is possible to generate all the German target files in a project by running Passolo with the following batch command: "C:\Program Files (x86)\SDL\SDL Passolo\Passolo 2016\psl.exe" c:\projects\myProject.lpu /generate lang:German
The first component in the command is the path to the Passolo application. In this case, the path is set in quotation marks, because it contains spaces. Without the quotation marks, the console would try to run "c:\Program". If the path to your Passolo installation is contained in the PATH environment variable on your system, you can simply use psl to start Passolo.
This is then followed by the commands and parameters. These also have to be enclosed in quotation marks if they contain spaces.
Output in command console
Since SDL Passolo is not a console application, the messages it outputs would not normally be displayed in the console window. Using the /output command, you can redirect the output to a file, or you can call up the utility program pslcmd.exe instead of the Passolo application psl.exe. This is a simple console application that calls up Passolo and redirects output to the console window. The commands for pslcmd.exe are the same as for psl.exe.
pslcmd.exe can also be copied to a different folder to make it easier to call up. To run Passolo, it searches the latest Passolo installation path. You can also specify the path to psl.exe in the environment variable PASSOLO_CMD:
c:\Projects>set PASSOLO_CMD=C:\Program Files (x86)\SDL\SDL Passolo\Passolo 2016\psl.exe
c:\Projects>pslcmd myproject.lpu /generate lang:German
Generate "scribble:German(Germany)"
OK - Written to c:\projects\scribbledeu.exe
Generate "notepad:German(Germany)"
ERROR - The translation strings have not been created.
Return values
When exiting psl.exe or pslcmd.exe, the following return values are used:
| 3 | Error updating a translation list |
| 4 | Error updating a source list |
| 5 | Error generating target file |
| 10 | Project not found |
| 98 | No free license available |
| 99 | No license found |