@@ -487,9 +487,9 @@ static public void init(String[] args) {
487487 List <String > warningsAccumulator = new LinkedList <String >();
488488 boolean success = false ;
489489 try {
490- // costruttore di Editor carica lo sketch usando handleOpenInternal() che fa
491- // la new di Sketch che chiama load() nel suo costruttore
492- // In questo punto questo si traduce in :
490+ // Editor constructor loads the sketch with handleOpenInternal() that
491+ // creates a new Sketch that, in trun, calls load() inside its constructor
492+ // This translates here as :
493493 // SketchData data = new SketchData(file);
494494 // File tempBuildFolder = getBuildFolder();
495495 // data.load();
@@ -498,17 +498,17 @@ static public void init(String[] args) {
498498 data .load ();
499499
500500 // Sketch.exportApplet()
501- // - chiama Sketch.prepare() che chiama Sketch.ensureExistence()
502- // - chiama Sketch.build(verbose=false) che chiama Sketch.ensureExistence(), imposta il progressListener e chiama Compiler.build()
503- // - chiama Sketch.upload() (cfr. dopo ...)
501+ // - calls Sketch.prepare() that calls Sketch.ensureExistence()
502+ // - calls Sketch.build(verbose=false) that calls Sketch.ensureExistence(), set progressListener and calls Compiler.build()
503+ // - calls Sketch.upload() (see later ...)
504504 if (!data .getFolder ().exists ()) showError (_ ("No sketch" ), _ ("Can't find the sketch in the specified path" ), null );
505505 String suggestedClassName = Compiler .build (data , tempBuildFolder .getAbsolutePath (), tempBuildFolder , null , parser .isDoVerboseBuild ());
506506 if (suggestedClassName == null ) showError (_ ("Error while verifying" ), _ ("An error occurred while verifying the sketch" ), null );
507507 showMessage (_ ("Done compiling" ), _ ("Done compiling" ));
508508
509509 // - chiama Sketch.upload() ... to be continued ...
510510 Uploader uploader = Compiler .getUploaderByPreferences (parser .isNoUploadPort ());
511- if (uploader .requiresAuthorization () && !PreferencesData .has (uploader .getAuthorizationKey ())) showError (_ ( "..." ), _ ( "..." ) , null );
511+ if (uploader .requiresAuthorization () && !PreferencesData .has (uploader .getAuthorizationKey ())) showError ("..." , "..." , null );
512512 try {
513513 success = Compiler .upload (data , uploader , tempBuildFolder .getAbsolutePath (), suggestedClassName , parser .isDoUseProgrammer (), parser .isNoUploadPort (), warningsAccumulator );
514514 showMessage (_ ("Done uploading" ), _ ("Done uploading" ));
@@ -531,19 +531,19 @@ static public void init(String[] args) {
531531 for (String path : parser .getFilenames ())
532532 {
533533 try {
534- // costruttore di Editor carica lo sketch usando handleOpenInternal() che fa
535- // la new di Sketch che chiama load() nel suo costruttore
536- // In questo punto questo si traduce in :
534+ // Editor constructor loads sketch with handleOpenInternal() that
535+ // creates a new Sketch that calls load() in its constructor
536+ // This translates here as :
537537 // SketchData data = new SketchData(file);
538538 // File tempBuildFolder = getBuildFolder();
539539 // data.load();
540540 SketchData data = new SketchData (absoluteFile (path ));
541541 File tempBuildFolder = getBuildFolder ();
542542 data .load ();
543543
544- // metodo Sketch.prepare() chiama Sketch.ensureExistence()
545- // Sketch.build(verbose) chiama Sketch.ensureExistence() e poi imposta il progressListener e, finalmente, chiama Compiler.build()
546- // In questo punto questo si traduce in :
544+ // Sketch.prepare() calls Sketch.ensureExistence()
545+ // Sketch.build(verbose) calls Sketch.ensureExistence() and set progressListener and, finally, calls Compiler.build()
546+ // This translates here as :
547547 // if (!data.getFolder().exists()) showError(...);
548548 // String ... = Compiler.build(data, tempBuildFolder.getAbsolutePath(), tempBuildFolder, null, verbose);
549549 if (!data .getFolder ().exists ()) showError (_ ("No sketch" ), _ ("Can't find the sketch in the specified path" ), null );
0 commit comments