Skip to content

Commit ff95d03

Browse files
committed
Updated some translation strings
1 parent 81808d5 commit ff95d03

File tree

4 files changed

+17
-15
lines changed

4 files changed

+17
-15
lines changed

Diff for: arduino-core/src/cc/arduino/packages/uploaders/SerialUploader.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ public boolean uploadUsingPreferences(File sourcePath, String buildPath, String
114114
List<String> before = Serial.list();
115115
if (before.contains(uploadPort)) {
116116
if (verbose)
117-
System.out.println(_("Forcing reset using 1200bps open/close on port ") + uploadPort);
117+
System.out.println(
118+
I18n.format(_("Forcing reset using 1200bps open/close on port {0}"), uploadPort));
118119
Serial.touchPort(uploadPort, 1200);
119120
}
120121
Thread.sleep(400);

Diff for: arduino-core/src/processing/app/BaseNoGui.java

+13-13
Original file line numberDiff line numberDiff line change
@@ -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);

Diff for: arduino-core/src/processing/app/debug/Compiler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public interface ProgressListener {
8686
static public String build(SketchData data, String buildPath, File tempBuildFolder, ProgressListener progListener, boolean verbose) throws RunnerException, PreferencesMapException {
8787
if (SketchData.checkSketchFile(data.getPrimaryFile()) == null)
8888
BaseNoGui.showError(_("Bad file selected"),
89-
_("Bad sketch primary file or bad sketck directory structure"), null);
89+
_("Bad sketch primary file or bad sketch directory structure"), null);
9090

9191
String primaryClassName = data.getName() + ".cpp";
9292
Compiler compiler = new Compiler(data, buildPath, primaryClassName);

Diff for: arduino-core/src/processing/app/i18n/update.sh

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ catalog()
2121
# Generate the new text catalog without the already translated texts.
2222
# The 'merge existing' option for xgetext does not work propery for our purpose.
2323
find ../../../ -name '*.java' -print > "$files"
24+
find ../../../../../app/src -name '*.java' -print >> "$files"
2425
xgettext -s -L Java --from-code=utf-8 -k_ --output="$catalog" --files-from="$files"
2526
}
2627

0 commit comments

Comments
 (0)