root/main/trunk/release-kits/kits/rk3/installer/antinstall-config.xml @ 30790

Revision 30790, 7.0 KB (checked in by ak19, 3 years ago)

Installer has translations from additional languages now, release-kits should use them so that the installer displays these additional language options.

Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE installer PUBLIC "-//tp23 //DTD Ant Installer Config//EN" "http://antinstaller.sf.net/dtd/antinstall-config-0.8.dtd">
3
4<installer
5            ui="swing,text"
6            verbose="true"
7            debug="false"
8            lookAndFeel="org.tp23.jgoodies.plaf.plastic.PlasticXPLookAndFeel"
9            name="Greenstone@version@ Installer"
10            windowIcon="/resources/icon.png"
11            defaultImageResource="/resources/header.png"
12            minJavaVersion="1.4">
13
14    <!-- select language page -->
15    <!-- We want a dropdown for installer language selection.
16    <select> is rendered as radio buttons in the GUI version.
17    antinstaller.sourceforge.net/manual.html
18    <large-select>: "The large select has identical options to the select input.
19    Large select enables the list of options to be greater and is displayed differently.
20    In the Swing GUI the options are rendered as a drop-down list.
21    In the text/console UI the options are shown to the user 20 lines at a time."
22    An example: https://github.com/ykyuen/maven-h2o/blob/master/h2o-installer/ant-installer/antinstall-config.xml
23   
24    However, to get <large-select> to work as <select> did, needed to modify the AntInstaller code itself
25    in release-kits\shared\core\ant-installer\src\org\tp23\antinstaller\runtime\exe\LoadConfigFilter.java,
26    and also bring the code in antinstaller\input\LargeSelectInput.java up to speed with Oran's changes to <select>
27    in ant-installer\src\org\tp23\antinstaller\input\SelectInput.java
28   
29    <option value="hy" text="Armenian"/>
30    <option value="jp" text="日本語 (Japanese)"/>
31    -->
32    <page type="input" name="language-selector" displayText="">
33        <comment name="language-selector-explanation"/>
34        <large-select property="language" defaultValue="en" displayText="" useAsLocale="true">
35            <option value="en" text="English"/>
36            <option value="fr" text="Français (French)"/>
37            <option value="es" text="Español (Spanish)"/>
38            <option value="de" text="Deutsch (German)"/>
39            <option value="ru" text="русскОй язык (Russian)"/>
40            <option value="zh" text="äž­æ–‡ (Chinese)"/>
41            <option value="ar" text="Arabic"/>
42            <!--<option value="hy" text="Armenian"/>-->
43            <option value="gu" text="ગુજરટ઀ી (Gujarati)"/>
44            <option value="ja" text="日本語 (Japanese)"/>
45            <option value="kk" text="Қазақ (Kazakh)"/>
46            <option value="pl" text="Polski (Polish)"/>
47        </large-select>
48    </page>
49
50    <!-- welcome page -->
51    <page type="input" name="intro" displayText="">
52        <comment name="welcome-greenstone3"/>
53    </page>
54
55    <!--  type="license" shows a license page to click through -->
56    <page type="license" name="license" resource="/LICENSE.txt"  displayText="" />
57
58    <!--  install destination page -->
59    <page type="input" name="destination" displayText="">
60
61        <!-- NO FLAX START -->
62
63        <!-- if linux|mac -->
64        <directory property="installDir"
65            defaultValue="/usr/local/Greenstone3,${env.HOME}/Greenstone3"
66            create="true"
67            displayText=""
68            flagFile="_uninst"
69            flagFileExistsProperty="ISInstallDetected"
70            />
71        <!-- /if -->
72        <!-- if windows -->
73        <directory property="installDir"
74            defaultValue="C:\Program Files\Greenstone3,${env.HOMEDRIVE}${env.HOMEPATH}\Greenstone3"
75            create="true"
76            displayText=""
77            flagFile="_uninst"
78            flagFileExistsProperty="ISInstallDetected"
79            />
80        <!-- /if -->
81
82        <!-- NO FLAX END -->
83
84        <!-- FLAX START -->
85   
86        <!-- if linux|mac -->
87        <directory property="installDir"
88            defaultValue="/usr/local/FLAX,${env.HOME}/FLAX"
89            create="true"
90            displayText=""
91            flagFile="_uninst"
92            flagFileExistsProperty="ISInstallDetected"
93            />
94        <!-- /if -->
95        <!-- if windows -->
96        <directory property="installDir"
97            defaultValue="C:\Program Files\FLAX,${env.HOMEDRIVE}${env.HOMEPATH}\FLAX"
98            create="true"
99            displayText=""
100            flagFile="_uninst"
101            flagFileExistsProperty="ISInstallDetected"
102            />
103        <!-- /if -->
104       
105        <!-- FLAX END -->
106
107    </page>
108
109    <!-- page to stop you going forward if an IS installation is detected -->
110    <page type="input" name="dontBudge" displayText="" ifProperty="(${ISInstallDetected}==true)" showNextButton="false">
111        <comment name="is-install-detected"/>
112    </page>
113
114    <!-- page to choose components -->
115    <page type="input" name="selector" displayText="">
116        <comment name="choose-components"/>
117
118        <target
119            target="Initialising"
120            diskRequirement="x"
121            defaultValue="true"
122            displayText="x"
123            force="true"
124            hidden="true"/>
125
126        <target
127            target="Installing Core System"
128            diskRequirement="@component.size.core@"
129            displayText=""
130            defaultValue="true"
131            force="true"/>
132
133        <!-- NO FLAX START -->
134
135        <target
136            target="Adjusting Permissions"
137            diskRequirement="x"
138            defaultValue="true"
139            displayText="x"
140            hidden="true"/>
141       
142        <target
143            target="Installing ImageMagick"
144            diskRequirement="@component.size.imagemagick@"
145            defaultValue="true"
146            displayText=""/>
147
148        <!-- if windows|mac -->
149        <target
150            target="Installing Ghostscript"
151            diskRequirement="@component.size.ghostscript@"
152            defaultValue="true"
153            displayText=""/>
154        <!-- /if -->
155
156        <target
157            target="Installing Tomcat"
158            diskRequirement="@component.size.tomcat@"
159            defaultValue="true"
160            displayText=""/>
161
162        <!-- start amp -->
163        <target
164           target="Installing AMP"
165           diskRequirement="@component.size.amp@"
166           defaultValue="true"
167           displayText=""/>
168        <!-- end amp -->
169
170        <!-- if windows -->
171        <target
172            target="Installing Start Menu Shortcuts"
173            diskRequirement="~10 KB"
174            defaultValue="true"
175            displayText=""/>
176        <!-- /if -->
177
178        <!-- NO FLAX END -->
179
180        <!-- FLAX START -->
181
182        <target
183            target="Installing ImageMagick"
184            diskRequirement="@component.size.imagemagick@"
185            defaultValue="true"
186            displayText=""
187            force="true"/>
188
189        <target
190            target="Installing Tomcat"
191            diskRequirement="@component.size.tomcat@"
192            defaultValue="true"
193            displayText=""
194            force="true"/>
195
196        <!-- if windows -->
197        <target
198            target="Installing Start Menu Shortcuts"
199            diskRequirement="~10 KB"
200            defaultValue="true"
201            displayText=""
202            force="true"/>
203        <!-- /if -->
204       
205        <!-- FLAX END -->
206
207    </page>
208
209    <!-- page to setup tomcat -->
210    <!--<page type="input" name="tomcat-config" ifProperty="(${Installing Tomcat}==true)" displayText="">
211        <text property="tomcat.server" defaultValue="localhost" displayText=""/>
212        <text property="tomcat.port" defaultValue="8383" displayText=""/>
213        <text property="tomcat.shutdown.port" defaultValue="8305" displayText=""/>
214    </page>-->
215
216  <!-- NO FLAX START -->
217   
218    <!-- page to ask if we should enable admin pages -->
219    <page type="input" name="admin-pages" displayText="">
220        <comment name="admin3-expl"/>
221        <comment name="admin3-expl-2"/>
222        <comment name="admin3-expl-3"/>
223        <checkbox property="set.admin.pwd" displayText="" defaultValue="false"/>
224    </page>
225
226    <!-- only if they said yes above, set a password -->
227    <page type="input" name="admin-password" displayText="" ifProperty="(${set.admin.pwd}==true)" target="Configuring Administration Pages">
228        <comment name="admin-password-expl"/>
229        <validated property="admin.password" defaultValue="" displayText="" regex="^.{3,20}$"/>
230    </page>
231  <!-- NO FLAX END -->
232
233    <!-- the final progress page -->
234    <page type="progress" name="progress" showTargets="true" displayText=""/>
235
236</installer>
Note: See TracBrowser for help on using the browser.