Use Revert command to restore items in a Project TTK to their original pre-translated state.

The Configuration Options for the revert operation are taken from the user registry (i.e. the settings last used) which can be exported using User Profiles.

Syntax

 

Catalyst /Revert TTKName:FName [Filename:File_to_Revert] [/A] [ezLogFile:ezLogFile] [/write] [/open]

or

Catalyst /Revert TTKName:FName [Foldername:Folder_to_Revert] [/A] [ezLogFile:ezLogFile] [/write] [/open]

or

Catalyst /Revert FromFolder:FolderName] [/S] [Filename:File_to_Revert] [/A] [ezLogFile:ezLogFile] [/write] [/open]

or

Catalyst /Revert FromFolder:FolderName] [/S] [Foldername:Folder_to_Revert] [/A] [ezLogFile:ezLogFile] [/write] [/open]

or

Catalyst /Revert FileListFile:Filename.txt [RelativeTo:DirName]  [Filename:File_to_Revert] [/A] [ezLogFile:ezLogFile] [/write] [/open]

or

Catalyst /Revert FileListFile:Filename.txt [RelativeTo:DirName]  [Foldername:Folder_to_Revert] [/A] [ezLogFile:ezLogFile] [/write] [/open]

 

Parameters

/Revert

Revert TTK Settings

TTKName:FName

Parameter used to specify the name of a TTK file.

FromFolder:FolderName

Tag used to specify the path to a folder from which all TTK project files are to be processed

/S

Recurse all sub-folders.

FileListFile:Filename.txt

Text file containing a list of Project Files that are to be processed. Each Project file is specified on a single line.

RelativeTo:

This tag is used in conjunction with the FileListFile: tag and is used to truncate directory names with your Project TTK file relative to a declared root directory.

Filename:File_to_Revert

Tag used to specify a filename within the project to Revert.

This can be just the filename or the path to the filename.
Example:

Notilus.xml
or
\-Project Title-\software\Notilus.xml

Using Filename: if a path is present and starts with backslash, just that file is reverted.

Foldername:Folder_to_Revert

Tag used to specify the path to a folder from which all files are reverted.
This option is always recursive, all sub-folders will also be reverted.

If a path is present and starts with backslash, just that folder is reverted

/A

Use /A to revert all instances of the Filename or Foldername where a path is not defined. If not used, only the specified Filename/Foldername, or first instance in the project hierarchy, will be reverted.

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.

Examples

Catalyst /C C:\English\RevertSettings.ini /LOAD

Catalyst /Revert TTKName:C:\English\TTKFile.ttk

Catalyst /C C:\English\RevertSettings.ini /LOAD

Catalyst /Revert TTKname:"C:\DATA\ezScript\torevert\MyProject.tk" Filename:"Notilus.exe" ezLogFile:"C:\DATA\ezScript\torevert\revert_filename.log" /Open

Similarly, using a path preceded by a backslash will revert that one instance of Notilus.exe. This is useful when you have multiple files with the same name in the project and only wish to revert one.

Catalyst /Revert TTKname:"C:\DATA\ezScript\torevert\MyProject.tk" Filename:"\My Project\Software\Notilus.exe" ezLogFile:"C:\DATA\ezScript\torevert\revert_filename.log" /Open

 

Catalyst /C C:\English\RevertSettings.ini /LOAD

Catalyst /Revert TTKname:"C:\ezScript_test\revert\Sample Project.ttk" foldername:"software" ezLogFile:"C:\DATA\ezScript_test\revert\revert_foldername.log" /Open

Alternatively, this amended command will only revert the "software" folder: \Project Calli\Updates\software

Catalyst /Revert TTKname:"C:\ezScript_test\revert\Sample Project.ttk" foldername:"\Project Calli\Updates\software" ezLogFile:"C:\DATA\ezScript_test\revert\revert_foldername.log" /Open

 

Catalyst /Revert TTKname:"C:\Project_SIM\AccB\French_FR.ttk" foldername:"web" /A ezLogFile:"C:\DATA\ezScript_test\revert\revert_foldername.log" /Open

 

Catalyst /C C:\English\RevertSettings.ini /LOAD

Catalyst /Revert FromFolder:"C:\Process\ForTranslation" /S

 

Catalyst /Revert FileListFile:"C:\Current\Stage1\files_to_revert.txt" Filename:"Parameters.properties" /A ezLogFile:"C:\reverted_filename.log" /Open

files_to_revert.txt:

C:\Current\Stage1\Loc\fr_FR\FR_divided_1.ttk
C:\Current\Stage1\Loc\fr_FR\FR_divided_2.ttk
C:\Current\Stage1\Loc\it_IT\IT_divided_1.ttk
C:\Current\Stage1\Loc\it_IT\IT_divided_2.ttk
C:\Current\Stage1\Loc\de_DE\DE_divided_1.ttk
C:\Current\Stage1\Loc\de_DE\DE_divided_2.ttk