Skip to content

Commit b4286c7

Browse files
committed
Merge remote-tracking branch 'arduino/master' into iserial2_complete
2 parents 1ada616 + 9d2d4ef commit b4286c7

File tree

191 files changed

+6055
-4840
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

191 files changed

+6055
-4840
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
Arduino
22
========
33

4-
* Arduino is an open-source physical computing platform based on a simple i/o
4+
* Arduino is an open-source physical computing platform based on a simple I/O
55
board and a development environment that implements the Processing/Wiring
66
language. Arduino can be used to develop stand-alone interactive objects or
7-
can be connected to software on your computer (e.g. Flash, Processing, MaxMSP).
7+
can be connected to software on your computer (e.g. Flash, Processing and MaxMSP).
88
The boards can be assembled by hand or purchased preassembled; the open-source
99
IDE can be downloaded for free at http://www.arduino.cc/en/Main/Software
1010

1111
* For more information, see the website at: http://www.arduino.cc/
1212
or the forums at: http://www.arduino.cc/forum/
13-
You can also follow Arduino on twitter at: https://twitter.com/arduino or
13+
You can also follow Arduino on Twitter at: https://twitter.com/arduino or
1414
like Arduino on Facebook at: https://www.facebook.com/official.arduino
1515

1616
* To report a *bug* in the software or to request *a simple enhancement* go to:

app/src/processing/app/syntax/PdeKeywords.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,11 @@ private void fillMissingTokenType() {
148148
if (!keywordTokenTypeAsString.containsKey(keyword)) {
149149
if ("KEYWORD1".equals(oldTokenEntry.getValue())) {
150150
parseRSyntaxTextAreaTokenType("DATA_TYPE", keyword);
151-
} else {
151+
}
152+
else if ("LITERAL1".equals(oldTokenEntry.getValue())) {
153+
parseRSyntaxTextAreaTokenType("RESERVED_WORD_2", keyword);
154+
}
155+
else {
152156
parseRSyntaxTextAreaTokenType("FUNCTION", keyword);
153157
}
154158
}

arduino-core/src/cc/arduino/Compiler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ private void callArduinoBuilder(TargetBoard board, TargetPlatform platform, Targ
269269
}
270270

271271
if (result != 0) {
272-
RunnerException re = new RunnerException(tr("Error compiling."));
272+
RunnerException re = new RunnerException(I18n.format(tr("Error compiling for board {0}."), board.getName()));
273273
re.hideStackTrace();
274274
throw re;
275275
}

arduino-core/src/cc/arduino/utils/network/FileDownloader.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
import cc.arduino.net.CustomProxySelector;
3333
import org.apache.commons.codec.binary.Base64;
3434
import org.apache.commons.compress.utils.IOUtils;
35+
36+
import processing.app.BaseNoGui;
3537
import processing.app.PreferencesData;
3638

3739
import java.io.File;
@@ -66,12 +68,15 @@ public enum Status {
6668
private final File outputFile;
6769
private InputStream stream = null;
6870
private Exception error;
71+
private String userAgent;
6972

7073
public FileDownloader(URL url, File file) {
7174
downloadUrl = url;
7275
outputFile = file;
7376
downloaded = 0;
7477
initialSize = 0;
78+
userAgent = "ArduinoIDE/" + BaseNoGui.VERSION_NAME + " Java/"
79+
+ System.getProperty("java.version");
7580
}
7681

7782
public long getInitialSize() {
@@ -151,7 +156,7 @@ private void downloadFile() throws InterruptedException {
151156
}
152157

153158
HttpURLConnection connection = (HttpURLConnection) downloadUrl.openConnection(proxy);
154-
159+
connection.setRequestProperty("User-agent", userAgent);
155160
if (downloadUrl.getUserInfo() != null) {
156161
String auth = "Basic " + new String(new Base64().encode(downloadUrl.getUserInfo().getBytes()));
157162
connection.setRequestProperty("Authorization", auth);
@@ -172,6 +177,7 @@ private void downloadFile() throws InterruptedException {
172177

173178
// open the new connnection again
174179
connection = (HttpURLConnection) newUrl.openConnection(proxy);
180+
connection.setRequestProperty("User-agent", userAgent);
175181
if (downloadUrl.getUserInfo() != null) {
176182
String auth = "Basic " + new String(new Base64().encode(downloadUrl.getUserInfo().getBytes()));
177183
connection.setRequestProperty("Authorization", auth);

arduino-core/src/processing/app/i18n/Resources_af.po

Lines changed: 29 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@
1010
# Translators:
1111
# Translators:
1212
# Translators:
13+
# Translators:
1314
# Edrean Ernst <[email protected]>, 2015
1415
msgid ""
1516
msgstr ""
1617
"Project-Id-Version: Arduino IDE 1.5\n"
1718
"Report-Msgid-Bugs-To: \n"
1819
"POT-Creation-Date: 2012-03-29 10:24-0400\n"
19-
"PO-Revision-Date: 2015-11-18 16:15+0000\n"
20-
"Last-Translator: Federico Fissore <f.fissore@arduino.cc>\n"
20+
"PO-Revision-Date: 2016-01-05 11:36+0000\n"
21+
"Last-Translator: Cristian Maglie <c.maglie@arduino.cc>\n"
2122
"Language-Team: Afrikaans (http://www.transifex.com/mbanzi/arduino-ide-15/language/af/)\n"
2223
"MIME-Version: 1.0\n"
2324
"Content-Type: text/plain; charset=UTF-8\n"
@@ -1572,8 +1573,9 @@ msgstr ""
15721573
msgid "Problem accessing board folder /www/sd"
15731574
msgstr ""
15741575

1575-
#: ../../../cc/arduino/packages/uploaders/SSHUploader.java:132
1576-
msgid "Problem accessing files in folder "
1576+
#: ../../../../../arduino-core/src/cc/arduino/packages/uploaders/SSHUploader.java:206
1577+
#, java-format
1578+
msgid "Problem accessing files in folder \"{0}\""
15771579
msgstr ""
15781580

15791581
#: Base.java:1673
@@ -1662,6 +1664,10 @@ msgstr ""
16621664
msgid "Replace with:"
16631665
msgstr ""
16641666

1667+
#: ../../../../../arduino-core/src/processing/app/I18n.java:28
1668+
msgid "Retired"
1669+
msgstr ""
1670+
16651671
#: Preferences.java:113
16661672
msgid "Romanian"
16671673
msgstr ""
@@ -1802,10 +1808,6 @@ msgstr ""
18021808
msgid "Show Sketch Folder"
18031809
msgstr ""
18041810

1805-
#: ../../../processing/app/EditorStatus.java:468
1806-
msgid "Show verbose output during compilation"
1807-
msgstr ""
1808-
18091811
#: Preferences.java:387
18101812
msgid "Show verbose output during: "
18111813
msgstr ""
@@ -1925,6 +1927,10 @@ msgstr ""
19251927
msgid "Tamil"
19261928
msgstr ""
19271929

1930+
#: ../../../../../app/src/cc/arduino/i18n/Languages.java:100
1931+
msgid "Thai"
1932+
msgstr ""
1933+
19281934
#: debug/Compiler.java:414
19291935
msgid "The 'BYTE' keyword is no longer supported."
19301936
msgstr ""
@@ -2038,8 +2044,11 @@ msgid ""
20382044
"Are you sure you want to delete it?"
20392045
msgstr ""
20402046

2041-
#: ../../../processing/app/EditorStatus.java:467
2042-
msgid "This report would have more information with"
2047+
#: ../../../../../app/src/processing/app/EditorStatus.java:349
2048+
msgid ""
2049+
"This report would have more information with\n"
2050+
"\"Show verbose output during compilation\"\n"
2051+
"option enabled in File -> Preferences.\n"
20432052
msgstr ""
20442053

20452054
#: Base.java:535
@@ -2414,13 +2423,13 @@ msgstr ""
24142423
msgid "\".{0}\" is not a valid extension."
24152424
msgstr ""
24162425

2417-
#: SketchCode.java:258
2426+
#: ../../../../../arduino-core/src/processing/app/SketchCode.java:201
24182427
#, java-format
24192428
msgid ""
2420-
"\"{0}\" contains unrecognized characters.If this code was created with an "
2421-
"older version of Arduino,you may need to use Tools -> Fix Encoding & Reload "
2422-
"to updatethe sketch to use UTF-8 encoding. If not, you may need todelete the"
2423-
" bad characters to get rid of this warning."
2429+
"\"{0}\" contains unrecognized characters. If this code was created with an "
2430+
"older version of Arduino, you may need to use Tools -> Fix Encoding & Reload"
2431+
" to update the sketch to use UTF-8 encoding. If not, you may need to delete "
2432+
"the bad characters to get rid of this warning."
24242433
msgstr ""
24252434

24262435
#: debug/Compiler.java:409
@@ -2490,10 +2499,6 @@ msgstr ""
24902499
msgid "createNewFile() returned false"
24912500
msgstr ""
24922501

2493-
#: ../../../processing/app/EditorStatus.java:469
2494-
msgid "enabled in File > Preferences."
2495-
msgstr ""
2496-
24972502
#: ../../../../../app/src/processing/app/Editor.java:1352
24982503
msgid "http://www.arduino.cc/"
24992504
msgstr ""
@@ -2570,6 +2575,11 @@ msgstr ""
25702575
msgid "{0} must be a folder"
25712576
msgstr ""
25722577

2578+
#: ../../../../../app/src/processing/app/EditorLineStatus.java:109
2579+
#, java-format
2580+
msgid "{0} on {1}"
2581+
msgstr ""
2582+
25732583
#: ../../../../../arduino-core/src/cc/arduino/Compiler.java:78
25742584
#, java-format
25752585
msgid "{0} pattern is missing"

arduino-core/src/processing/app/i18n/Resources_af.properties

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
# Translators:
1111
# Translators:
1212
# Translators:
13+
# Translators:
1314
# Edrean Ernst <[email protected]>, 2015
14-
!=Project-Id-Version\: Arduino IDE 1.5\nReport-Msgid-Bugs-To\: \nPOT-Creation-Date\: 2012-03-29 10\:24-0400\nPO-Revision-Date\: 2015-11-18 16\:15+0000\nLast-Translator\: Federico Fissore <f.fissore@arduino.cc>\nLanguage-Team\: Afrikaans (http\://www.transifex.com/mbanzi/arduino-ide-15/language/af/)\nMIME-Version\: 1.0\nContent-Type\: text/plain; charset\=UTF-8\nContent-Transfer-Encoding\: 8bit\nLanguage\: af\nPlural-Forms\: nplurals\=2; plural\=(n \!\= 1);\n
15+
!=Project-Id-Version\: Arduino IDE 1.5\nReport-Msgid-Bugs-To\: \nPOT-Creation-Date\: 2012-03-29 10\:24-0400\nPO-Revision-Date\: 2016-01-05 11\:36+0000\nLast-Translator\: Cristian Maglie <c.maglie@arduino.cc>\nLanguage-Team\: Afrikaans (http\://www.transifex.com/mbanzi/arduino-ide-15/language/af/)\nMIME-Version\: 1.0\nContent-Type\: text/plain; charset\=UTF-8\nContent-Transfer-Encoding\: 8bit\nLanguage\: af\nPlural-Forms\: nplurals\=2; plural\=(n \!\= 1);\n
1516

1617
#: Preferences.java:358 Preferences.java:374
1718
!\ \ (requires\ restart\ of\ Arduino)=
@@ -1146,8 +1147,9 @@ Arduino\:\ =Arduino\:
11461147
#: ../../../cc/arduino/packages/uploaders/SSHUploader.java:136
11471148
!Problem\ accessing\ board\ folder\ /www/sd=
11481149

1149-
#: ../../../cc/arduino/packages/uploaders/SSHUploader.java:132
1150-
!Problem\ accessing\ files\ in\ folder\ =
1150+
#: ../../../../../arduino-core/src/cc/arduino/packages/uploaders/SSHUploader.java:206
1151+
#, java-format
1152+
!Problem\ accessing\ files\ in\ folder\ "{0}"=
11511153

11521154
#: Base.java:1673
11531155
!Problem\ getting\ data\ folder=
@@ -1213,6 +1215,9 @@ Arduino\:\ =Arduino\:
12131215
#: FindReplace.java:81
12141216
!Replace\ with\:=
12151217

1218+
#: ../../../../../arduino-core/src/processing/app/I18n.java:28
1219+
!Retired=
1220+
12161221
#: Preferences.java:113
12171222
!Romanian=
12181223

@@ -1317,9 +1322,6 @@ Arduino\:\ =Arduino\:
13171322
#: Editor.java:641
13181323
!Show\ Sketch\ Folder=
13191324

1320-
#: ../../../processing/app/EditorStatus.java:468
1321-
!Show\ verbose\ output\ during\ compilation=
1322-
13231325
#: Preferences.java:387
13241326
!Show\ verbose\ output\ during\:\ =
13251327

@@ -1403,6 +1405,9 @@ System\ Default=Stelsel Verstek
14031405
#: Preferences.java:116
14041406
!Tamil=
14051407

1408+
#: ../../../../../app/src/cc/arduino/i18n/Languages.java:100
1409+
!Thai=
1410+
14061411
#: debug/Compiler.java:414
14071412
!The\ 'BYTE'\ keyword\ is\ no\ longer\ supported.=
14081413

@@ -1461,8 +1466,8 @@ System\ Default=Stelsel Verstek
14611466
#: ../../../../../app/src/cc/arduino/contributions/libraries/ui/LibraryManagerUI.java:257
14621467
!This\ library\ is\ not\ listed\ on\ Library\ Manager.\ You\ won't\ be\ able\ to\ reinstall\ it\ from\ here.\nAre\ you\ sure\ you\ want\ to\ delete\ it?=
14631468

1464-
#: ../../../processing/app/EditorStatus.java:467
1465-
!This\ report\ would\ have\ more\ information\ with=
1469+
#: ../../../../../app/src/processing/app/EditorStatus.java:349
1470+
!This\ report\ would\ have\ more\ information\ with\n"Show\ verbose\ output\ during\ compilation"\noption\ enabled\ in\ File\ ->\ Preferences.\n=
14661471

14671472
#: Base.java:535
14681473
!Time\ for\ a\ Break=
@@ -1729,9 +1734,9 @@ Yes=Ja
17291734
#, java-format
17301735
!".{0}"\ is\ not\ a\ valid\ extension.=
17311736

1732-
#: SketchCode.java:258
1737+
#: ../../../../../arduino-core/src/processing/app/SketchCode.java:201
17331738
#, java-format
1734-
!"{0}"\ contains\ unrecognized\ characters.If\ this\ code\ was\ created\ with\ an\ older\ version\ of\ Arduino,you\ may\ need\ to\ use\ Tools\ ->\ Fix\ Encoding\ &\ Reload\ to\ updatethe\ sketch\ to\ use\ UTF-8\ encoding.\ If\ not,\ you\ may\ need\ todelete\ the\ bad\ characters\ to\ get\ rid\ of\ this\ warning.=
1739+
!"{0}"\ contains\ unrecognized\ characters.\ If\ this\ code\ was\ created\ with\ an\ older\ version\ of\ Arduino,\ you\ may\ need\ to\ use\ Tools\ ->\ Fix\ Encoding\ &\ Reload\ to\ update\ the\ sketch\ to\ use\ UTF-8\ encoding.\ If\ not,\ you\ may\ need\ to\ delete\ the\ bad\ characters\ to\ get\ rid\ of\ this\ warning.=
17351740

17361741
#: debug/Compiler.java:409
17371742
!\nAs\ of\ Arduino\ 0019,\ the\ Ethernet\ library\ depends\ on\ the\ SPI\ library.\nYou\ appear\ to\ be\ using\ it\ or\ another\ library\ that\ depends\ on\ the\ SPI\ library.\n\n=
@@ -1766,9 +1771,6 @@ Yes=Ja
17661771
#: Sketch.java:540
17671772
!createNewFile()\ returned\ false=
17681773

1769-
#: ../../../processing/app/EditorStatus.java:469
1770-
!enabled\ in\ File\ >\ Preferences.=
1771-
17721774
#: ../../../../../app/src/processing/app/Editor.java:1352
17731775
!http\://www.arduino.cc/=
17741776

@@ -1828,6 +1830,10 @@ Yes=Ja
18281830
#, java-format
18291831
!{0}\ must\ be\ a\ folder=
18301832

1833+
#: ../../../../../app/src/processing/app/EditorLineStatus.java:109
1834+
#, java-format
1835+
!{0}\ on\ {1}=
1836+
18311837
#: ../../../../../arduino-core/src/cc/arduino/Compiler.java:78
18321838
#, java-format
18331839
!{0}\ pattern\ is\ missing=

0 commit comments

Comments
 (0)