Changeset 2142


Ignore:
Timestamp:
5/16/2010 10:24:07 AM (4 years ago)
Author:
lowjoel
Message:

Localise the command line interface of Eraser. Also causes the shell confirmation dialogs to follow the configure UI language. Addresses #355: Implement feature-complete CLI

Location:
trunk/eraser/Eraser
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser/Eraser/Program.cs

    r2127 r2142  
    178178            Args parsedArguments = (Args)argumentParser.Item; 
    179179 
    180             //We default to a GUI if: 
    181             // - The parser did not succeed. 
    182             // - The parser resulted in an empty arguments list 
    183             // - The parser's argument at index 0 is not equal to the first argument (this 
    184             //   is when the user is passing GUI options -- command line options always 
    185             //   start with the action, e.g. Eraser help, or Eraser addtask 
    186             if (!argumentParser.Success || parsedArguments.IsEmpty || 
    187                 parsedArguments.Positional.Count == 0 || 
    188                 parsedArguments.Positional[0] != parsedArguments.Raw[0]) 
    189             { 
    190                 GUIMain(finalCommandLine); 
    191             } 
    192             else 
    193             { 
    194                 return CommandMain(finalCommandLine); 
     180            //Load the Eraser.Manager library 
     181            using (ManagerLibrary library = new ManagerLibrary(new Settings())) 
     182            { 
     183                //Set our UI language 
     184                EraserSettings settings = EraserSettings.Get(); 
     185                Thread.CurrentThread.CurrentUICulture = new CultureInfo(settings.Language); 
     186 
     187                //We default to a GUI if: 
     188                // - The parser did not succeed. 
     189                // - The parser resulted in an empty arguments list 
     190                // - The parser's argument at index 0 is not equal to the first argument 
     191                //   (this is when the user is passing GUI options -- command line options 
     192                //   always start with the action, e.g. Eraser help, or Eraser addtask 
     193                if (!argumentParser.Success || parsedArguments.IsEmpty || 
     194                    parsedArguments.Positional.Count == 0 || 
     195                    parsedArguments.Positional[0] != parsedArguments.Raw[0]) 
     196                { 
     197                    GUIMain(finalCommandLine); 
     198                } 
     199                else 
     200                { 
     201                    return CommandMain(finalCommandLine); 
     202                } 
    195203            } 
    196204 
     
    221229                    result.Run(); 
    222230                    if (!result.IsConnected) 
    223                         throw new IOException("Eraser cannot connect to the running " + 
    224                             "instance for erasures."); 
     231                        throw new IOException(S._("Eraser cannot connect to the running " + 
     232                            "instance for erasures.")); 
    225233                } 
    226234 
     
    231239                //We can't connect to the pipe because the other instance of Eraser 
    232240                //is running with higher privileges than this instance. 
    233                 throw new UnauthorizedAccessException("Another instance of Eraser " + 
     241                throw new UnauthorizedAccessException(S._("Another instance of Eraser " + 
    234242                    "is already running but it is running with higher privileges than " + 
    235243                    "this instance of Eraser. Tasks cannot be added in this manner.\n\n" + 
    236244                    "Close the running instance of Eraser and start it again without " + 
    237245                    "administrator privileges, or run the command again as an " + 
    238                     "administrator.", e); 
     246                    "administrator.", e)); 
    239247            } 
    240248        } 
     
    247255        { 
    248256            using (ConsoleProgram program = new ConsoleProgram(commandLine)) 
    249             using (ManagerLibrary library = new ManagerLibrary(new Settings())) 
    250257                try 
    251258                { 
     
    284291        private static void PrintCommandHelp() 
    285292        { 
    286             Console.WriteLine(@"usage: Eraser <action> <arguments> 
     293            Console.WriteLine(S._(@"usage: Eraser <action> <arguments> 
    287294where action is 
    288295  help                Show this help message. 
     
    344351""@"" to the path to the file, and passing it into the command line. The 
    345352contents of the response files' will be substituted at the same position into 
    346 the command line."); 
     353the command line.")); 
    347354            Console.Out.Flush(); 
    348355        } 
     
    354361        private static void CommandHelp(ConsoleArguments arguments) 
    355362        { 
    356             Console.WriteLine(@"Eraser {0} 
     363            Console.WriteLine(S._(@"Eraser {0} 
    357364(c) 2008-2010 The Eraser Project 
    358365Eraser is Open-Source Software: see http://eraser.heidi.ie/ for details. 
    359 ", Assembly.GetExecutingAssembly().GetName().Version); 
     366", Assembly.GetExecutingAssembly().GetName().Version)); 
    360367 
    361368            PrintCommandHelp(); 
     
    370377            //Output the header 
    371378            const string methodFormat = "{0,-2} {1,-39} {2}"; 
    372             Console.WriteLine(methodFormat, "", "Method", "GUID"); 
     379            Console.WriteLine(methodFormat, "", "Erasure Method", "GUID"); 
    373380            Console.WriteLine(new string('-', 79)); 
    374381 
     
    408415                    break; 
    409416                default: 
    410                     throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, 
    411                         "Unknown schedule type: {0}", arguments.Schedule), "/schedule"); 
     417                    throw new ArgumentException( 
     418                        S._("Unknown schedule type: {0}", arguments.Schedule), "/schedule"); 
    412419            } 
    413420 
     
    427434                if (!processed) 
    428435                { 
    429                     Console.WriteLine("Unknown argument: {0}, skipped.", argument); 
     436                    Console.WriteLine(S._("Unknown argument: {0}, skipped.", argument)); 
    430437                    continue; 
    431438                } 
     
    434441            //Check the number of tasks in the task. 
    435442            if (task.Targets.Count == 0) 
    436                 throw new ArgumentException("Tasks must contain at least one erasure target."); 
     443                throw new ArgumentException(S._("Tasks must contain at least one erasure target.")); 
    437444 
    438445            //Send the task out. 
     
    572579            //Then initialise the instance and initialise the Manager library. 
    573580            using (GuiProgram program = new GuiProgram(commandLine, instanceId)) 
    574             using (ManagerLibrary library = new ManagerLibrary(new Settings())) 
    575581            { 
    576582                program.InitInstance += OnGUIInitInstance; 
     
    590596            GuiProgram program = (GuiProgram)sender; 
    591597            eraserClient = new RemoteExecutorServer(); 
    592  
    593             //Set our UI language 
    594             EraserSettings settings = EraserSettings.Get(); 
    595             Thread.CurrentThread.CurrentUICulture = new CultureInfo(settings.Language); 
    596598            Application.SafeTopLevelCaptionFormat = S._("Eraser"); 
    597599 
  • trunk/eraser/Eraser/Strings.en.resx

    r2057 r2142  
    154154    <value>Processing:</value> 
    155155  </data> 
     156  <data name="Eraser cannot connect to the running instance for erasures." xml:space="preserve"> 
     157    <value>Eraser cannot connect to the running instance for erasures.</value> 
     158  </data> 
     159  <data name="Another instance of Eraser is already running but it is running with higher privileges than this instance of Eraser. Tasks cannot be added in this manner.\n\nClose the running instance of Eraser and start it again without administrator privileges, or run the command again as an administrator." xml:space="preserve"> 
     160    <value>Another instance of Eraser is already running but it is running with higher privileges than this instance of Eraser. Tasks cannot be added in this manner.\n\nClose the running instance of Eraser and start it again without administrator privileges, or run the command again as an administrator.</value> 
     161  </data> 
     162  <data name="usage: Eraser &lt;action&gt; &lt;arguments&gt;\r\nwhere action is\r\n  help                Show this help message.\r\n  addtask             Adds tasks to the current task list.\r\n  querymethods        Lists all registered Erasure methods.\r\n  importtasklist      Imports an Eraser Task list to the current user's Task\r\n                      List.\r\n\r\nglobal parameters:\r\n  /quiet              Do not create a Console window to display progress.\r\n\r\nparameters for help:\r\n  eraser help\r\n\r\n  no parameters to set.\r\n\r\nparameters for addtask:\r\n  eraser addtask [/method=&lt;methodGUID&gt;] [/schedule=(now|manually|restart)] (recyclebin | unused=&lt;volume&gt; | dir=&lt;directory&gt; | file=&lt;file&gt;)[...]\r\n\r\n  /method             The Erasure method to use.\r\n  /schedule           The schedule the task will follow. The value must be one\r\n                      of:\r\n      now             The task will be queued for immediate execution.\r\n      manually        The task will be created but not queued for execution.\r\n      restart         The task will be queued for execution when the computer\r\n                      is next restarted.\r\n  recyclebin          Erases files and folders in the recycle bin\r\n  unused              Erases unused space in the volume.\r\n    optional arguments: unused=&lt;drive&gt;[,clusterTips[=(true|false)]]\r\n      clusterTips     If specified, the drive's files will have their\r\n                      cluster tips erased. This parameter accepts a Boolean\r\n                      value (true/false) as an argument; if none is specified\r\n                      true is assumed.\r\n  dir                 Erases files and folders in the directory\r\n    optional arguments: dir=&lt;directory&gt;[,-excludeMask][,+includeMask][,deleteIfEmpty]\r\n      excludeMask     A wildcard expression for files and folders to\r\n                      exclude.\r\n      includeMask     A wildcard expression for files and folders to\r\n                      include.\r\n                      The include mask is applied before the exclude mask.\r\n      deleteIfEmpty   Deletes the folder at the end of the erasure if it is\r\n                      empty.\r\n  file                Erases the specified file\r\n\r\nparameters for querymethods:\r\n  eraser querymethods\r\n\r\n  no parameters to set.\r\n\r\nparameters for importtasklist:\r\n  eraser importtasklist (file)[...]\r\n\r\n  [file]              A list of one or more files to import.\r\n\r\nAll arguments are case sensitive.\r\n\r\nResponse files can be used for very long command lines (generally, anything\r\ninvolving more than 32,000 characters.) Response files are used by prepending\r\n@ to the path to the file, and passing it into the command line. The\r\ncontents of the response files' will be substituted at the same position into\r\nthe command line." xml:space="preserve"> 
     163    <value>usage: Eraser &lt;action&gt; &lt;arguments&gt;\r\nwhere action is\r\n  help                Show this help message.\r\n  addtask             Adds tasks to the current task list.\r\n  querymethods        Lists all registered Erasure methods.\r\n  importtasklist      Imports an Eraser Task list to the current user's Task\r\n                      List.\r\n\r\nglobal parameters:\r\n  /quiet              Do not create a Console window to display progress.\r\n\r\nparameters for help:\r\n  eraser help\r\n\r\n  no parameters to set.\r\n\r\nparameters for addtask:\r\n  eraser addtask [/method=&lt;methodGUID&gt;] [/schedule=(now|manually|restart)] (recyclebin | unused=&lt;volume&gt; | dir=&lt;directory&gt; | file=&lt;file&gt;)[...]\r\n\r\n  /method             The Erasure method to use.\r\n  /schedule           The schedule the task will follow. The value must be one\r\n                      of:\r\n      now             The task will be queued for immediate execution.\r\n      manually        The task will be created but not queued for execution.\r\n      restart         The task will be queued for execution when the computer\r\n                      is next restarted.\r\n  recyclebin          Erases files and folders in the recycle bin\r\n  unused              Erases unused space in the volume.\r\n    optional arguments: unused=&lt;drive&gt;[,clusterTips[=(true|false)]]\r\n      clusterTips     If specified, the drive's files will have their\r\n                      cluster tips erased. This parameter accepts a Boolean\r\n                      value (true/false) as an argument; if none is specified\r\n                      true is assumed.\r\n  dir                 Erases files and folders in the directory\r\n    optional arguments: dir=&lt;directory&gt;[,-excludeMask][,+includeMask][,deleteIfEmpty]\r\n      excludeMask     A wildcard expression for files and folders to\r\n                      exclude.\r\n      includeMask     A wildcard expression for files and folders to\r\n                      include.\r\n                      The include mask is applied before the exclude mask.\r\n      deleteIfEmpty   Deletes the folder at the end of the erasure if it is\r\n                      empty.\r\n  file                Erases the specified file\r\n\r\nparameters for querymethods:\r\n  eraser querymethods\r\n\r\n  no parameters to set.\r\n\r\nparameters for importtasklist:\r\n  eraser importtasklist (file)[...]\r\n\r\n  [file]              A list of one or more files to import.\r\n\r\nAll arguments are case sensitive.\r\n\r\nResponse files can be used for very long command lines (generally, anything\r\ninvolving more than 32,000 characters.) Response files are used by prepending\r\n@ to the path to the file, and passing it into the command line. The\r\ncontents of the response files' will be substituted at the same position into\r\nthe command line.</value> 
     164  </data> 
     165  <data name="Eraser {0}\r\n(c) 2008-2010 The Eraser Project\r\nEraser is Open-Source Software: see http://eraser.heidi.ie/ for details.\r\n" xml:space="preserve"> 
     166    <value>Eraser {0}\r\n(c) 2008-2010 The Eraser Project\r\nEraser is Open-Source Software: see http://eraser.heidi.ie/ for details.\r\n</value> 
     167  </data> 
     168  <data name="Unknown schedule type: {0}" xml:space="preserve"> 
     169    <value>Unknown schedule type: {0}</value> 
     170  </data> 
     171  <data name="Unknown argument: {0}, skipped." xml:space="preserve"> 
     172    <value>Unknown argument: {0}, skipped.</value> 
     173  </data> 
     174  <data name="Tasks must contain at least one erasure target." xml:space="preserve"> 
     175    <value>Tasks must contain at least one erasure target.</value> 
     176  </data> 
    156177  <data name="Could not load task list. All task entries have been lost. The error returned was: {0}" xml:space="preserve"> 
    157178    <value>Could not load task list. All task entries have been lost. The error returned was: {0}</value> 
  • trunk/eraser/Eraser/Strings.it.resx

    r2057 r2142  
    154154    <value>Elaborazione:</value> 
    155155  </data> 
     156  <data name="Eraser cannot connect to the running instance for erasures." xml:space="preserve"> 
     157    <value>(Untranslated)</value> 
     158  </data> 
     159  <data name="Another instance of Eraser is already running but it is running with higher privileges than this instance of Eraser. Tasks cannot be added in this manner.\n\nClose the running instance of Eraser and start it again without administrator privileges, or run the command again as an administrator." xml:space="preserve"> 
     160    <value>(Untranslated)</value> 
     161  </data> 
     162  <data name="usage: Eraser &lt;action&gt; &lt;arguments&gt;\r\nwhere action is\r\n  help                Show this help message.\r\n  addtask             Adds tasks to the current task list.\r\n  querymethods        Lists all registered Erasure methods.\r\n  importtasklist      Imports an Eraser Task list to the current user's Task\r\n                      List.\r\n\r\nglobal parameters:\r\n  /quiet              Do not create a Console window to display progress.\r\n\r\nparameters for help:\r\n  eraser help\r\n\r\n  no parameters to set.\r\n\r\nparameters for addtask:\r\n  eraser addtask [/method=&lt;methodGUID&gt;] [/schedule=(now|manually|restart)] (recyclebin | unused=&lt;volume&gt; | dir=&lt;directory&gt; | file=&lt;file&gt;)[...]\r\n\r\n  /method             The Erasure method to use.\r\n  /schedule           The schedule the task will follow. The value must be one\r\n                      of:\r\n      now             The task will be queued for immediate execution.\r\n      manually        The task will be created but not queued for execution.\r\n      restart         The task will be queued for execution when the computer\r\n                      is next restarted.\r\n  recyclebin          Erases files and folders in the recycle bin\r\n  unused              Erases unused space in the volume.\r\n    optional arguments: unused=&lt;drive&gt;[,clusterTips[=(true|false)]]\r\n      clusterTips     If specified, the drive's files will have their\r\n                      cluster tips erased. This parameter accepts a Boolean\r\n                      value (true/false) as an argument; if none is specified\r\n                      true is assumed.\r\n  dir                 Erases files and folders in the directory\r\n    optional arguments: dir=&lt;directory&gt;[,-excludeMask][,+includeMask][,deleteIfEmpty]\r\n      excludeMask     A wildcard expression for files and folders to\r\n                      exclude.\r\n      includeMask     A wildcard expression for files and folders to\r\n                      include.\r\n                      The include mask is applied before the exclude mask.\r\n      deleteIfEmpty   Deletes the folder at the end of the erasure if it is\r\n                      empty.\r\n  file                Erases the specified file\r\n\r\nparameters for querymethods:\r\n  eraser querymethods\r\n\r\n  no parameters to set.\r\n\r\nparameters for importtasklist:\r\n  eraser importtasklist (file)[...]\r\n\r\n  [file]              A list of one or more files to import.\r\n\r\nAll arguments are case sensitive.\r\n\r\nResponse files can be used for very long command lines (generally, anything\r\ninvolving more than 32,000 characters.) Response files are used by prepending\r\n@ to the path to the file, and passing it into the command line. The\r\ncontents of the response files' will be substituted at the same position into\r\nthe command line." xml:space="preserve"> 
     163    <value>(Untranslated)</value> 
     164  </data> 
     165  <data name="Eraser {0}\r\n(c) 2008-2010 The Eraser Project\r\nEraser is Open-Source Software: see http://eraser.heidi.ie/ for details.\r\n" xml:space="preserve"> 
     166    <value>(Untranslated)</value> 
     167  </data> 
     168  <data name="Unknown schedule type: {0}" xml:space="preserve"> 
     169    <value>(Untranslated)</value> 
     170  </data> 
     171  <data name="Unknown argument: {0}, skipped." xml:space="preserve"> 
     172    <value>(Untranslated)</value> 
     173  </data> 
     174  <data name="Tasks must contain at least one erasure target." xml:space="preserve"> 
     175    <value>(Untranslated)</value> 
     176  </data> 
    156177  <data name="Could not load task list. All task entries have been lost. The error returned was: {0}" xml:space="preserve"> 
    157178    <value>Impossibile caricare la lista delle operazioni. Tutte i relativi riferimenti sono stati persi. L'errore è stato: {0}</value> 
  • trunk/eraser/Eraser/Strings.nl.resx

    r2057 r2142  
    154154    <value>(Untranslated)</value> 
    155155  </data> 
     156  <data name="Eraser cannot connect to the running instance for erasures." xml:space="preserve"> 
     157    <value>(Untranslated)</value> 
     158  </data> 
     159  <data name="Another instance of Eraser is already running but it is running with higher privileges than this instance of Eraser. Tasks cannot be added in this manner.\n\nClose the running instance of Eraser and start it again without administrator privileges, or run the command again as an administrator." xml:space="preserve"> 
     160    <value>(Untranslated)</value> 
     161  </data> 
     162  <data name="usage: Eraser &lt;action&gt; &lt;arguments&gt;\r\nwhere action is\r\n  help                Show this help message.\r\n  addtask             Adds tasks to the current task list.\r\n  querymethods        Lists all registered Erasure methods.\r\n  importtasklist      Imports an Eraser Task list to the current user's Task\r\n                      List.\r\n\r\nglobal parameters:\r\n  /quiet              Do not create a Console window to display progress.\r\n\r\nparameters for help:\r\n  eraser help\r\n\r\n  no parameters to set.\r\n\r\nparameters for addtask:\r\n  eraser addtask [/method=&lt;methodGUID&gt;] [/schedule=(now|manually|restart)] (recyclebin | unused=&lt;volume&gt; | dir=&lt;directory&gt; | file=&lt;file&gt;)[...]\r\n\r\n  /method             The Erasure method to use.\r\n  /schedule           The schedule the task will follow. The value must be one\r\n                      of:\r\n      now             The task will be queued for immediate execution.\r\n      manually        The task will be created but not queued for execution.\r\n      restart         The task will be queued for execution when the computer\r\n                      is next restarted.\r\n  recyclebin          Erases files and folders in the recycle bin\r\n  unused              Erases unused space in the volume.\r\n    optional arguments: unused=&lt;drive&gt;[,clusterTips[=(true|false)]]\r\n      clusterTips     If specified, the drive's files will have their\r\n                      cluster tips erased. This parameter accepts a Boolean\r\n                      value (true/false) as an argument; if none is specified\r\n                      true is assumed.\r\n  dir                 Erases files and folders in the directory\r\n    optional arguments: dir=&lt;directory&gt;[,-excludeMask][,+includeMask][,deleteIfEmpty]\r\n      excludeMask     A wildcard expression for files and folders to\r\n                      exclude.\r\n      includeMask     A wildcard expression for files and folders to\r\n                      include.\r\n                      The include mask is applied before the exclude mask.\r\n      deleteIfEmpty   Deletes the folder at the end of the erasure if it is\r\n                      empty.\r\n  file                Erases the specified file\r\n\r\nparameters for querymethods:\r\n  eraser querymethods\r\n\r\n  no parameters to set.\r\n\r\nparameters for importtasklist:\r\n  eraser importtasklist (file)[...]\r\n\r\n  [file]              A list of one or more files to import.\r\n\r\nAll arguments are case sensitive.\r\n\r\nResponse files can be used for very long command lines (generally, anything\r\ninvolving more than 32,000 characters.) Response files are used by prepending\r\n@ to the path to the file, and passing it into the command line. The\r\ncontents of the response files' will be substituted at the same position into\r\nthe command line." xml:space="preserve"> 
     163    <value>(Untranslated)</value> 
     164  </data> 
     165  <data name="Eraser {0}\r\n(c) 2008-2010 The Eraser Project\r\nEraser is Open-Source Software: see http://eraser.heidi.ie/ for details.\r\n" xml:space="preserve"> 
     166    <value>(Untranslated)</value> 
     167  </data> 
     168  <data name="Unknown schedule type: {0}" xml:space="preserve"> 
     169    <value>(Untranslated)</value> 
     170  </data> 
     171  <data name="Unknown argument: {0}, skipped." xml:space="preserve"> 
     172    <value>(Untranslated)</value> 
     173  </data> 
     174  <data name="Tasks must contain at least one erasure target." xml:space="preserve"> 
     175    <value>(Untranslated)</value> 
     176  </data> 
    156177  <data name="Could not load task list. All task entries have been lost. The error returned was: {0}" xml:space="preserve"> 
    157178    <value>(Untranslated)</value> 
  • trunk/eraser/Eraser/Strings.pl.resx

    r2057 r2142  
    154154    <value>Przetwarzanie:</value> 
    155155  </data> 
     156  <data name="Eraser cannot connect to the running instance for erasures." xml:space="preserve"> 
     157    <value>(Untranslated)</value> 
     158  </data> 
     159  <data name="Another instance of Eraser is already running but it is running with higher privileges than this instance of Eraser. Tasks cannot be added in this manner.\n\nClose the running instance of Eraser and start it again without administrator privileges, or run the command again as an administrator." xml:space="preserve"> 
     160    <value>(Untranslated)</value> 
     161  </data> 
     162  <data name="usage: Eraser &lt;action&gt; &lt;arguments&gt;\r\nwhere action is\r\n  help                Show this help message.\r\n  addtask             Adds tasks to the current task list.\r\n  querymethods        Lists all registered Erasure methods.\r\n  importtasklist      Imports an Eraser Task list to the current user's Task\r\n                      List.\r\n\r\nglobal parameters:\r\n  /quiet              Do not create a Console window to display progress.\r\n\r\nparameters for help:\r\n  eraser help\r\n\r\n  no parameters to set.\r\n\r\nparameters for addtask:\r\n  eraser addtask [/method=&lt;methodGUID&gt;] [/schedule=(now|manually|restart)] (recyclebin | unused=&lt;volume&gt; | dir=&lt;directory&gt; | file=&lt;file&gt;)[...]\r\n\r\n  /method             The Erasure method to use.\r\n  /schedule           The schedule the task will follow. The value must be one\r\n                      of:\r\n      now             The task will be queued for immediate execution.\r\n      manually        The task will be created but not queued for execution.\r\n      restart         The task will be queued for execution when the computer\r\n                      is next restarted.\r\n  recyclebin          Erases files and folders in the recycle bin\r\n  unused              Erases unused space in the volume.\r\n    optional arguments: unused=&lt;drive&gt;[,clusterTips[=(true|false)]]\r\n      clusterTips     If specified, the drive's files will have their\r\n                      cluster tips erased. This parameter accepts a Boolean\r\n                      value (true/false) as an argument; if none is specified\r\n                      true is assumed.\r\n  dir                 Erases files and folders in the directory\r\n    optional arguments: dir=&lt;directory&gt;[,-excludeMask][,+includeMask][,deleteIfEmpty]\r\n      excludeMask     A wildcard expression for files and folders to\r\n                      exclude.\r\n      includeMask     A wildcard expression for files and folders to\r\n                      include.\r\n                      The include mask is applied before the exclude mask.\r\n      deleteIfEmpty   Deletes the folder at the end of the erasure if it is\r\n                      empty.\r\n  file                Erases the specified file\r\n\r\nparameters for querymethods:\r\n  eraser querymethods\r\n\r\n  no parameters to set.\r\n\r\nparameters for importtasklist:\r\n  eraser importtasklist (file)[...]\r\n\r\n  [file]              A list of one or more files to import.\r\n\r\nAll arguments are case sensitive.\r\n\r\nResponse files can be used for very long command lines (generally, anything\r\ninvolving more than 32,000 characters.) Response files are used by prepending\r\n@ to the path to the file, and passing it into the command line. The\r\ncontents of the response files' will be substituted at the same position into\r\nthe command line." xml:space="preserve"> 
     163    <value>(Untranslated)</value> 
     164  </data> 
     165  <data name="Eraser {0}\r\n(c) 2008-2010 The Eraser Project\r\nEraser is Open-Source Software: see http://eraser.heidi.ie/ for details.\r\n" xml:space="preserve"> 
     166    <value>(Untranslated)</value> 
     167  </data> 
     168  <data name="Unknown schedule type: {0}" xml:space="preserve"> 
     169    <value>(Untranslated)</value> 
     170  </data> 
     171  <data name="Unknown argument: {0}, skipped." xml:space="preserve"> 
     172    <value>(Untranslated)</value> 
     173  </data> 
     174  <data name="Tasks must contain at least one erasure target." xml:space="preserve"> 
     175    <value>(Untranslated)</value> 
     176  </data> 
    156177  <data name="Could not load task list. All task entries have been lost. The error returned was: {0}" xml:space="preserve"> 
    157178    <value>Nie można było załadować listy zadań. Wszystkie wpisy zadań zostały utracone. Wystąpił błąd: {0}</value> 
  • trunk/eraser/Eraser/Strings.resx

    r2057 r2142  
    154154    <value>Processing:</value> 
    155155  </data> 
     156  <data name="Eraser cannot connect to the running instance for erasures." xml:space="preserve"> 
     157    <value>Eraser cannot connect to the running instance for erasures.</value> 
     158  </data> 
     159  <data name="Another instance of Eraser is already running but it is running with higher privileges than this instance of Eraser. Tasks cannot be added in this manner.\n\nClose the running instance of Eraser and start it again without administrator privileges, or run the command again as an administrator." xml:space="preserve"> 
     160    <value>Another instance of Eraser is already running but it is running with higher privileges than this instance of Eraser. Tasks cannot be added in this manner.\n\nClose the running instance of Eraser and start it again without administrator privileges, or run the command again as an administrator.</value> 
     161  </data> 
     162  <data name="usage: Eraser &lt;action&gt; &lt;arguments&gt;\r\nwhere action is\r\n  help                Show this help message.\r\n  addtask             Adds tasks to the current task list.\r\n  querymethods        Lists all registered Erasure methods.\r\n  importtasklist      Imports an Eraser Task list to the current user's Task\r\n                      List.\r\n\r\nglobal parameters:\r\n  /quiet              Do not create a Console window to display progress.\r\n\r\nparameters for help:\r\n  eraser help\r\n\r\n  no parameters to set.\r\n\r\nparameters for addtask:\r\n  eraser addtask [/method=&lt;methodGUID&gt;] [/schedule=(now|manually|restart)] (recyclebin | unused=&lt;volume&gt; | dir=&lt;directory&gt; | file=&lt;file&gt;)[...]\r\n\r\n  /method             The Erasure method to use.\r\n  /schedule           The schedule the task will follow. The value must be one\r\n                      of:\r\n      now             The task will be queued for immediate execution.\r\n      manually        The task will be created but not queued for execution.\r\n      restart         The task will be queued for execution when the computer\r\n                      is next restarted.\r\n  recyclebin          Erases files and folders in the recycle bin\r\n  unused              Erases unused space in the volume.\r\n    optional arguments: unused=&lt;drive&gt;[,clusterTips[=(true|false)]]\r\n      clusterTips     If specified, the drive's files will have their\r\n                      cluster tips erased. This parameter accepts a Boolean\r\n                      value (true/false) as an argument; if none is specified\r\n                      true is assumed.\r\n  dir                 Erases files and folders in the directory\r\n    optional arguments: dir=&lt;directory&gt;[,-excludeMask][,+includeMask][,deleteIfEmpty]\r\n      excludeMask     A wildcard expression for files and folders to\r\n                      exclude.\r\n      includeMask     A wildcard expression for files and folders to\r\n                      include.\r\n                      The include mask is applied before the exclude mask.\r\n      deleteIfEmpty   Deletes the folder at the end of the erasure if it is\r\n                      empty.\r\n  file                Erases the specified file\r\n\r\nparameters for querymethods:\r\n  eraser querymethods\r\n\r\n  no parameters to set.\r\n\r\nparameters for importtasklist:\r\n  eraser importtasklist (file)[...]\r\n\r\n  [file]              A list of one or more files to import.\r\n\r\nAll arguments are case sensitive.\r\n\r\nResponse files can be used for very long command lines (generally, anything\r\ninvolving more than 32,000 characters.) Response files are used by prepending\r\n@ to the path to the file, and passing it into the command line. The\r\ncontents of the response files' will be substituted at the same position into\r\nthe command line." xml:space="preserve"> 
     163    <value>usage: Eraser &lt;action&gt; &lt;arguments&gt;\r\nwhere action is\r\n  help                Show this help message.\r\n  addtask             Adds tasks to the current task list.\r\n  querymethods        Lists all registered Erasure methods.\r\n  importtasklist      Imports an Eraser Task list to the current user's Task\r\n                      List.\r\n\r\nglobal parameters:\r\n  /quiet              Do not create a Console window to display progress.\r\n\r\nparameters for help:\r\n  eraser help\r\n\r\n  no parameters to set.\r\n\r\nparameters for addtask:\r\n  eraser addtask [/method=&lt;methodGUID&gt;] [/schedule=(now|manually|restart)] (recyclebin | unused=&lt;volume&gt; | dir=&lt;directory&gt; | file=&lt;file&gt;)[...]\r\n\r\n  /method             The Erasure method to use.\r\n  /schedule           The schedule the task will follow. The value must be one\r\n                      of:\r\n      now             The task will be queued for immediate execution.\r\n      manually        The task will be created but not queued for execution.\r\n      restart         The task will be queued for execution when the computer\r\n                      is next restarted.\r\n  recyclebin          Erases files and folders in the recycle bin\r\n  unused              Erases unused space in the volume.\r\n    optional arguments: unused=&lt;drive&gt;[,clusterTips[=(true|false)]]\r\n      clusterTips     If specified, the drive's files will have their\r\n                      cluster tips erased. This parameter accepts a Boolean\r\n                      value (true/false) as an argument; if none is specified\r\n                      true is assumed.\r\n  dir                 Erases files and folders in the directory\r\n    optional arguments: dir=&lt;directory&gt;[,-excludeMask][,+includeMask][,deleteIfEmpty]\r\n      excludeMask     A wildcard expression for files and folders to\r\n                      exclude.\r\n      includeMask     A wildcard expression for files and folders to\r\n                      include.\r\n                      The include mask is applied before the exclude mask.\r\n      deleteIfEmpty   Deletes the folder at the end of the erasure if it is\r\n                      empty.\r\n  file                Erases the specified file\r\n\r\nparameters for querymethods:\r\n  eraser querymethods\r\n\r\n  no parameters to set.\r\n\r\nparameters for importtasklist:\r\n  eraser importtasklist (file)[...]\r\n\r\n  [file]              A list of one or more files to import.\r\n\r\nAll arguments are case sensitive.\r\n\r\nResponse files can be used for very long command lines (generally, anything\r\ninvolving more than 32,000 characters.) Response files are used by prepending\r\n@ to the path to the file, and passing it into the command line. The\r\ncontents of the response files' will be substituted at the same position into\r\nthe command line.</value> 
     164  </data> 
     165  <data name="Eraser {0}\r\n(c) 2008-2010 The Eraser Project\r\nEraser is Open-Source Software: see http://eraser.heidi.ie/ for details.\r\n" xml:space="preserve"> 
     166    <value>Eraser {0}\r\n(c) 2008-2010 The Eraser Project\r\nEraser is Open-Source Software: see http://eraser.heidi.ie/ for details.\r\n</value> 
     167  </data> 
     168  <data name="Unknown schedule type: {0}" xml:space="preserve"> 
     169    <value>Unknown schedule type: {0}</value> 
     170  </data> 
     171  <data name="Unknown argument: {0}, skipped." xml:space="preserve"> 
     172    <value>Unknown argument: {0}, skipped.</value> 
     173  </data> 
     174  <data name="Tasks must contain at least one erasure target." xml:space="preserve"> 
     175    <value>Tasks must contain at least one erasure target.</value> 
     176  </data> 
    156177  <data name="Could not load task list. All task entries have been lost. The error returned was: {0}" xml:space="preserve"> 
    157178    <value>Could not load task list. All task entries have been lost. The error returned was: {0}</value> 
Note: See TracChangeset for help on using the changeset viewer.