提交 d93f0991 authored 作者: Thomas Mueller's avatar Thomas Mueller

Prepare release

上级 44f10226
...@@ -76,6 +76,7 @@ Initial Developer: H2 Group ...@@ -76,6 +76,7 @@ Initial Developer: H2 Group
<a href="license.html"> License </a><br /> <a href="license.html"> License </a><br />
<br /> <br />
<!-- translate
<div id = "google_translate_element"></div> <div id = "google_translate_element"></div>
<script> <script>
function googleTranslateElementInit() { function googleTranslateElementInit() {
...@@ -83,6 +84,7 @@ function googleTranslateElementInit() { ...@@ -83,6 +84,7 @@ function googleTranslateElementInit() {
} }
</script> </script>
<script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> <script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
translate -->
</div> </div>
</div> </div>
......
...@@ -33,7 +33,7 @@ Welcome to H2, the Java SQL database. The main features of H2 are: ...@@ -33,7 +33,7 @@ Welcome to H2, the Java SQL database. The main features of H2 are:
<table style="border: 0px; margin: 0px 7px 12px 7px;"> <table style="border: 0px; margin: 0px 7px 12px 7px;">
<tr><td style="border: 0px; background-color: #eee;" colspan="2"> <tr><td style="border: 0px; background-color: #eee;" colspan="2">
<h3>Download</h3> <h3>Download</h3>
Version ${version} (${versionDate}): Version ${version} (${versionDate}, beta):
</td></tr> </td></tr>
<tr><td style="border: 0px; background-color: #eee;"> <tr><td style="border: 0px; background-color: #eee;">
<a href="http://www.h2database.com/h2-setup-${versionDate}.exe"><img style="border: 1px #00f solid;" src="images/download.png" alt="download" width="22" height="20"/></a> <a href="http://www.h2database.com/h2-setup-${versionDate}.exe"><img style="border: 1px #00f solid;" src="images/download.png" alt="download" width="22" height="20"/></a>
......
...@@ -6107,7 +6107,7 @@ Small footprint: around 1 MB jar file size ...@@ -6107,7 +6107,7 @@ Small footprint: around 1 MB jar file size
Download Download
@mainWeb_1007_td @mainWeb_1007_td
Version 1.2.120 (2009-10-04): Version 1.2.120 (2009-10-04, beta):
@mainWeb_1008_a @mainWeb_1008_a
Windows Installer (4 MB) Windows Installer (4 MB)
......
...@@ -6107,7 +6107,7 @@ H2 データベース エンジン ...@@ -6107,7 +6107,7 @@ H2 データベース エンジン
ダウンロード ダウンロード
@mainWeb_1007_td @mainWeb_1007_td
#Version 1.2.120 (2009-10-04): #Version 1.2.120 (2009-10-04, beta):
@mainWeb_1008_a @mainWeb_1008_a
#Windows Installer (4 MB) #Windows Installer (4 MB)
......
...@@ -2032,7 +2032,7 @@ mainWeb_1003_li=Embedded and server modes; in-memory databases ...@@ -2032,7 +2032,7 @@ mainWeb_1003_li=Embedded and server modes; in-memory databases
mainWeb_1004_li=Browser based Console application mainWeb_1004_li=Browser based Console application
mainWeb_1005_li=Small footprint\: around 1 MB jar file size mainWeb_1005_li=Small footprint\: around 1 MB jar file size
mainWeb_1006_h3=Download mainWeb_1006_h3=Download
mainWeb_1007_td=Version 1.2.120 (2009-10-04)\: mainWeb_1007_td=Version 1.2.120 (2009-10-04, beta)\:
mainWeb_1008_a=Windows Installer (4 MB) mainWeb_1008_a=Windows Installer (4 MB)
mainWeb_1009_a=All Platforms (zip, 5 MB) mainWeb_1009_a=All Platforms (zip, 5 MB)
mainWeb_1010_a=All Downloads mainWeb_1010_a=All Downloads
......
...@@ -28,6 +28,8 @@ public class WebSite { ...@@ -28,6 +28,8 @@ public class WebSite {
private static final String ANALYTICS_SCRIPT = private static final String ANALYTICS_SCRIPT =
"<script src=\"http://www.google-analytics.com/ga.js\" type=\"text/javascript\"></script>\n" + "<script src=\"http://www.google-analytics.com/ga.js\" type=\"text/javascript\"></script>\n" +
"<script type=\"text/javascript\">var pageTracker=_gat._getTracker(\"UA-2351060-1\");pageTracker._initData();pageTracker._trackPageview();</script>"; "<script type=\"text/javascript\">var pageTracker=_gat._getTracker(\"UA-2351060-1\");pageTracker._initData();pageTracker._trackPageview();</script>";
private static final String TRANSLATE_START = "<!-- translate";
private static final String TRANSLATE_END = "translate -->";
private String sourceDir = "docs"; private String sourceDir = "docs";
private String webDir = "../h2web"; private String webDir = "../h2web";
...@@ -143,6 +145,10 @@ public class WebSite { ...@@ -143,6 +145,10 @@ public class WebSite {
page = StringUtils.replaceAll(page, "<a href=\"frame", "<a href=\"main"); page = StringUtils.replaceAll(page, "<a href=\"frame", "<a href=\"main");
page = StringUtils.replaceAll(page, "html/frame.html", "html/main.html"); page = StringUtils.replaceAll(page, "html/frame.html", "html/main.html");
} }
if (web) {
page = StringUtils.replaceAll(page, TRANSLATE_START, "");
page = StringUtils.replaceAll(page, TRANSLATE_END, "");
}
bytes = page.getBytes("UTF-8"); bytes = page.getBytes("UTF-8");
} }
FileOutputStream out = new FileOutputStream(target); FileOutputStream out = new FileOutputStream(target);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论