|
Leverage TM |
Leverages translations from various file formats into an existing TTK. The Configuration Options for each Leverage operation are taken from the user registry which can be configured using User Profiles.
Catalyst /L UserName [/D] [/Extract] OldVersion [TransOldVersion] NewVersion [TmxSrcLang:TmxSrcLang] [TmxTrgLang:TmxTrgLang][Rule:ezParse Rulename] [/TMHitsFile:TMHitsFile] [Penalty:num] [ezLogFile:ezLogFile] [/write] [/open]
or
Catalyst /L UserName [/D] [/Extract] TMListFile:tmlistfilename NewVersion [TmxSrcLang:TmxSrcLang] [TmxTrgLang:TmxTrgLang] [Rule:ezParse Rulename] [/TMHitsFile:TMHitsFile] [Penalty:num] [ezLogFile:ezLogFile] [/write] [/open]
or
Catalyst /L UserName TMListFile:tmlistfilename FileListFile:Filename [/S] [ezLogFile:ezLogFile] [/write] [/open]
or
Catalyst /L UserName TMListFile:tmlistfilename FromFolder:FolderName [/S] [ezLogFile:ezLogFile] [/write] [/open]
/L |
Leverage a TTK using a Translation Memory |
UserName |
The name that will appear in the history list in the TTK. |
/D |
Parameter used to select default settings when running a leverage. If this parameter is not present the options currently in the registry will be used. |
/Extract |
Extract all files after a leverage operation has completed. The files will be stored in the current working directory. |
Rule:ezParse Rulename |
Specify an ezParse rule name to use when processing files during a leverage. |
OldVersion [TransOldVersion] |
The path and filename of the file to leverage from. This file can be a TTK, Application file, Glossary file, or TMX file. If in the case of an application file, then a folder where the newly leveraged file is to be stored must be specified. In this situation, ezScript will create a temporary TTK, leverage the translation on top of this filename and then store the partially translated file in the specified folder. |
TMListFile:tmlistfilename |
Tag used to specify the path of a file that contains a list of Translation Memory filenames to leverage from. TM files contained in tmlistfilename must use an absolute path. The tmlistfilename can contain .ttk, .tm, .tmx, .txt, .txml, .txlf or .tmw formats. |
NewVersion |
The path and filename of the file to be leveraged into. This file can be a TTK or Application file. |
FileListFile:Filename |
The file or a list of files to perform the leverage on. |
FromFolder:FolderName |
Tag used to specify the path to a folder from which all files are to leveraged. |
/S |
Recurse all sub-folders. |
TmxSrcLang:Language |
Tag used to specify the source language to use when leveraging from a TMX file. See section on Language Codes. |
TmxTrgLang:Language |
Tag used to specify the target language to use when leveraging from a TMX file. See section on Language Codes. |
TMHitsFile:TMHitsFile |
Used in conjunction with Fuzzy Match, this option specifies the name of the TM Hits File which is generated with all Fuzzy Matched translations after the command is complete. |
Penalty:num |
The value of num is a penalty value which can be applied to a TM during a leverage. This penalty needs to be greater than 0 and less than 100. When a single TM is specified in the command, you can add this value to the command itself. When using the filelist syntax to specify TMs, add the required value into the FileListFile at the end of the TM line as shown in the example below. There should be a space between the TM name and the penalty value. |
ezLogFile:ezLogFile |
The user can optionally specify a log file to which results of each Catalyst ezScript command are output. If the log file is not specified by the user or is invalid, the default log file (ezScriptBatchLog.txt in the Public location) is used. |
/write |
The command line which has been processed by Catalyst will be written into the ezScript batch log file. This will help to debug your command if something is not behaving as expected. |
/open |
Launches MS Notepad and displays the content of ezScript batch log when the command finishes. |
|
ezScript will always ignore the View report immediately and Interactive: display strings when a fuzzy match is found options from the User Profile when executing this command. |
If the /D parameter is used, the default settings user are:
Default Parameter |
Value |
Generate Report |
FALSE |
All Object Types are leveraged |
TRUE |
Leverage Same Type Only |
FALSE |
Leverage Text Only |
FALSE |
Leverage Private Data Only |
FALSE |
Leverage Old Locking info |
TRUE |
Add Missing Ampersands |
TRUE |
Expand Co-ordinates if dialog match not found |
FALSE |
Only change status if text changes |
FALSE |
Fuzzy Matching |
FALSE |
|
Looking for GlobalLink TM Server Leverage syntax? |
This is a sample of the contents which may appear in the file "TM_list.txt" as in the fourth example below.
"C:\Samples\Project1.ttk"
"C:\Samples\Project2.ttk"
"C:\Samples\Multi-transmem.tm" Penalty:4
Using the Login Name of John, pre-translate c:\Version2\English\File.exe. Use the files C:\Version1\English\File.exe and C:\Version1\German\File.exe to create the temporary translation memory and then stored the pre-translated (leveraged) file in the folder C:\Version2\German\. Use Default configuration options.
Catalyst /L John /D C:\Version1\English\File.exe C:\Version1\German\File.exe C:\Version2\English\File.exe C:\Version2\German\
Leverage all the files within the TTK C:\Version2\TTKFiles\File.ttk with the translations from C:\Version1\TTKFiles\File.ttk using the User Profile options contained in the registry.
Catalyst /L John C:\Version1\TTKFiles\File.ttk C:\Version2\TTKFiles\File.ttk
Load an ini file to perform the leverage at 85%. Leverage all the files within C:\ezScript\Leveraged\German012.ttk with the translations from the TMX file C:\ezScript\TmxFiles\German.tmx. Notice that the Source and Target Languages are defined for the TMX file using the ezScript Tags TmxSrcLang and TmxTrgLang. The login name for this operation is ‘John Brown’.
Catalyst /C "C:\ezScript\Leverage85.ini" /load
Catalyst /L "John Brown" "C:\ezScript\TmxFiles\German.tmx" "C:\ezScript\Leveraged\German012.ttk" TmxSrcLang:"English (Ireland)" TmxTrgLang:"German (Germany)" TMHitsFile:"C:\ezScript\Leveraged\TMHits_en-IE_de-DE.tmx"
Leverage all the files within C:\Leveraged\MyProject.ttk using the translation memories listed in the file C:\TMemories\TM_list.txt. The login name for this operation is ‘MalcomB’. The log will display when the command is complete using the /open parameter.
Catalyst /L MalcomB TMListFile:"C:\TMemories\TM_list.txt" "C:\Leveraged\MyProject.ttk" /open
Catalyst can now leverage from a Machine Translation source. To verify your connection string, make the connection in the UI first and once successful, copy that connection string from the Active TM & MT window into the batch command.
Catalyst /L "%USERNAME%" "GenericMT:Google Paid MT Service://;;False;AIaaBbCDeFghijkLmnopqrsT5VXXYZbH25eWH7v" "C:\Leveraged\MyProject.ttk"