|
NAMEtranslate - translate a text or web pageSYNOPSIStranslate {-? | -v | --list-services} translate [-s services] [-f lang] [-t lang] {-l} translate [-s services] [-f lang] [-t lang] {http_url | https_url} translate [-s services] [-f lang] [-t lang] [--max-threads=n] [--max-retries=n] [file] DESCRIPTIONtranslate translates a text or web page.If the first synopsis form is used, translate prints a quick help, the version information or the list of available translation services to standard output. If the second synopsis form is used, translate prints the list of available language pairs to standard output. If the third synopsis form is used, translate translates the web page pointed to by http_url or https_url, and prints the URL of the translated web page to standard output (http_url must be a string starting with http://, and https_url must be a string starting with https://). If the fourth synopsis form is used, translate translates the text contained in file, and prints the translation to standard output (if file is omitted or given as a single dash, standard input is used instead). OPTIONS
LANGUAGE SELECTIONDefinitions: in this section, default_from is defined as the contents of the environment variable TRANSLATE_DEFAULT_FROM, or, if that variable is not set, en; default_to is defined as the contents of the environment variable TRANSLATE_DEFAULT_TO, or, if that variable is not set, fr.If the source language is not specified, it defaults to default_from, or, if the destination language is equal to default_from, default_to. If the destination language is not specified, it defaults to default_to, or, if the source language is equal to default_to, default_from. CHARACTER SET HANDLINGInternally, libtranslate uses the UTF-8 encoding.If the input text is not encoded in UTF-8, translate assumes it is encoded in the character set of the current locale, and attempts to convert it to UTF-8. If the conversion fails, translate exits with an error. The output text is converted to the character set of the current locale before printing. EXAMPLESIn the following examples, it is assumed that TRANSLATE_DEFAULT_FROM is set to es and that TRANSLATE_DEFAULT_TO is set to de.
DIAGNOSTICSThe translate utility exits with a status of 0 on success, and >0 if an error occurs.ENVIRONMENTThe following environment variables affect the execution of translate:
SEE ALSOThe libtranslate Reference ManualAUTHORJean-Yves Lefort.
Visit the GSP FreeBSD Man Page Interface. |