diff --git a/.gitignore b/.gitignore
index 3fbbc04c2..54d94ffce 100644
--- a/.gitignore
+++ b/.gitignore
@@ -37,6 +37,7 @@ build/linux/dist/*.tar.bz2
build/linux/*.tgz
build/linux/*.zip
build/linux/libastylej*
+build/shared/reference*.zip
test-bin
*.iml
.idea
diff --git a/app/src/processing/app/Base.java b/app/src/processing/app/Base.java
index 3c6c6e8c9..451a5bed9 100644
--- a/app/src/processing/app/Base.java
+++ b/app/src/processing/app/Base.java
@@ -186,7 +186,6 @@ public class Base {
try {
Class.forName("com.sun.jdi.VirtualMachine");
} catch (ClassNotFoundException cnfe) {
- showPlatforms();
showError(_("Please install JDK 1.5 or later"),
_("Arduino requires a full JDK (not just a JRE)\n" +
"to run. Please install JDK 1.5 or later.\n" +
@@ -1901,43 +1900,40 @@ public class Base {
static public void showReference(String filename) {
- File referenceFolder = getContentFile("reference");
+ File referenceFolder = getContentFile("reference/arduino.cc/en");
File referenceFile = new File(referenceFolder, filename);
+ if (!referenceFile.exists())
+ referenceFile = new File(referenceFolder, filename + ".html");
openURL(referenceFile.getAbsolutePath());
}
static public void showGettingStarted() {
if (OSUtils.isMacOS()) {
- showReference(_("Guide_MacOSX.html"));
+ showReference("Guide/MacOSX");
} else if (OSUtils.isWindows()) {
- showReference(_("Guide_Windows.html"));
+ showReference("Guide/Windows");
} else {
- openURL(_("http://www.arduino.cc/playground/Learning/Linux"));
+ openURL("http://www.arduino.cc/playground/Learning/Linux");
}
}
static public void showReference() {
- showReference(_("index.html"));
+ showReference("Reference/HomePage");
}
static public void showEnvironment() {
- showReference(_("Guide_Environment.html"));
- }
-
-
- static public void showPlatforms() {
- showReference(_("environment") + File.separator + _("platforms.html"));
+ showReference("Guide/Environment");
}
static public void showTroubleshooting() {
- showReference(_("Guide_Troubleshooting.html"));
+ showReference("Guide/Troubleshooting");
}
static public void showFAQ() {
- showReference(_("FAQ.html"));
+ showReference("Main/FAQ");
}
diff --git a/app/src/processing/app/Editor.java b/app/src/processing/app/Editor.java
index c9d2ec3fb..6842a5bbd 100644
--- a/app/src/processing/app/Editor.java
+++ b/app/src/processing/app/Editor.java
@@ -1881,7 +1881,7 @@ public class Editor extends JFrame implements RunnerListener {
if (referenceFile == null) {
statusNotice(I18n.format(_("No reference available for \"{0}\""), text));
} else {
- Base.showReference(I18n.format(_("{0}.html"), referenceFile));
+ Base.showReference("Reference/" + referenceFile);
}
}
diff --git a/build/build.xml b/build/build.xml
index 75ffd44d6..801ab814e 100644
--- a/build/build.xml
+++ b/build/build.xml
@@ -143,7 +143,12 @@
-
+
+
+
+
+
+
diff --git a/build/shared/reference-1.6.0.zip.sha b/build/shared/reference-1.6.0.zip.sha
new file mode 100644
index 000000000..d6a224fb6
--- /dev/null
+++ b/build/shared/reference-1.6.0.zip.sha
@@ -0,0 +1 @@
+61699592ab44df789b98527f2d82e8defc8ce552
diff --git a/build/shared/reference.zip b/build/shared/reference.zip
deleted file mode 100644
index 03db2f5c0..000000000
Binary files a/build/shared/reference.zip and /dev/null differ