|
|
Revert TTK Settings |
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.
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]
/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. 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. 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. |
The following command will load the necessary revert options as specified in the file RevertSettings.ini. Catalyst then uses those loaded settings to revert the specified aspects of the Project TTK file.
Catalyst /C C:\English\RevertSettings.ini /LOAD
Catalyst /Revert TTKName:C:\English\TTKFile.ttk
The following command will load the necessary revert
options as specified in the file RevertSettings.ini.
Catalyst then uses those loaded settings to revert the file Notilus.exe
within the TTK file "C:\DATA\ezScript\torevert\MyProject.ttk".
The results of the command will be written to the log file C:\DATA\ezScript\torevert\revert_filename.log
which will open in the default text editor once the command completed
(using the /Open option)..
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
The following command will load the necessary revert
options as specified in the file RevertSettings.ini,
then Catalyst reverts all files within the folder software recursively. Note that
while no path is declared, the first instance of the folder "software"
will be reverted in the case of multiple "software" folders
present in the project.
The results are exported to the revert_foldername.log
file and immediately opened to review in the default text editor with
the /open option.
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
This command will use the current Revert settings
(last defined Revert settings used) to revert all files recursively
within any folder "web"
in project, using the /A option.
The results are exported to the revert_foldername.log
file and immediately opened to review in the default text editor with
the /open option.
Catalyst /Revert TTKname:"C:\Project_SIM\AccB\French_FR.ttk" foldername:"web" /A ezLogFile:"C:\DATA\ezScript_test\revert\revert_foldername.log" /Open
The following command will load the necessary revert options as specified in the file RevertSettings.ini. Catalyst then uses those loaded settings to revert the specified aspects of any TTK file found in the folder "ForTranslation" and all sub-folders.
Catalyst /C C:\English\RevertSettings.ini /LOAD
Catalyst /Revert FromFolder:"C:\Process\ForTranslation" /S
This ezScript command reverts the current settings
(i.e. last revert settings used or loaded) in All instances (using
/A) of the file Parameters.properties within the TTKs listed in the
FileListFile "files_to_revert.txt".
The results are exported to the reverted_filename.log
file and immediately opened to review in the default text editor with
the /open option.
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