mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-02 13:24:12 +01:00
Fixed translated text string. Show warning message during loading of TargetPlatforms
This commit is contained in:
parent
3a68385c07
commit
c70cba8fcd
@ -23,11 +23,14 @@
|
|||||||
*/
|
*/
|
||||||
package processing.app.debug;
|
package processing.app.debug;
|
||||||
|
|
||||||
|
import static processing.app.I18n._;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.LinkedHashMap;
|
import java.util.LinkedHashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
import processing.app.I18n;
|
||||||
import processing.app.helpers.filefilters.OnlyDirs;
|
import processing.app.helpers.filefilters.OnlyDirs;
|
||||||
|
|
||||||
public class TargetPackage {
|
public class TargetPackage {
|
||||||
@ -51,12 +54,14 @@ public class TargetPackage {
|
|||||||
TargetPlatform platform = new TargetPlatform(arch, subFolder, this);
|
TargetPlatform platform = new TargetPlatform(arch, subFolder, this);
|
||||||
platforms.put(arch, platform);
|
platforms.put(arch, platform);
|
||||||
} catch (TargetPlatformException e) {
|
} catch (TargetPlatformException e) {
|
||||||
continue;
|
System.out.println(e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(platforms.size() == 0) {
|
if (platforms.size() == 0) {
|
||||||
throw new TargetPlatformException("No architecture directories with boards.txt files were found in hardware folder " + _folder.getName() + ". Is it pre-1.5?");
|
throw new TargetPlatformException(I18n
|
||||||
|
.format(_("No valid hardware definitions found in folder {0}."),
|
||||||
|
_folder.getName()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user