The transtalo command provides a simple user interface to the Transtalo library. It currently only has support for single sentences, whole text translation support will be added later.
transtalo uses commands to specify what it must do.
The command for translating a sentence from one language to another, is translate or l2l (language to language):
transtalo translate|l2l source-lang dest-lang sentence
source_lang is the source language, dest_lang the target language, and sentence is the sentence to be translated. For example
transtalo translate en de "This is a sentence."
should output “Dies ist ein Satz.” (but it doesn't at this time as there neither is an English input module nor a German output module).
If you want to translate only from the source language and want to stop after that, outputting the XML file, use the lang2xml or l2x commands:
transtalo {lang2xml|l2x} source-lang sentence [output-file]
Where output-file is the output location for the XML file.
If you only want to do the translation to the target language using an XML sentence file, use the xml2lang or lang2xml commands:
transtalo {xml2lang|x2l} xml-file dest-lang
This will output the final sentence.
The following table lists the options for the transtalo command.
The language codes used come from the iso 639 specification. If you want to know which code you have to use, you can type transtalo --list to see which languages are installed: you'll see both the codes and full names.