Revision 40183
tags/extensions/org.gvsig.i18n.extension/2.0/buildNumber.properties | ||
---|---|---|
1 |
#maven.buildNumber.plugin properties file |
|
2 |
#Fri Feb 08 11:27:59 CET 2013 |
|
3 |
buildNumber=2076 |
tags/extensions/org.gvsig.i18n.extension/2.0/install/buildExt.xml | ||
---|---|---|
1 |
<project name="instalador-gvSIG" default="init" basedir="."> |
|
2 |
|
|
3 |
<dirname file="${ant.file.instalador-gvSIG}" property="base_dir"/> |
|
4 |
<dirname file="${base_dir}" property="project_dir"/> |
|
5 |
<dirname file="${project_dir}" property="workspace_dir"/> |
|
6 |
|
|
7 |
<import file="${workspace_dir}/binaries/ant/utilities.xml"/> |
|
8 |
|
|
9 |
<property file="build.properties"/> |
|
10 |
<property file="${workspace_dir}/_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/build.number" prefix="gvSIG."/> |
|
11 |
<property file="${project_dir}/build.number"/> |
|
12 |
|
|
13 |
<property name="dir_inst" location="/usr/local"/> |
|
14 |
<!--<property name="base_dir" location="./"/> --> |
|
15 |
<property name="izpack_dir" location="${workspace_dir}/install/IzPack"/> |
|
16 |
<property name="dir_libs" location="${izpack_dir}/lib"/> |
|
17 |
|
|
18 |
|
|
19 |
<property name="GVSIG_INSTALLDIR" location="${workspace_dir}/install"/> |
|
20 |
<property name="ANDAMI_DIR" location="${workspace_dir}/_fwAndami"/> |
|
21 |
<property name="INSTALLER_DIR" value="${APPNAME}-${version}_installer"/> |
|
22 |
<property name="JARNAME" value="${APPNAME}-${version}.jar"/> |
|
23 |
<property name="DIR_LIN_GVSIG" location="${GVSIG_INSTALLDIR}/instalador-gvSIG-lin"/> |
|
24 |
<property name="DIR_WIN_GVSIG" location="${GVSIG_INSTALLDIR}/instalador-gvSIG-win"/> |
|
25 |
<property name="baseFileName" value="gvsig_${APPNAME}-${version}-${build}"/> |
|
26 |
<property name="WINDOWSZIP" value="${baseFileName}-windows-i586.7z" /> |
|
27 |
<property name="LINUXBIN" value="${baseFileName}-linux-i586.bin"/> |
|
28 |
<property name="WINDOWSEXE" value="${baseFileName}-windows-i586.exe"/> |
|
29 |
<property name="MAC_10_ZIP" value="${baseFileName}-mac-10_4.zip"/> |
|
30 |
<property name="autoinstalador" value="${APPNAME}_Installer" /> |
|
31 |
<property name="OUTPUT_DIR" location="./tmp/versiones/v${version}/${build.number}"/> <!--CAMBIAR ESTO SEGUN DIRECTORIO OUTPUT --> |
|
32 |
|
|
33 |
<condition property="LAUNCHER7Z" value="${GVSIG_INSTALLDIR}/launcher/7z/7za" else="${GVSIG_INSTALLDIR}/launcher/7z/7z.exe"> |
|
34 |
<os family="unix" /> |
|
35 |
</condition> |
|
36 |
|
|
37 |
<taskdef name="izpack" classpath="${dir_libs}/compiler.jar" classname="com.izforge.izpack.ant.IzPackTask"/> |
|
38 |
|
|
39 |
|
|
40 |
<condition property="Lang.Is.Spanish"> |
|
41 |
<contains string="${env.LANG}" substring="es"/> |
|
42 |
</condition> |
|
43 |
<condition property="directorio.base"> |
|
44 |
<available file="${base_dir}/install.xml" type="file" /> |
|
45 |
</condition> |
|
46 |
|
|
47 |
<target name="E_Spanish" if="Lang.Is.Spanish"> |
|
48 |
<property name="ERROR_BASEDIR" value="En el directorio ${base_dir} no se encuentra el fichero install.xml" /> |
|
49 |
</target> |
|
50 |
|
|
51 |
<target name="E_notSpanish" unless="Lang.Is.Spanish"> |
|
52 |
<property name="ERROR_BASEDIR" value="Cannot find install.xml in ${base_dir} folder " /> |
|
53 |
</target> |
|
54 |
|
|
55 |
<target name="check" depends="E_Spanish,E_notSpanish"> |
|
56 |
<fail message="${ERROR_BASEDIR}" unless="directorio.base"/> |
|
57 |
</target> |
|
58 |
|
|
59 |
|
|
60 |
|
|
61 |
<target name="init" depends="check,CopyFiles,CreateJar,Installation,InstallMac,CleanDir" > |
|
62 |
|
|
63 |
</target> |
|
64 |
<target name="CopyFiles" description="Copia de ficheros de librerias y de las extensiones necesarias"> |
|
65 |
<delete dir="${base_dir}/bin"/> |
|
66 |
<copy file="${base_dir}/resources/gpl.txt" todir="./bin"/> |
|
67 |
<mkdir dir="${base_dir}/bin/lib"/> |
|
68 |
<!-- copiamos los jar y zip que tenemos en _fwAndami/lib --> |
|
69 |
<copy todir="${base_dir}/bin/lib"> |
|
70 |
<fileset dir="${ANDAMI_DIR}/lib"> |
|
71 |
<include name="*.jar"/> |
|
72 |
<include name="*.zip"/> |
|
73 |
</fileset> |
|
74 |
</copy> |
|
75 |
|
|
76 |
<copy todir="${base_dir}/bin" file="${ANDAMI_DIR}/andami.jar"/> |
|
77 |
<copy todir="${base_dir}/bin" file="${ANDAMI_DIR}/castor.properties"/> |
|
78 |
|
|
79 |
<!-- PARA WINDOWS --> |
|
80 |
|
|
81 |
|
|
82 |
<delete dir="${base_dir}/tmpResources"/> |
|
83 |
<mkdir dir="${base_dir}/tmpResources" /> |
|
84 |
|
|
85 |
<!-- Copiamos el lanzador y sus traduciones al tmpResources,sin copiar el ini, manifest y los CVS (ANT excluye carpetas CVS por defecto --> |
|
86 |
<copy todir="${base_dir}/tmpResources"> |
|
87 |
<fileset dir="${GVSIG_INSTALLDIR}/launcher/izpack-launcher-1.3/dist/"> |
|
88 |
<include name="**/"/> |
|
89 |
<exclude name="**/*.ini"/> |
|
90 |
<exclude name="**/*.manifest"/> |
|
91 |
</fileset> |
|
92 |
</copy> |
|
93 |
<move file="${base_dir}/tmpResources/launcher-Win32.exe" tofile="./tmpResources/gvSIG.exe"/> |
|
94 |
|
|
95 |
|
|
96 |
|
|
97 |
|
|
98 |
<for list="${EXTENSIONS}" param="extensions"> |
|
99 |
<sequential> |
|
100 |
<copy todir="${base_dir}/extensiones/@{extensions}"> |
|
101 |
<fileset dir="${ANDAMI_DIR}/gvSIG/extensiones/@{extensions}"/> |
|
102 |
</copy> |
|
103 |
<echo>extension ----> @{extensions} </echo> |
|
104 |
</sequential> |
|
105 |
</for> |
|
106 |
</target> |
|
107 |
<target name="CreateJar" description="Generacion del instalador Jar"> |
|
108 |
<izpack input="${base_dir}/install.xml" |
|
109 |
output="${base_dir}/${JARNAME}" |
|
110 |
installerType="standard" |
|
111 |
basedir="${base_dir}" |
|
112 |
izPackDir="${izpack_dir}/"/> |
|
113 |
</target> |
|
114 |
<!-- generar el tar.gz para linux --> |
|
115 |
<target name="Installation" description="Generacion de la distribucion"> |
|
116 |
|
|
117 |
<mkdir dir="${OUTPUT_DIR}" /> |
|
118 |
<delete dir="${base_dir}/${INSTALLER_DIR}"/> |
|
119 |
<mkdir dir="${base_dir}/${INSTALLER_DIR}/tmp_gvSIGInstall"/> |
|
120 |
<copy file="${base_dir}/${JARNAME}" todir="./${INSTALLER_DIR}/tmp_gvSIGInstall"/> |
|
121 |
|
|
122 |
<!-- carpetas CVS no se copiaran, ANT las excluye por defecto --> |
|
123 |
<copy todir="${base_dir}/${INSTALLER_DIR}/tmp_gvSIGInstall"> |
|
124 |
<fileset dir="${GVSIG_INSTALLDIR}/launcher/izpack-launcher-1.3_linux/dist/"/> |
|
125 |
</copy> |
|
126 |
|
|
127 |
<chmod file="${base_dir}/${INSTALLER_DIR}/tmp_gvSIGInstall/launcher-Linux" perm="ugo+rx"/> |
|
128 |
<delete file="${base_dir}/${INSTALLER_DIR}/tmp_gvSIGInstall/launcher.ini"/> |
|
129 |
<copy file="${DIR_LIN_GVSIG}/resources/launcher.ini.j15" tofile="${base_dir}/${INSTALLER_DIR}/tmp_gvSIGInstall/launcher.ini"/> |
|
130 |
<replace file="${base_dir}/${INSTALLER_DIR}/tmp_gvSIGInstall/launcher.ini" token="%JARNAME%" value="${JARNAME}"/> |
|
131 |
|
|
132 |
<!-- comprimimos la carpeta tmp_gvSIGInstall en tmp.tgz --> |
|
133 |
<tar destfile="${base_dir}/${INSTALLER_DIR}/tmp.tgz" compression="gzip"> |
|
134 |
<tarfileset dir="${base_dir}/${INSTALLER_DIR}" mode="755" > |
|
135 |
<include name="tmp_gvSIGInstall/launcher-Linux"/> |
|
136 |
</tarfileset> |
|
137 |
<tarfileset dir="${base_dir}/${INSTALLER_DIR}"> |
|
138 |
<include name="tmp_gvSIGInstall/*"/> |
|
139 |
<exclude name="tmp_gvSIGInstall/launcher-Linux"/> |
|
140 |
</tarfileset> |
|
141 |
</tar> |
|
142 |
<echo message="#!/bin/sh${line.separator}" file="./${INSTALLER_DIR}/xx.tmp" /> |
|
143 |
<echo message="lcount=59${line.separator}" file="./${INSTALLER_DIR}/xx.tmp" append="true" /> <!-- OJO SI SE TOCA EL FICHERO h_gvSIG-install.sh - 59 -> num de lineas del fichero + 2 --> |
|
144 |
<copy todir="${base_dir}/${INSTALLER_DIR}" file="${GVSIG_INSTALLDIR}/launcher/izpack-launcher-1.3_linux/h_gvSIG-install.sh"/> |
|
145 |
<!-- fixcrlf srcDir="${base_dir}/${INSTALLER_DIR}" includes="h_gvSIG-install.sh,xx.tmp" eol="unix" eof=""/--> |
|
146 |
<concat destfile="${base_dir}/${INSTALLER_DIR}/${LINUXBIN}" binary="true" > |
|
147 |
<fileset file="${base_dir}/${INSTALLER_DIR}/xx.tmp"/> |
|
148 |
<fileset file="${base_dir}/${INSTALLER_DIR}/h_gvSIG-install.sh"/> |
|
149 |
<fileset file="${base_dir}/${INSTALLER_DIR}/tmp.tgz"/> |
|
150 |
</concat> |
|
151 |
<chmod file="${base_dir}/${INSTALLER_DIR}/${LINUXBIN}" perm="ugo+rx"/> |
|
152 |
<delete file="${base_dir}/${INSTALLER_DIR}/xx.tmp"/> |
|
153 |
<move file="${base_dir}/${INSTALLER_DIR}/${LINUXBIN}" todir="${OUTPUT_DIR}" /> |
|
154 |
<delete dir="${base_dir}/${INSTALLER_DIR}"/> |
|
155 |
|
|
156 |
|
|
157 |
|
|
158 |
<!-- PARA WINDOWS --> |
|
159 |
<delete dir="${base_dir}/${INSTALLER_DIR}"/> |
|
160 |
<mkdir dir="${base_dir}/${INSTALLER_DIR}"/> |
|
161 |
<copy todir="${base_dir}/${INSTALLER_DIR}"> |
|
162 |
<fileset dir="${GVSIG_INSTALLDIR}/launcher/izpack-launcher-1.3/dist"/> |
|
163 |
</copy> |
|
164 |
<delete file="${base_dir}/${INSTALLER_DIR}/launcher-Win32.ini"/> |
|
165 |
<copy todir="${base_dir}/${INSTALLER_DIR}/" file="${DIR_WIN_GVSIG}/resources/launcher-Win32.ini.j15"/> |
|
166 |
<move file="${base_dir}/${INSTALLER_DIR}/launcher-Win32.ini.j15" tofile="${base_dir}/${INSTALLER_DIR}/launcher-Win32.ini"/> |
|
167 |
<replace file="${base_dir}/${INSTALLER_DIR}/launcher-Win32.ini" token="%JARNAME%" value="${JARNAME}"/> |
|
168 |
<move file="${base_dir}/${JARNAME}" todir="./${INSTALLER_DIR}"/> |
|
169 |
<delete file="${base_dir}/${WINDOWSZIP}"/> |
|
170 |
<exec executable="${LAUNCHER7Z}"> |
|
171 |
<arg line="a -r ${WINDOWSZIP} ./${INSTALLER_DIR}/*"/> |
|
172 |
</exec> |
|
173 |
<copy file="${GVSIG_INSTALLDIR}/launcher/7z/dist_config.txt" tofile="./dist_config.txt"/> |
|
174 |
<replace file="${base_dir}/dist_config.txt" token="%TITLE%" value="${APPNAME}-${bversion}_${build.number}" /> |
|
175 |
<concat destfile="${base_dir}/${WINDOWSEXE}" binary="true"> |
|
176 |
<fileset file="${GVSIG_INSTALLDIR}/launcher/7z/7zS.sfx"/> |
|
177 |
<fileset file="${base_dir}/dist_config.txt"/> |
|
178 |
<fileset file="${base_dir}/${WINDOWSZIP}"/> |
|
179 |
</concat> |
|
180 |
<move file="${WINDOWSEXE}" todir="${OUTPUT_DIR}"/> |
|
181 |
</target> |
|
182 |
|
|
183 |
<target name="InstallMac" description="Actualizador para MAC"> |
|
184 |
<property name="tmp_mac" location="${base_dir}/tmpResources_mac"/> |
|
185 |
|
|
186 |
<delete dir="${tmp_mac}" failonerror="no"/> |
|
187 |
|
|
188 |
<mkdir dir="${tmp_mac}"/> |
|
189 |
|
|
190 |
|
|
191 |
<ant antfile="build-updater.xml" dir="${GVSIG_INSTALLDIR}/instalador-gvSIG-mac"> |
|
192 |
<property name="NOMBRE_BUNDLE" value="${autoinstalador}"/> |
|
193 |
<property name="DIR_DESTINO" value="${tmp_mac}"/> |
|
194 |
</ant> |
|
195 |
|
|
196 |
<copy todir="${tmp_mac}/${autoinstalador}.app/Contents/Resources" file="./resources/configfile" overwrite="yes"/> |
|
197 |
|
|
198 |
<replace file="${tmp_mac}/${autoinstalador}.app/Contents/Resources/configfile" |
|
199 |
token="%BUILD.NUMBER%" |
|
200 |
value="${build.number}"/> |
|
201 |
|
|
202 |
|
|
203 |
<property name="mac_install_path_bin" value="${tmp_mac}/${autoinstalador}.app/Contents/Resources/updates/gvSIGbin"/> |
|
204 |
<property name="mac_install_path_gvsig" value="${mac_install_path_bin}/gvSIG"/> |
|
205 |
<property name="mac_install_path_ext" value="${mac_install_path_gvsig}/extensiones"/> |
|
206 |
|
|
207 |
<copy todir="${mac_install_path_bin}/lib" file="../lib/gvsig-i18n.jar"/> |
|
208 |
|
|
209 |
<!-- Copiar en los directorios los ficheros a instalar: |
|
210 |
${mac_install_path_bin} ==> directorio 'bin' de la instalacion (donde esta andami.jar) |
|
211 |
${mac_install_path_gvsig} ==> directorio 'bin/gvSIG' de la instalacion |
|
212 |
${mac_install_path_ext} ==> directorio 'bin/gvSIG/extensiones' |
|
213 |
|
|
214 |
|
|
215 |
|
|
216 |
Ejemplos: |
|
217 |
|
|
218 |
* Actualizar andami.jar: |
|
219 |
|
|
220 |
<copy todir="${mac_install_path_bin}" file="bin/andami.jar"/> |
|
221 |
|
|
222 |
|
|
223 |
* Copiar una libreria al directorio de lib del plugin de gvSIG: |
|
224 |
|
|
225 |
<copy todir="${mac_install_path_gvsig}"> |
|
226 |
<fileset dir="."> |
|
227 |
<include name="extensiones/com.iver.cit.gvsig/lib/myLib.jar"/> |
|
228 |
</fileset> |
|
229 |
</copy> |
|
230 |
|
|
231 |
* Copiar el directorio entero del plugin 'myPlugin': |
|
232 |
|
|
233 |
<copy todir="${mac_install_path_ext}"> |
|
234 |
<fileset dir="extensiones"> |
|
235 |
<include name="myPlugin/**/**"/> |
|
236 |
</fileset> |
|
237 |
</copy> |
|
238 |
|
|
239 |
* Copiar todos los ficheros 'about.htm' |
|
240 |
<copy todir="${mac_install_path_ext}"> |
|
241 |
<fileset dir="extensiones"> |
|
242 |
<include name="**/about.htm"/> |
|
243 |
</fileset> |
|
244 |
</copy> |
|
245 |
|
|
246 |
|
|
247 |
--> |
|
248 |
|
|
249 |
|
|
250 |
|
|
251 |
<zip destfile="${OUTPUT_DIR}/${MAC_10_ZIP}"> |
|
252 |
<zipfileset dir="${tmp_mac}" |
|
253 |
includes="${autoinstalador}.app/**" |
|
254 |
excludes="${autoinstalador}.app/Contents/MacOS/*" |
|
255 |
/> |
|
256 |
<zipfileset dir="${tmp_mac}" |
|
257 |
includes="${autoinstalador}.app/Contents/MacOS/*" |
|
258 |
filemode="755" |
|
259 |
/> |
|
260 |
|
|
261 |
</zip> |
|
262 |
|
|
263 |
<delete dir="${tmp_mac}"/> |
|
264 |
</target> |
|
265 |
|
|
266 |
<target name="CleanDir" description="Limpiamos los directorios creados"> |
|
267 |
|
|
268 |
<delete file="${base_dir}/${WINDOWSZIP}" /> |
|
269 |
<delete file="${base_dir}/dist_config.txt" /> |
|
270 |
<delete dir="${base_dir}/${INSTALLER_DIR}" /> |
|
271 |
<delete dir="${base_dir}/tmpResources" /> |
|
272 |
<delete dir="extensiones"/> |
|
273 |
<delete dir="bin"/> |
|
274 |
</target> |
|
275 |
|
|
276 |
</project> |
tags/extensions/org.gvsig.i18n.extension/2.0/install/install.xml | ||
---|---|---|
1 |
<installation version="1.0"> |
|
2 |
<info> |
|
3 |
<appname>I18nExtension</appname> <!-- A SUSTITUR POR EL NOMBRE DE EXTENSION, POR EJEMPLO: "VISOR_RUIDO" --> |
|
4 |
<appversion>0.1</appversion> |
|
5 |
<authors> |
|
6 |
<author name="Generalitat Valenciana. Conselleria d'Infraestructures i Transport" email="" /> |
|
7 |
<author name="Iver Tecnologías de la Información S.A." email="" /> |
|
8 |
<author name="Ayto. de Valencia" email="" /> |
|
9 |
</authors> |
|
10 |
<url>http://www.gvsig.gva.es/</url> |
|
11 |
<javaversion>1.5</javaversion> |
|
12 |
</info> |
|
13 |
|
|
14 |
<guiprefs height="600" resizable="yes" width="800"> |
|
15 |
<laf name="liquid"> |
|
16 |
<os family="unix" /> |
|
17 |
</laf> |
|
18 |
<laf name="liquid"> |
|
19 |
<os family="windows" /> |
|
20 |
</laf> |
|
21 |
</guiprefs> |
|
22 |
|
|
23 |
<locale> |
|
24 |
<langpack iso3="spa"/> |
|
25 |
<langpack iso3="val"/> |
|
26 |
<langpack iso3="eng"/> |
|
27 |
<langpack iso3="cat"/> |
|
28 |
<langpack iso3="chn"/> |
|
29 |
<langpack iso3="cze"/> |
|
30 |
<langpack iso3="dan"/> |
|
31 |
<langpack iso3="deu"/> |
|
32 |
<langpack iso3="fin"/> |
|
33 |
<langpack iso3="fra"/> |
|
34 |
<langpack iso3="glg"/> |
|
35 |
<langpack iso3="hun"/> |
|
36 |
<langpack iso3="ita"/> |
|
37 |
<langpack iso3="jpn"/> |
|
38 |
<langpack iso3="mys"/> |
|
39 |
<langpack iso3="ned"/> |
|
40 |
<langpack iso3="nor"/> |
|
41 |
<langpack iso3="pol"/> |
|
42 |
<langpack iso3="por"/> |
|
43 |
<langpack iso3="rom"/> |
|
44 |
<langpack iso3="rus"/> |
|
45 |
<langpack iso3="scg"/> |
|
46 |
<langpack iso3="svk"/> |
|
47 |
<langpack iso3="swe"/> |
|
48 |
<langpack iso3="ukr"/> |
|
49 |
</locale> |
|
50 |
|
|
51 |
<resources> |
|
52 |
<res src="resources/gpl.txt" id="LicencePanel.licence"/> |
|
53 |
<res src="resources/LEEME.html" id="HTMLInfoPanel.info"/> |
|
54 |
<res src="resources/images/Logo_gvsig_gva.jpg" id="Installer.image"/> |
|
55 |
<res src="resources/userInputSpec.xml" id="userInputSpec.xml"/> |
|
56 |
<parsable targetfile="resources/userInputSpec.xml"/> |
|
57 |
<res src="resources/userInputLang.xml_val" id="userInputLang.xml_val" /> |
|
58 |
<res src="resources/userInputLang.xml_spa" id="userInputLang.xml_spa" /> |
|
59 |
</resources> |
|
60 |
|
|
61 |
<panels> |
|
62 |
<panel classname="HTMLInfoPanel"/> |
|
63 |
<panel classname="LicencePanel"/> |
|
64 |
<panel classname="PacksPanel"/> |
|
65 |
<panel classname="UserInputPanel"/> |
|
66 |
<panel classname="InstallPanel"/> |
|
67 |
<panel classname="SimpleFinishPanel"/> |
|
68 |
</panels> |
|
69 |
|
|
70 |
<packs> |
|
71 |
|
|
72 |
<pack name="I18nExtension" required="yes"> <!--A SUSTITUIR POR LA EXTENSION, EJ: Extension VISOR_RUIDO--> |
|
73 |
<description>Extensión de administración de traducciones multiidioma.</description> <!--A SUSTITUIR POR LA DESCRIPCION, EJ: Extension para manejo de... --> |
|
74 |
<file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/" src="extensiones/org.gvsig.i18n" override="true"/> |
|
75 |
<!--SUSTITUR POR LA EXTENSION, ej: com.iver.ayto.visorRuido--> |
|
76 |
<!--además, si hay que copiar algo fuera del directorio de la extension, hay que añadirlo--> |
|
77 |
<!-- <file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/com.iver.cit.gvsig/lib" src="extensiones/com.iver.cit.gvsig/lib/driver-manager-1.1.jar" override="true"/> seria una copia de un jar dentro de gvSIG/extensiones/com.iver.cit.gvsig/lib --> |
|
78 |
<!-- Sobreescribir con nueva versión de libInternationalization --> |
|
79 |
<file targetdir="$INSTALL_PATH/bin/lib" src="../lib/gvsig-i18n.jar" override="true"/> |
|
80 |
</pack> |
|
81 |
|
|
82 |
|
|
83 |
</packs> |
|
84 |
|
|
85 |
</installation> |
tags/extensions/org.gvsig.i18n.extension/2.0/install/build.properties | ||
---|---|---|
1 |
#SUSTITUIR POR EL DIRECTORIO DE EXTENSION, ej: com.iver.aytovalencia.visor1 |
|
2 |
MAIN_INSTALL_PLUGIN=org.gvsig.i18n |
|
3 |
|
|
4 |
|
|
5 |
#VERIFICAR LOS NUMEROS DE VERSION |
|
6 |
EXTENSIONS=com.iver.cit.gvsig,${MAIN_INSTALL_PLUGIN} |
|
7 |
version=0.1.0 |
|
8 |
bversion=0_1_0 |
|
9 |
build=9 |
|
10 |
gvSIG.version=2_0_0 |
|
11 |
|
|
12 |
#SUSTITUIR POR EL NOMBRE DE PLUGIN, ej: visorRuido |
|
13 |
APPNAME=extI18n |
|
14 |
|
|
15 |
|
|
16 |
#SUSTITUIR POR EL DIRECTORIO DE SALIDA, ej: /tmp/myExtension |
|
17 |
OUTPUT_DIR=../instalables |
tags/extensions/org.gvsig.i18n.extension/2.0/install/resources/userInputLang.xml_spa | ||
---|---|---|
1 |
<langpack> |
|
2 |
<str id="text.label" txt="Ruta a gvSIG:"/> |
|
3 |
</langpack> |
tags/extensions/org.gvsig.i18n.extension/2.0/install/resources/configfile | ||
---|---|---|
1 |
#fichero ASCII, saltos de linea UNIX (ASCII 10) |
|
2 |
#comentarios en linea empezada con # |
|
3 |
#se aceptan lineas en blanco |
|
4 |
#Formato de parametros: |
|
5 |
#nombre de parametro en una linea, contenido en siguiente/s linea/s |
|
6 |
#si donde deberia haber "contenido del parametro" hay una linea en blanco, se entiende que se quiere parametro vacio |
|
7 |
#Si un parametro no se define, se supone vacio. |
|
8 |
|
|
9 |
#Parametro oldAndamiMD5 puede tener varios valores (se respetan todos, puede no haber ninguno) |
|
10 |
#MD5 de andami.jar v1.0 |
|
11 |
#oldAndamiMD5 |
|
12 |
#c5427c92842398101136818b66e7dbc8 |
|
13 |
|
|
14 |
#MD5 de andami.jar v1.0.1 |
|
15 |
#oldAndamiMD5 |
|
16 |
#b5bba7f20d0c2f3faed511c0b66039ef |
|
17 |
|
|
18 |
#Parametro oldVersion contiene un STRING con el que decir al usuario las versiones actualizables (sera igual en todos los idiomas!) |
|
19 |
#puede estar vacio |
|
20 |
#oldVersion |
|
21 |
#1.0 / 1.0.1 |
|
22 |
|
|
23 |
#Parametro newName contiene nuevo nombre para bundle actualizado (sin extension) |
|
24 |
#si vacio, no se cambiara el nombre (util para instalar extensiones, que no tienen por que modificar el nombre del gvSIG) |
|
25 |
#newName |
|
26 |
#gvSIG 1.0.2 build 891 |
|
27 |
|
|
28 |
#Parametro newSuffix contiene nuevo sufijo para bundle "actualizado" (autoinstaller y/o normal) |
|
29 |
#si vacio, no se cambiara el nombre |
|
30 |
#si se especifica newName y newSuffix, se aplica primero newName y luego newSuffix |
|
31 |
#newSuffix |
|
32 |
#SEXTANTE |
tags/extensions/org.gvsig.i18n.extension/2.0/install/resources/userInputLang.xml_cat | ||
---|---|---|
1 |
<langpack> |
|
2 |
<str id="text.label" txt="Ruta a gvSIG:"/> |
|
3 |
</langpack> |
tags/extensions/org.gvsig.i18n.extension/2.0/install/resources/userInputLang.xml_fra | ||
---|---|---|
1 |
<langpack> |
|
2 |
<str id="text.label" txt="Path to gvSIG:"/> |
|
3 |
</langpack> |
tags/extensions/org.gvsig.i18n.extension/2.0/install/resources/userInputLang.xml_eng | ||
---|---|---|
1 |
<langpack> |
|
2 |
<str id="text.label" txt="Path to gvSIG:"/> |
|
3 |
</langpack> |
tags/extensions/org.gvsig.i18n.extension/2.0/install/resources/userInputSpec.xml | ||
---|---|---|
1 |
<userInput> |
|
2 |
<panel order="0"> |
|
3 |
<field type="search" |
|
4 |
variable="INSTALL_PATH" |
|
5 |
size="45"> |
|
6 |
<description align="left" /> |
|
7 |
<spec txt="Path to gvSIG:" |
|
8 |
id="text.label" |
|
9 |
checkfilename="bin/andami.jar" |
|
10 |
type="directory" |
|
11 |
result="directory"> |
|
12 |
<choice value="/usr/local/gvSIG_1.0" os="unix" /> |
|
13 |
<choice value="/opt/gvSIG_1.0" os="unix" /> |
|
14 |
<choice value="$USER_HOME/gvSIG_1.0" os="unix" /> |
|
15 |
<choice value="C:\Archivos de Programa\gvSIG_1.0" os="windows" /> |
|
16 |
<choice value="C:\Program Files\gvSIG_1.0" os="windows" /> |
|
17 |
</spec> |
|
18 |
</field> |
|
19 |
</panel> |
|
20 |
</userInput> |
|
21 |
|
tags/extensions/org.gvsig.i18n.extension/2.0/install/resources/LEEME.html | ||
---|---|---|
1 |
<html> |
|
2 |
<head> |
|
3 |
<style type="text/css"> |
|
4 |
html, body, h1, h2, h3, h4, div, p, ul, li, input { |
|
5 |
font-family: Arial, Helvetica, sans-serif; |
|
6 |
} |
|
7 |
|
|
8 |
h1 { |
|
9 |
font-size: large; |
|
10 |
} |
|
11 |
|
|
12 |
h2 { |
|
13 |
font-size: large; |
|
14 |
} |
|
15 |
|
|
16 |
h3 { |
|
17 |
font-size: medium; |
|
18 |
} |
|
19 |
</style> |
|
20 |
</head> |
|
21 |
<body> |
|
22 |
<h1>Extensión de administración de traducciones multiidioma</h1> |
|
23 |
|
|
24 |
<h2>Autores:</h2> |
|
25 |
<ul> |
|
26 |
<li>Generalitat Valenciana |
|
27 |
(Conselleria d'Infraestructures i Transport).</li> |
|
28 |
<li>DiSiD Technologies S.L.</li> |
|
29 |
</ul> |
|
30 |
|
|
31 |
<p>Software con licencia GNU/GPL |
|
32 |
(http://www.fsf.org/licensing/licenses/gpl.html)</p> |
|
33 |
|
|
34 |
<p>Información y soporte: |
|
35 |
http://www.disid.com/<p> |
|
36 |
|
|
37 |
<h2>Requisitos de la aplicación:</h2> |
|
38 |
<h3>Sistema</h3> |
|
39 |
<ul> |
|
40 |
<li>Mínimos: Pentium III / 256 MB RAM.</li> |
|
41 |
<li>Recomendables: Pentium IV / 512 MB RAM.</li> |
|
42 |
<li>Sistemas operativos: plataformas Windows y Linux.</li> |
|
43 |
</ul> |
|
44 |
|
|
45 |
<h3>Software instalado</h3> (disponible en http://www.gvsig.gva.es o en http://java.sun.com) |
|
46 |
<ul> |
|
47 |
<li>gvSIG-1.1</li> |
|
48 |
</ul> |
|
49 |
|
|
50 |
<h2>Más información y soporte sobre gvSIG en:</h2> |
|
51 |
<h3> Web oficial del proyecto:</h3> |
|
52 |
http://www.gvsig.org |
|
53 |
|
|
54 |
<h3>Listas de distribución:</h3> |
|
55 |
<span style="monospace"> http://runas.cap.gva.es/mailman/listinfo/gvsig_usuarios</span> (soporte para usuarios). |
|
56 |
<span style="monospace"> http://runas.cap.gva.es/mailman/listinfo/gvsig_desarrolladores</span> (soporte para desarrolladores). |
|
57 |
<span style="monospace"> http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional</span> (soporte para desarrolladores o usuarios de habla no hispana). |
|
58 |
|
|
59 |
</body> |
|
60 |
</html> |
tags/extensions/org.gvsig.i18n.extension/2.0/install/resources/userInputLang.xml_deu | ||
---|---|---|
1 |
<langpack> |
|
2 |
<str id="text.label" txt="Path to gvSIG:"/> |
|
3 |
</langpack> |
tags/extensions/org.gvsig.i18n.extension/2.0/install/resources/userInputLang.xml_ita | ||
---|---|---|
1 |
<langpack> |
|
2 |
<str id="text.label" txt="Path to gvSIG:"/> |
|
3 |
</langpack> |
tags/extensions/org.gvsig.i18n.extension/2.0/install/resources/userInputLang.xml_por | ||
---|---|---|
1 |
<langpack> |
|
2 |
<str id="text.label" txt="Path to gvSIG:"/> |
|
3 |
</langpack> |
tags/extensions/org.gvsig.i18n.extension/2.0/install/resources/gpl.txt | ||
---|---|---|
1 |
GNU GENERAL PUBLIC LICENSE |
|
2 |
Version 2, June 1991 |
|
3 |
|
|
4 |
Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. |
|
5 |
|
|
6 |
Preamble |
|
7 |
|
|
8 |
The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. |
|
9 |
|
|
10 |
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. |
|
11 |
|
|
12 |
To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. |
|
13 |
|
|
14 |
For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their |
|
15 |
rights. |
|
16 |
|
|
17 |
We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. |
|
18 |
|
|
19 |
Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. |
|
20 |
|
|
21 |
Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. |
|
22 |
|
|
23 |
The precise terms and conditions for copying, distribution and modification follow. |
|
24 |
|
|
25 |
GNU GENERAL PUBLIC LICENSE |
|
26 |
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION |
|
27 |
|
|
28 |
0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". |
|
29 |
|
|
30 |
Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. |
|
31 |
|
|
32 |
1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. |
|
33 |
|
|
34 |
You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. |
|
35 |
|
|
36 |
2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: |
|
37 |
|
|
38 |
a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. |
|
39 |
|
|
40 |
b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. |
|
41 |
|
|
42 |
c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) |
|
43 |
|
|
44 |
These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. |
|
45 |
|
|
46 |
Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. |
|
47 |
|
|
48 |
In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. |
|
49 |
|
|
50 |
3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: |
|
51 |
|
|
52 |
a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, |
|
53 |
|
|
54 |
b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, |
|
55 |
|
|
56 |
c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) |
|
57 |
|
|
58 |
The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. |
|
59 |
|
|
60 |
If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. |
|
61 |
|
|
62 |
4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. |
|
63 |
However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. |
|
64 |
|
|
65 |
5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. |
|
66 |
|
|
67 |
6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. |
|
68 |
You are not responsible for enforcing compliance by third parties to this License. |
|
69 |
|
|
70 |
7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. |
|
71 |
|
|
72 |
If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. |
|
73 |
|
|
74 |
It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. |
|
75 |
|
|
76 |
This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. |
|
77 |
|
|
78 |
8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. |
|
79 |
|
|
80 |
9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. |
|
81 |
|
|
82 |
Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. |
|
83 |
|
|
84 |
10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. |
|
85 |
|
|
86 |
NO WARRANTY |
|
87 |
|
|
88 |
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. |
|
89 |
|
|
90 |
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. |
|
91 |
|
|
92 |
END OF TERMS AND CONDITIONS |
|
93 |
|
|
94 |
How to Apply These Terms to Your New Programs |
|
95 |
|
|
96 |
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. |
|
97 |
|
|
98 |
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. |
|
99 |
|
|
100 |
<one line to give the program's name and a brief idea of what it does.> Copyright (C) <year> <name of author> |
|
101 |
|
|
102 |
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. |
|
103 |
|
|
104 |
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. |
|
105 |
|
|
106 |
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
107 |
|
|
108 |
|
|
109 |
Also add information on how to contact you by electronic and paper mail. |
|
110 |
|
|
111 |
If the program is interactive, make it output a short notice like this when it starts in an interactive mode: |
|
112 |
|
|
113 |
Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. |
|
114 |
This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. |
|
115 |
|
|
116 |
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. |
|
117 |
|
|
118 |
You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: |
|
119 |
|
|
120 |
Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. |
|
121 |
|
|
122 |
<signature of Ty Coon>, 1 April 1989 |
|
123 |
Ty Coon, President of Vice |
|
124 |
|
|
125 |
This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. |
tags/extensions/org.gvsig.i18n.extension/2.0/install/resources/userInputLang.xml_cze | ||
---|---|---|
1 |
<langpack> |
|
2 |
<str id="text.label" txt="Path to gvSIG:"/> |
|
3 |
</langpack> |
tags/extensions/org.gvsig.i18n.extension/2.0/install/resources/userInputLang.xml_val | ||
---|---|---|
1 |
<langpack> |
|
2 |
<str id="text.label" txt="Ruta a gvSIG:"/> |
|
3 |
</langpack> |
tags/extensions/org.gvsig.i18n.extension/2.0/src/main/resources/locale/text.properties | ||
---|---|---|
1 |
I18nPreferencePage.idiomas_no_encontrados_para_instalar=<html>No se ha encontrado ning\u00FAn idioma para instalar o actualizar.<br>Compruebe que el archivo ZIP importado contiene un archivo locales.csv correcto <br>y, al menos, un archivo .properties con los textos del idioma a importar.</html> |
|
2 |
I18nPreferencePage.error_instalar_idiomas=Error al instalar idiomas |
|
3 |
I18nPreferencePage.idiomas_instalados=Se han instalado o actualizado los idiomas: |
|
4 |
I18nPreferencePage.instalar_idiomas=Instalar idiomas |
|
5 |
I18nPreferencePage.seleccione_idioma=Seleccione un idioma para actualizar |
|
6 |
I18nPreferencePage.error_actualizar_idioma=Error al actualizar un idioma |
|
7 |
I18nPreferencePage.seleccione_idioma_referencia=Seleccione un idioma para emplear como referencia |
|
8 |
I18nPreferencePage.exportar_idioma=Exportar un idioma |
|
9 |
I18nPreferencePage.exportado_textos_idioma=Se han exportado los textos de los idiomas seleccionados |
|
10 |
I18nPreferencePage.al_archivo=\ al archivo: |
|
11 |
I18nPreferencePage.seleccione_idioma_actualizar=Seleccione un idioma para actualizar |
|
12 |
I18nPreferencePage.seleccione_idioma_traducir=Seleccione el idioma al que desea traducir |
|
13 |
I18nPreferencePage.idioma_preparado_traducir=Se ha preparado para traducir el idioma |
|
14 |
I18nPreferencePage.en_archivo=\ en el archivo: |
|
15 |
I18nPreferencePage.archivos_jar=Archivos .zip y .jar |
|
16 |
I18nPreferencePage.seleccione_idioma_desinstalar=Seleccione un idioma para desinstalar |
|
17 |
I18nPreferencePage.error_desinstalar_idioma=Error al desinstalar un idioma |
|
18 |
I18nPreferencePage.idioma_actual_no_puede_desinstalar=El idioma actual no puede ser desintalado |
|
19 |
I18nPreferencePage.seguro_desea_desinstalar_idioma=\u00BFEst\u00E1 seguro que desea desinstalar el idioma seleccionado: |
|
20 |
I18nPreferencePage.confirmar_desinstalar_idioma=Confirmar desinstalaci\u00F3n de idioma |
|
21 |
I18nPreferencePage.Instalar=Instalar |
|
22 |
I18nPreferencePage.Instalar_idioma_tooltip=Instalar un nuevo idioma o actualizar uno existente |
|
23 |
I18nPreferencePage.Desinstalar=Desinstalar |
|
24 |
I18nPreferencePage.Desinstalar_idioma_tooltip=Desinstalar un idioma de gvSIG |
|
25 |
I18nPreferencePage.exportar_actualizar=Actualizar |
|
26 |
I18nPreferencePage.exportar_actualizar_tooltip=Exportar el idioma seleccionado para completar o actualizar |
|
27 |
I18nPreferencePage.exportar_traducir=Traducir |
|
28 |
I18nPreferencePage.exportar_traducir_tooltip=Exportar el idioma seleccionado para traducir a un nuevo idioma |
|
29 |
I18nPreferencePage.ayuda=Si cambia el idioma activo, ?ste no se visualizar? hasta que se reinicie la aplicaci?n |
|
30 |
I18nPreferencePage.colaboracion=Si desea colaborar en la traducci?n del interfaz de gvSIG, p?ngase en contacto con nosotros a trav?s de la direcci?n de email: i18n_management@lists.gvsig.org |
|
31 |
I18nPreferencePage.Locale_code=C?digo |
|
32 |
I18nPreferencePage.Idioma=Idioma |
|
33 |
I18nPreferencePage.Pais=Pa?s |
|
34 |
I18nPreferencePage.Variante=Variante |
|
35 |
I18nPreferencePage.Activar=Activar |
tags/extensions/org.gvsig.i18n.extension/2.0/src/main/resources/locale/text_en.properties | ||
---|---|---|
1 |
I18nPreferencePage.idiomas_no_encontrados_para_instalar=<html>Unable to find a locale to install or update.<br>Check the imported ZIP file contains a locales.csv file and, at least,<br>a .properties file with the texts for the language to import</html> |
|
2 |
I18nPreferencePage.error_instalar_idiomas=Error installing locales |
|
3 |
I18nPreferencePage.idiomas_instalados=Have been installed or updated the locales: |
|
4 |
I18nPreferencePage.instalar_idiomas=Install locales |
|
5 |
I18nPreferencePage.seleccione_idioma=Select a locale to update |
|
6 |
I18nPreferencePage.error_actualizar_idioma=Error while updating a locale |
|
7 |
I18nPreferencePage.seleccione_idioma_referencia=Select a locale to use for reference |
|
8 |
I18nPreferencePage.exportar_idioma=Export a locale |
|
9 |
I18nPreferencePage.exportado_textos_idioma=The texts of the selected locales have been exported |
|
10 |
I18nPreferencePage.al_archivo=\ to the file: |
|
11 |
I18nPreferencePage.seleccione_idioma_actualizar=Select a locale to update |
|
12 |
I18nPreferencePage.seleccione_idioma_traducir=Select the locale to translate to |
|
13 |
I18nPreferencePage.idioma_preparado_traducir=The locale has been prepared to be translated |
|
14 |
I18nPreferencePage.en_archivo=\ in the file: |
|
15 |
I18nPreferencePage.archivos_jar=.zip and .jar files |
|
16 |
I18nPreferencePage.seleccione_idioma_desinstalar=Select a locale to uninstall |
|
17 |
I18nPreferencePage.error_desinstalar_idioma=Error while uninstalling a locale |
|
18 |
I18nPreferencePage.idioma_actual_no_puede_desinstalar=The current locale can't be uninstalled |
|
19 |
I18nPreferencePage.seguro_desea_desinstalar_idioma=Are you sure you want to delete the selected locale: |
|
20 |
I18nPreferencePage.confirmar_desinstalar_idioma=Confirm de locale uninstall |
|
21 |
I18nPreferencePage.Instalar=Install |
|
22 |
I18nPreferencePage.Instalar_idioma_tooltip=Install a new locale or update an existing one |
|
23 |
I18nPreferencePage.Desinstalar=Uninstall |
|
24 |
I18nPreferencePage.Desinstalar_idioma_tooltip=Uninstall a gvSIG locale |
|
25 |
I18nPreferencePage.exportar_actualizar=Update |
|
26 |
I18nPreferencePage.exportar_actualizar_tooltip=Export the selected locale to complete or update it |
|
27 |
I18nPreferencePage.exportar_traducir=Translate |
|
28 |
I18nPreferencePage.exportar_traducir_tooltip=Export the selected locale to be translated to a new locale |
|
29 |
I18nPreferencePage.ayuda=If you change the active locale, it won't be used until the app is restarted |
|
30 |
I18nPreferencePage.colaboracion=If you would like to help with the translation of gvSIG, put in contact with us through the email address: i18n_management@lists.gvsig.org |
|
31 |
I18nPreferencePage.Locale_code=Locale code |
|
32 |
I18nPreferencePage.Idioma=Language |
|
33 |
I18nPreferencePage.Pais=Country |
|
34 |
I18nPreferencePage.Variante=Variant |
|
35 |
I18nPreferencePage.Activar=Active |
tags/extensions/org.gvsig.i18n.extension/2.0/src/main/resources/config/config.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
<plugin-config> |
|
3 |
<depends plugin-name="org.gvsig.app" /> |
|
4 |
<depends plugin-name="org.gvsig.coreplugin" /> |
|
5 |
<resourceBundle name="text" /> |
|
6 |
<libraries library-dir="lib" /> |
|
7 |
<extensions> |
|
8 |
<extension class-name="org.gvsig.i18n.extension.I18nExtension" |
|
9 |
description="Extensi?n de gesti?n de traducciones multiidioma" |
|
10 |
active="true" |
|
11 |
priority="1"> |
|
12 |
</extension> |
|
13 |
</extensions> |
|
14 |
</plugin-config> |
tags/extensions/org.gvsig.i18n.extension/2.0/src/main/resources/config/disid.html | ||
---|---|---|
1 |
<html> |
|
2 |
<body> |
|
3 |
|
|
4 |
<img src="disid-logo.jpeg"><br> |
|
5 |
|
|
6 |
<h2>DiSiD Technologies</h2> |
|
7 |
<br> |
|
8 |
<p> |
|
9 |
<a href="http://www.disid.com/">http://www.disid.com/</a> |
|
10 |
</p> |
|
11 |
<p>Empresa de ingeniería informática especializada en tecnología Java.</p> |
|
12 |
<p>Nuestro objetivo es proveer soluciones software enfocadas a resolver problemas y necesidades con |
|
13 |
el objetivo de ofrecer sólo lo que los clientes necesitan, evitando gestiones innecesarias.</p> |
|
14 |
<br> |
|
15 |
<p>Especializados en: |
|
16 |
<ul> |
|
17 |
<li>Sistemas de información geográfica (gvSIG)</li> |
|
18 |
<li>Reconocimiento y trazabilidad de personas y Activos con representación gráfica</li> |
|
19 |
<li>e-business y Tiendas virtuales</li> |
|
20 |
<li>Portales corporativos y Marketing on-line</li> |
|
21 |
<li>Consultoría tecnológica, desarrollo, soporte y formación Java</li> |
|
22 |
</ul> |
|
23 |
<br> |
|
24 |
<img src="logo_gvsig-asociacion.jpg"> |
|
25 |
<p><em>Miembro de la <a href="http://www.gvsig.com/">Asociación gvSIG</a></em> |
|
26 |
</body> |
|
27 |
</html> |
tags/extensions/org.gvsig.i18n.extension/2.0/src/main/java/org/gvsig/i18n/I18nManager.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
22 |
|
|
23 |
/* |
|
24 |
* AUTHORS (In addition to CIT): |
|
25 |
* 2008 {DiSiD Technologies} {New extension for installation and update of text translations} |
|
26 |
*/ |
|
27 |
package org.gvsig.i18n; |
|
28 |
|
|
29 |
import java.io.File; |
|
30 |
import java.util.Locale; |
|
31 |
|
|
32 |
/** |
|
33 |
* Management of I18n and Locale related activities. |
|
34 |
* |
|
35 |
* @author <a href="mailto:dcervera@disid.com">David Cervera</a> |
|
36 |
* @author <a href="mailto:cordin@disid.com">C?sar Ordi?ana</a> |
|
37 |
*/ |
|
38 |
public interface I18nManager { |
|
39 |
|
|
40 |
public static final Locale SPANISH = new Locale("es"); |
|
41 |
|
|
42 |
public static final Locale ENGLISH = new Locale("en"); |
|
43 |
|
|
44 |
/** |
|
45 |
* Returns the display name of a locale language. |
|
46 |
* |
|
47 |
* @param locale |
|
48 |
* to get the language display name |
|
49 |
* @param displayLocale |
|
50 |
* the locale to display the name |
|
51 |
* @return the locale language display name |
|
52 |
*/ |
|
53 |
String getLanguageDisplayName(Locale locale, Locale displayLocale); |
|
54 |
|
|
55 |
/** |
|
56 |
* Returns the display name of a locale language. |
|
57 |
* |
|
58 |
* @param locale |
|
59 |
* to get the language display name |
|
60 |
* @return the locale language display name |
|
61 |
*/ |
|
62 |
String getLanguageDisplayName(Locale locale); |
|
63 |
|
|
64 |
/** |
|
65 |
* Returns the display name of a locale in the given locale to be displayed. |
|
66 |
* |
|
67 |
* @param locale |
|
68 |
* to get the display name |
|
69 |
* @param displayLocale |
|
70 |
* the locale to display the name |
|
71 |
* @return the locale display name |
|
72 |
*/ |
|
73 |
String getDisplayName(Locale locale, Locale displayLocale); |
|
74 |
|
|
75 |
/** |
|
76 |
* Returns the display name of a locale. |
|
77 |
* |
|
78 |
* @param locale |
|
79 |
* to get the display name |
|
80 |
* @return the locale display name |
|
81 |
*/ |
|
82 |
String getDisplayName(Locale locale); |
|
83 |
|
|
84 |
/** |
|
85 |
* Returns the current locale. |
|
86 |
* |
|
87 |
* @return the current locale |
|
88 |
*/ |
|
89 |
Locale getCurrentLocale(); |
|
90 |
|
|
91 |
/** |
|
92 |
* Sets the current application locale. |
|
93 |
* |
|
94 |
* @param locale |
|
95 |
* the current application locale |
|
96 |
*/ |
|
97 |
void setCurrentLocale(Locale locale); |
|
98 |
|
|
99 |
/** |
|
100 |
* Returns the application host system default locale. |
|
101 |
* |
|
102 |
* @return the default system locale |
|
103 |
*/ |
|
104 |
Locale getDefaultSystemLocale(); |
|
105 |
|
|
106 |
/** |
|
107 |
* Returns the list of locales supported by the current gvSIG installation. |
|
108 |
* |
|
109 |
* @return the list of locales supported |
|
110 |
*/ |
|
111 |
Locale[] getInstalledLocales(); |
|
112 |
|
|
113 |
/** |
|
114 |
* Installs or a new locale (or a list) and its translation, or updates an |
|
115 |
* already existing one. |
|
116 |
* |
|
117 |
* @param importFile |
|
118 |
* the jar or zip file which contains the locales and the |
|
119 |
* translations as resource bundle files |
|
120 |
* @return the list of installed or updated locales |
|
121 |
* @throws I18nException |
|
122 |
* if the locales could'n be installed |
|
123 |
*/ |
|
124 |
Locale[] installLocales(File importFile) throws I18nException; |
|
125 |
|
|
126 |
/** |
|
127 |
* Uninstalls a locale and its translation. |
|
128 |
* |
|
129 |
* @param locale |
|
130 |
* to uninstall |
|
131 |
* @throws I18nException |
|
132 |
* if the locale can't be uninstalled |
|
133 |
*/ |
|
134 |
void uninstallLocale(Locale locale) throws I18nException; |
|
135 |
|
|
136 |
/** |
|
137 |
* Exports the translations of a locale to update or complete its |
|
138 |
* translation, into a jar file. Into the file is also included the |
|
139 |
* translations of another existing locale to be used as reference for |
|
140 |
* updating the locale. |
|
141 |
* |
|
142 |
* @param locale |
|
143 |
* the locale to update or complete |
|
144 |
* @param referenceLocale |
|
145 |
* the locale to be used as reference |
|
146 |
* @param exportFile |
|
147 |
* the jar file to export to |
|
148 |
* @throws I18nException |
|
149 |
* if the locale could not be exported for update |
|
150 |
*/ |
|
151 |
void exportLocaleForUpdate(Locale locale, Locale referenceLocale, |
|
152 |
File exportFile) throws I18nException; |
|
153 |
|
|
154 |
/** |
|
155 |
* Exports the translations of a list of locales to update or complete its |
|
156 |
* translation, into a jar file. Into the file is also included the |
|
157 |
* translations of another existing locale to be used as reference for |
|
158 |
* updating the locale. |
|
159 |
* |
|
160 |
* @param locales |
|
161 |
* the locales to update or complete |
|
162 |
* @param referenceLocale |
|
163 |
* the locale to be used as reference |
|
164 |
* @param exportFile |
|
165 |
* the jar file to export to |
|
166 |
* @throws I18nException |
|
167 |
* if the locale could not be exported for update |
|
168 |
*/ |
|
169 |
void exportLocalesForUpdate(Locale[] locales, Locale referenceLocale, |
|
170 |
File exportFile) throws I18nException; |
|
171 |
|
|
172 |
/** |
|
173 |
* Exports the keys of text to translate to a new locale to a jar file. Into |
|
174 |
* the file is also included the translations of another existing locale to |
|
175 |
* be used as reference for translating to the new locale. |
|
176 |
* |
|
177 |
* @param locale |
|
178 |
* the new locale to translate to |
|
179 |
* @param referenceLocale |
|
180 |
* the locale to be used as reference |
|
181 |
* @param exportFile |
|
182 |
* the jar file to export to |
|
183 |
* @throws I18nException |
|
184 |
* if the locale could not be exported for translation |
|
185 |
*/ |
|
186 |
void exportLocaleForTranslation(Locale locale, Locale referenceLocale, |
|
187 |
File exportFile) throws I18nException; |
|
188 |
|
|
189 |
/** |
|
190 |
* Exports the keys of text to translate to a new locale to a jar file. Into |
|
191 |
* the file is also included the translations of another existing locales to |
|
192 |
* be used as reference for translating to the new locale. |
|
193 |
* |
|
194 |
* @param locale |
|
195 |
* the new locale to translate to |
|
196 |
* @param referenceLocales |
|
197 |
* the locales to be used as reference |
|
198 |
* @param exportFile |
|
199 |
* the jar file to export to |
|
200 |
* @throws I18nException |
|
201 |
* if the locale could not be exported for translation |
|
202 |
*/ |
|
203 |
void exportLocaleForTranslation(Locale locale, Locale[] referenceLocales, |
|
204 |
File exportFile) throws I18nException; |
|
205 |
|
|
206 |
/** |
|
207 |
* Returns the list of default locales to use as reference when exporting to |
|
208 |
* translate a new locale, or update or complete an existing one. |
|
209 |
* |
|
210 |
* @return the list of default locales to export |
|
211 |
*/ |
|
212 |
Locale[] getReferenceLocales(); |
|
213 |
|
|
214 |
/** |
|
215 |
* Sets the list of default locales to export. |
|
216 |
* |
|
217 |
* @param referenceLocales |
|
218 |
* the list of default locales to export |
|
219 |
*/ |
|
220 |
void setReferenceLocales(Locale[] referenceLocales); |
|
221 |
|
|
222 |
/** |
|
223 |
* Sets the list of default locales bundled with gvSIG. That list of locales |
|
224 |
* will be used as the list of installed ones when gvSIG is run for the |
|
225 |
* first time with the I18n extension. The following times, that list will |
|
226 |
* be taken form the extension configuration in the plugins persistence. |
|
227 |
* |
|
228 |
* @param defaultLocales |
|
229 |
*/ |
|
230 |
void setDefaultLocales(Locale[] defaultLocales); |
|
231 |
} |
tags/extensions/org.gvsig.i18n.extension/2.0/src/main/java/org/gvsig/i18n/extension/preferences/table/RadioButtonCellEditor.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
22 |
|
|
23 |
/* |
|
24 |
* AUTHORS (In addition to CIT): |
|
25 |
* 2008 {DiSiD Technologies} {New extension for installation and update of text translations} |
|
26 |
*/ |
|
27 |
package org.gvsig.i18n.extension.preferences.table; |
|
28 |
|
|
29 |
import java.awt.Component; |
|
30 |
import java.awt.event.ActionEvent; |
|
31 |
import java.awt.event.ItemEvent; |
|
32 |
import java.awt.event.ItemListener; |
|
33 |
|
|
34 |
import javax.swing.AbstractCellEditor; |
|
35 |
import javax.swing.JTable; |
|
36 |
import javax.swing.table.TableCellEditor; |
|
37 |
|
|
38 |
/** |
|
39 |
* Allows to edit a cell content with a Radio button. |
|
40 |
* |
|
41 |
* @author <a href="mailto:cordin@disid.com">C?sar Ordi?ana</a> |
|
42 |
*/ |
|
43 |
public class RadioButtonCellEditor extends AbstractCellEditor implements |
|
44 |
TableCellEditor, ItemListener { |
|
45 |
|
|
46 |
private static final long serialVersionUID = 1000179477526963659L; |
|
47 |
|
|
48 |
private RadioButtonCell delegate = new RadioButtonCell(); |
|
49 |
|
|
50 |
/** |
|
51 |
* Constructor. |
|
52 |
*/ |
|
53 |
public RadioButtonCellEditor() { |
|
54 |
delegate.getRadioButton().addItemListener(this); |
|
55 |
} |
|
56 |
|
|
57 |
public Object getCellEditorValue() { |
|
58 |
return Boolean.valueOf(delegate.getRadioButton().isSelected()); |
|
59 |
} |
|
60 |
|
|
61 |
public Component getTableCellEditorComponent(JTable table, Object value, |
|
62 |
boolean isSelected, int row, int column) { |
|
63 |
return delegate.getTableCellComponent(table, value, isSelected, |
|
64 |
isSelected, row, column); |
|
65 |
} |
|
66 |
|
|
67 |
public void actionPerformed(ActionEvent e) { |
|
68 |
// Stop editing when the user clicks into the radio button, |
|
69 |
// so other cells get its rendering updated |
|
70 |
fireEditingStopped(); |
|
71 |
} |
|
72 |
|
|
73 |
public void itemStateChanged(ItemEvent e) { |
|
74 |
fireEditingStopped(); |
|
75 |
} |
|
76 |
|
|
77 |
} |
tags/extensions/org.gvsig.i18n.extension/2.0/src/main/java/org/gvsig/i18n/extension/preferences/table/RadioButtonCellRenderer.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
22 |
|
|
23 |
/* |
|
24 |
* AUTHORS (In addition to CIT): |
|
25 |
* 2008 {DiSiD Technologies} {New extension for installation and update of text translations} |
|
26 |
*/ |
|
27 |
package org.gvsig.i18n.extension.preferences.table; |
|
28 |
|
|
29 |
import java.awt.Component; |
|
30 |
|
|
31 |
import javax.swing.JTable; |
|
32 |
import javax.swing.table.TableCellRenderer; |
|
33 |
|
|
34 |
/** |
|
35 |
* Renders a Radio button on a JTable cell. |
|
36 |
* |
|
37 |
* @author <a href="mailto:cordin@disid.com">C?sar Ordi?ana</a> |
|
38 |
*/ |
|
39 |
public class RadioButtonCellRenderer extends RadioButtonCell implements |
|
40 |
TableCellRenderer { |
|
41 |
|
|
42 |
private static final long serialVersionUID = 7085349383073216796L; |
|
43 |
|
|
44 |
public Component getTableCellRendererComponent(JTable table, Object value, |
|
45 |
boolean isSelected, boolean hasFocus, int row, int column) { |
|
46 |
return getTableCellComponent(table, value, isSelected, hasFocus, row, |
|
47 |
column); |
|
48 |
} |
|
49 |
} |
tags/extensions/org.gvsig.i18n.extension/2.0/src/main/java/org/gvsig/i18n/extension/preferences/table/LocaleTableModel.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
22 |
|
|
23 |
/* |
|
24 |
* AUTHORS (In addition to CIT): |
|
25 |
* 2008 {DiSiD Technologies} {New extension for installation and update of text translations} |
|
26 |
*/ |
|
27 |
package org.gvsig.i18n.extension.preferences.table; |
|
28 |
|
|
29 |
import java.util.Locale; |
|
30 |
|
|
31 |
import javax.swing.table.AbstractTableModel; |
|
32 |
|
|
33 |
import org.gvsig.i18n.I18nException; |
|
34 |
import org.gvsig.i18n.I18nManager; |
|
35 |
import org.gvsig.i18n.Messages; |
|
36 |
|
|
37 |
/** |
|
38 |
* TableModel to show the list of available Locales in gvSIG. |
|
39 |
* |
|
40 |
* @author <a href="mailto:dcervera@disid.com">David Cervera</a> |
|
41 |
*/ |
|
42 |
public class LocaleTableModel extends AbstractTableModel { |
|
43 |
|
|
44 |
// Start from 0 to enable de locale column again |
|
45 |
public static final int COLUMN_LOCALE = -1; |
|
46 |
|
|
47 |
public static final int COLUMN_LANGUAGE = 0; |
|
48 |
|
|
49 |
public static final int COLUMN_COUNTRY = 1; |
|
50 |
|
|
51 |
public static final int COLUMN_VARIANT = 2; |
|
52 |
|
|
53 |
public static final int COLUMN_ACTIVE = 3; |
|
54 |
|
|
55 |
private static final long serialVersionUID = -3855372372788577788L; |
|
56 |
|
|
57 |
private final I18nManager manager; |
|
58 |
|
|
59 |
private Locale[] locales; |
|
60 |
|
|
61 |
private int currentLocaleIndex; |
|
62 |
|
|
63 |
private int originalLocaleIndex; |
|
64 |
|
|
65 |
/** |
|
66 |
* Creates a LocaleTableModel with a I18nManager to handle locales. |
|
67 |
*/ |
|
68 |
public LocaleTableModel(I18nManager manager) { |
|
69 |
this.manager = manager; |
|
70 |
loadLocales(); |
|
71 |
} |
|
72 |
|
|
73 |
public int getColumnCount() { |
|
74 |
return 4; |
|
75 |
} |
|
76 |
|
|
77 |
public int getRowCount() { |
|
78 |
return locales.length; |
|
79 |
} |
|
80 |
|
|
81 |
public Object getValueAt(int rowIndex, int columnIndex) { |
|
82 |
switch (columnIndex) { |
|
83 |
case COLUMN_LOCALE: |
|
84 |
return locales[rowIndex]; |
|
85 |
case COLUMN_LANGUAGE: |
|
86 |
return manager.getLanguageDisplayName(locales[rowIndex]); |
|
87 |
case COLUMN_COUNTRY: |
|
88 |
return locales[rowIndex].getDisplayCountry(); |
|
89 |
case COLUMN_VARIANT: |
|
90 |
return locales[rowIndex].getDisplayVariant(); |
|
91 |
case COLUMN_ACTIVE: |
|
92 |
return rowIndex == currentLocaleIndex ? Boolean.TRUE |
|
93 |
: Boolean.FALSE; |
|
94 |
} |
|
95 |
return null; |
|
96 |
} |
|
97 |
|
|
98 |
public String getColumnName(int columnIndex) { |
|
99 |
switch (columnIndex) { |
|
100 |
case COLUMN_LOCALE: |
|
101 |
return Messages.getText("I18nPreferencePage.Locale_code"); |
|
102 |
case COLUMN_LANGUAGE: |
|
103 |
return Messages.getText("I18nPreferencePage.Idioma"); |
|
104 |
case COLUMN_COUNTRY: |
|
105 |
return Messages.getText("I18nPreferencePage.Pais"); |
|
106 |
case COLUMN_VARIANT: |
|
107 |
return Messages.getText("I18nPreferencePage.Variante"); |
|
108 |
case COLUMN_ACTIVE: |
|
109 |
return Messages.getText("I18nPreferencePage.Activar"); |
|
110 |
} |
|
111 |
return ""; |
|
112 |
} |
|
113 |
|
|
114 |
public Class getColumnClass(int columnIndex) { |
|
115 |
switch (columnIndex) { |
|
116 |
case COLUMN_LOCALE: |
|
117 |
case COLUMN_LANGUAGE: |
|
118 |
case COLUMN_COUNTRY: |
|
119 |
case COLUMN_VARIANT: |
|
120 |
return String.class; |
|
121 |
case COLUMN_ACTIVE: |
|
122 |
return Boolean.class; |
|
123 |
} |
|
124 |
return Object.class; |
|
125 |
} |
|
126 |
|
|
127 |
public boolean isCellEditable(int rowIndex, int columnIndex) { |
|
128 |
return columnIndex == 3; |
|
129 |
} |
|
130 |
|
|
131 |
public void setValueAt(Object value, int rowIndex, int columnIndex) { |
|
132 |
// Only edit current locale value |
|
133 |
if (columnIndex == COLUMN_ACTIVE && Boolean.TRUE.equals(value)) { |
|
134 |
setSelectedLocale(rowIndex, columnIndex); |
|
135 |
} |
|
136 |
} |
|
137 |
|
|
138 |
/** |
|
139 |
* Returns the {@link Locale} shown in a table row. |
|
140 |
* |
|
141 |
* @param rowIndex |
|
142 |
* the table row index |
|
143 |
* @return the {@link Locale} |
|
144 |
*/ |
|
145 |
public Locale getLocale(int rowIndex) { |
|
146 |
return rowIndex >= 0 ? locales[rowIndex] : null; |
|
147 |
} |
|
148 |
|
|
149 |
/** |
|
150 |
* Removes and uninstalls a locale. |
|
151 |
* |
|
152 |
* @param locale |
|
153 |
* to remove |
|
154 |
* @throws I18nException |
|
155 |
* if there is an error removing a Locale |
|
156 |
*/ |
|
157 |
public void removeLocale(Locale locale) throws I18nException { |
|
158 |
int rowIndex = getLocaleRowIndex(locale); |
|
159 |
manager.uninstallLocale(locale); |
|
160 |
loadLocales(); |
|
161 |
fireTableRowsDeleted(rowIndex, rowIndex); |
|
162 |
} |
|
163 |
|
|
164 |
/** |
|
165 |
* Reloads the list of installed locales. |
|
166 |
*/ |
|
167 |
public void reloadLocales() { |
|
168 |
loadLocales(); |
|
169 |
fireTableDataChanged(); |
|
170 |
} |
|
171 |
|
|
172 |
public void saveSelectedLocale() { |
|
173 |
manager.setCurrentLocale(getSelectedLocale()); |
|
174 |
originalLocaleIndex = currentLocaleIndex; |
|
175 |
} |
|
176 |
|
|
177 |
public void selectPreviousLocale() { |
|
178 |
setSelectedLocale(originalLocaleIndex, COLUMN_ACTIVE); |
|
179 |
} |
|
180 |
|
|
181 |
/** |
|
182 |
* |
|
183 |
*/ |
|
184 |
public void selectDefaultLocale() { |
|
185 |
Locale defLocale = manager.getDefaultSystemLocale(); |
|
186 |
int pos = getLocaleRowIndex(defLocale); |
|
187 |
// Maybe the locale has country and/or variant and is not registered |
|
188 |
// (ex: en_US). Look for the locale with only the language (ex: en). |
|
189 |
if (pos == -1) { |
|
190 |
defLocale = new Locale(defLocale.getLanguage()); |
|
191 |
pos = getLocaleRowIndex(defLocale); |
|
192 |
} |
|
193 |
// If the locale could'nt be found, use English as default |
|
194 |
if (pos == -1) { |
|
195 |
pos = getLocaleRowIndex(I18nManager.ENGLISH); |
|
196 |
} |
|
197 |
setSelectedLocale(pos, COLUMN_ACTIVE); |
|
198 |
} |
|
199 |
|
|
200 |
public boolean isValueChanged() { |
|
201 |
return currentLocaleIndex != originalLocaleIndex; |
|
202 |
} |
|
203 |
|
|
204 |
public void setChangesApplied() { |
|
205 |
originalLocaleIndex = currentLocaleIndex; |
|
206 |
} |
|
207 |
|
|
208 |
/** |
|
209 |
* Sets the current selected locale. |
Also available in: Unified diff