Index: tags/v2_0_0_Build_2049/extensions/extI18n/install/install.xml
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/install/install.xml	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/install/install.xml	(revision 38474)
@@ -0,0 +1,85 @@
+<installation version="1.0">
+	<info>
+		<appname>I18nExtension</appname> <!-- A SUSTITUR POR EL NOMBRE DE EXTENSION, POR EJEMPLO: "VISOR_RUIDO" -->
+		<appversion>0.1</appversion>
+		<authors>
+			<author name="Generalitat Valenciana. Conselleria d'Infraestructures i Transport" email="" />
+			<author name="Iver Tecnologías de la Información S.A." email="" />
+            <author name="Ayto. de Valencia" email="" />
+		</authors>
+		<url>http://www.gvsig.gva.es/</url>
+		<javaversion>1.5</javaversion>
+	</info>
+
+	<guiprefs height="600" resizable="yes" width="800">
+		<laf name="liquid">
+			<os family="unix" />
+		</laf>
+		<laf name="liquid">
+			<os family="windows" />
+		</laf>
+	</guiprefs>
+
+	<locale>
+		<langpack iso3="spa"/>
+		<langpack iso3="val"/>
+		<langpack iso3="eng"/>
+		<langpack iso3="cat"/>
+		<langpack iso3="chn"/>
+		<langpack iso3="cze"/>
+		<langpack iso3="dan"/>
+		<langpack iso3="deu"/>
+		<langpack iso3="fin"/>
+		<langpack iso3="fra"/>
+		<langpack iso3="glg"/>
+		<langpack iso3="hun"/>
+		<langpack iso3="ita"/>
+		<langpack iso3="jpn"/>
+		<langpack iso3="mys"/>
+		<langpack iso3="ned"/>
+		<langpack iso3="nor"/>
+		<langpack iso3="pol"/>
+		<langpack iso3="por"/>
+		<langpack iso3="rom"/>
+		<langpack iso3="rus"/>
+		<langpack iso3="scg"/>
+		<langpack iso3="svk"/>
+		<langpack iso3="swe"/>
+		<langpack iso3="ukr"/>
+	</locale>
+
+	<resources>
+		<res src="resources/gpl.txt" id="LicencePanel.licence"/>
+		<res src="resources/LEEME.html" id="HTMLInfoPanel.info"/>
+		<res src="resources/images/Logo_gvsig_gva.jpg" id="Installer.image"/>
+		<res src="resources/userInputSpec.xml" id="userInputSpec.xml"/>
+		<parsable targetfile="resources/userInputSpec.xml"/>
+		<res src="resources/userInputLang.xml_val" id="userInputLang.xml_val" />
+		<res src="resources/userInputLang.xml_spa" id="userInputLang.xml_spa" />
+	</resources>
+
+	<panels>
+		<panel classname="HTMLInfoPanel"/>
+		<panel classname="LicencePanel"/>
+		<panel classname="PacksPanel"/>
+		<panel classname="UserInputPanel"/>
+		<panel classname="InstallPanel"/>
+		<panel classname="SimpleFinishPanel"/>
+	</panels>
+
+	<packs>
+
+		<pack name="I18nExtension" required="yes">  <!--A SUSTITUIR POR LA EXTENSION, EJ: Extension VISOR_RUIDO-->
+			<description>Extensión de administración de traducciones multiidioma.</description> <!--A SUSTITUIR POR LA DESCRIPCION, EJ: Extension para manejo de... -->
+			<file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/" src="extensiones/org.gvsig.i18n" override="true"/> 
+			<!--SUSTITUR POR LA EXTENSION, ej: com.iver.ayto.visorRuido-->
+			<!--además, si hay que copiar algo fuera del directorio de la extension, hay que añadirlo-->
+			<!-- <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 -->
+			<!-- Sobreescribir con nueva versión de libInternationalization -->
+			<file targetdir="$INSTALL_PATH/bin/lib" src="../lib/gvsig-i18n.jar" override="true"/> 
+		</pack>
+
+
+	</packs>
+
+</installation>
Index: tags/v2_0_0_Build_2049/extensions/extI18n/install/build.properties
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/install/build.properties	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/install/build.properties	(revision 38474)
@@ -0,0 +1,17 @@
+#SUSTITUIR POR EL DIRECTORIO DE EXTENSION, ej: com.iver.aytovalencia.visor1
+MAIN_INSTALL_PLUGIN=org.gvsig.i18n
+
+
+#VERIFICAR LOS NUMEROS DE VERSION
+EXTENSIONS=com.iver.cit.gvsig,${MAIN_INSTALL_PLUGIN}
+version=0.1.0
+bversion=0_1_0
+build=9
+gvSIG.version=2_0_0
+
+#SUSTITUIR POR EL NOMBRE DE PLUGIN, ej: visorRuido
+APPNAME=extI18n
+
+
+#SUSTITUIR POR EL DIRECTORIO DE SALIDA, ej: /tmp/myExtension
+OUTPUT_DIR=../instalables
Index: tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/userInputLang.xml_por
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/userInputLang.xml_por	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/userInputLang.xml_por	(revision 38474)
@@ -0,0 +1,3 @@
+<langpack>
+  <str id="text.label" txt="Path to gvSIG:"/>
+</langpack>
Index: tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/gpl.txt
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/gpl.txt	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/gpl.txt	(revision 38474)
@@ -0,0 +1,125 @@
+	GNU GENERAL PUBLIC LICENSE
+	Version 2, June 1991
+
+	 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.
+
+		Preamble
+
+	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.
+
+	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.
+
+	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.
+
+	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
+rights.
+
+	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.
+
+	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.
+
+	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.
+
+	The precise terms and conditions for copying, distribution and modification follow.
+
+				GNU GENERAL PUBLIC LICENSE
+	TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+	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".
+
+	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.
+
+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.
+
+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.
+
+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:
+
+a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.
+
+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.
+
+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.)
+
+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.
+
+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.
+
+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.
+
+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:
+
+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,
+
+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,
+
+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.)
+
+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.
+
+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.
+
+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.
+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.
+
+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.
+
+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.
+You are not responsible for enforcing compliance by third parties to this License.
+
+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.
+
+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.
+
+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.
+
+This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.
+
+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.
+
+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.
+
+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.
+
+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.
+
+NO WARRANTY
+
+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.
+
+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.
+
+END OF TERMS AND CONDITIONS
+
+How to Apply These Terms to Your New Programs
+
+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.
+
+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.
+
+<one line to give the program's name and a brief idea of what it does.> Copyright (C) <year>  <name of author>
+
+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.
+
+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.
+
+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
+
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this when it starts in an interactive mode:
+
+Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
+
+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.
+
+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:
+
+Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+<signature of Ty Coon>, 1 April 1989
+Ty Coon, President of Vice
+
+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.
\ No newline at end of file
Index: tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/userInputLang.xml_cze
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/userInputLang.xml_cze	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/userInputLang.xml_cze	(revision 38474)
@@ -0,0 +1,3 @@
+<langpack>
+  <str id="text.label" txt="Path to gvSIG:"/>
+</langpack>
Index: tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/userInputLang.xml_val
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/userInputLang.xml_val	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/userInputLang.xml_val	(revision 38474)
@@ -0,0 +1,3 @@
+<langpack>
+  <str id="text.label" txt="Ruta a gvSIG:"/>
+</langpack>
Index: tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/userInputLang.xml_spa
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/userInputLang.xml_spa	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/userInputLang.xml_spa	(revision 38474)
@@ -0,0 +1,3 @@
+<langpack>
+  <str id="text.label" txt="Ruta a gvSIG:"/>
+</langpack>
Index: tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/configfile
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/configfile	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/configfile	(revision 38474)
@@ -0,0 +1,32 @@
+#fichero ASCII, saltos de linea UNIX (ASCII 10)
+#comentarios en linea empezada con #
+#se aceptan lineas en blanco
+#Formato de parametros: 
+#nombre de parametro en una linea, contenido en siguiente/s linea/s
+#si donde deberia haber "contenido del parametro" hay una linea en blanco, se entiende que se quiere parametro vacio
+#Si un parametro no se define, se supone vacio.
+
+#Parametro oldAndamiMD5 puede tener varios valores (se respetan todos, puede no haber ninguno)
+#MD5 de andami.jar v1.0
+#oldAndamiMD5
+#c5427c92842398101136818b66e7dbc8
+
+#MD5 de andami.jar v1.0.1
+#oldAndamiMD5
+#b5bba7f20d0c2f3faed511c0b66039ef
+
+#Parametro oldVersion contiene un STRING con el que decir al usuario las versiones actualizables (sera igual en todos los idiomas!)
+#puede estar vacio
+#oldVersion
+#1.0 / 1.0.1
+
+#Parametro newName contiene nuevo nombre para bundle actualizado (sin extension)
+#si vacio, no se cambiara el nombre (util para instalar extensiones, que no tienen por que modificar el nombre del gvSIG)
+#newName
+#gvSIG 1.0.2 build 891
+
+#Parametro newSuffix contiene nuevo sufijo para bundle "actualizado" (autoinstaller y/o normal)
+#si vacio, no se cambiara el nombre
+#si se especifica newName y newSuffix, se aplica primero newName y luego newSuffix
+#newSuffix
+#SEXTANTE
Index: tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/images/Logo_gvsig_gva.jpg
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream

Property changes on: tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/images/Logo_gvsig_gva.jpg
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Index: tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/userInputLang.xml_cat
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/userInputLang.xml_cat	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/userInputLang.xml_cat	(revision 38474)
@@ -0,0 +1,3 @@
+<langpack>
+  <str id="text.label" txt="Ruta a gvSIG:"/>
+</langpack>
Index: tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/userInputLang.xml_fra
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/userInputLang.xml_fra	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/userInputLang.xml_fra	(revision 38474)
@@ -0,0 +1,3 @@
+<langpack>
+  <str id="text.label" txt="Path to gvSIG:"/>
+</langpack>
Index: tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/userInputLang.xml_eng
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/userInputLang.xml_eng	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/userInputLang.xml_eng	(revision 38474)
@@ -0,0 +1,3 @@
+<langpack>
+  <str id="text.label" txt="Path to gvSIG:"/>
+</langpack>
Index: tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/userInputSpec.xml
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/userInputSpec.xml	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/userInputSpec.xml	(revision 38474)
@@ -0,0 +1,21 @@
+<userInput>
+	<panel order="0">
+		<field 	type="search" 
+				variable="INSTALL_PATH"
+				size="45">
+  			<description align="left" />
+  			<spec 	txt="Path to gvSIG:" 
+		  			id="text.label"
+  					checkfilename="bin/andami.jar"
+        			type="directory" 
+        			result="directory">
+  			<choice value="/usr/local/gvSIG_1.0" os="unix" />
+  			<choice value="/opt/gvSIG_1.0" os="unix" />
+  			<choice value="$USER_HOME/gvSIG_1.0" os="unix" />
+  			<choice value="C:\Archivos de Programa\gvSIG_1.0" os="windows" />
+  			<choice value="C:\Program Files\gvSIG_1.0" os="windows" />
+  			</spec>
+		</field>
+	</panel>
+</userInput>
+
Index: tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/LEEME.html
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/LEEME.html	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/LEEME.html	(revision 38474)
@@ -0,0 +1,60 @@
+<html>
+<head>
+<style type="text/css">
+html, body, h1, h2, h3, h4, div, p, ul, li, input {
+   font-family: Arial, Helvetica, sans-serif;
+}
+
+h1 {
+   font-size: large;
+}
+
+h2 {
+   font-size: large;
+}
+
+h3 {
+   font-size: medium;
+}
+</style>
+</head>
+<body>
+<h1>Extensi&oacute;n de administraci&oacute;n de traducciones multiidioma</h1>
+
+<h2>Autores:</h2>
+<ul>
+<li>Generalitat Valenciana
+ (Conselleria d'Infraestructures i Transport).</li>
+<li>DiSiD Technologies S.L.</li>
+</ul>
+
+<p>Software con licencia GNU/GPL
+(http://www.fsf.org/licensing/licenses/gpl.html)</p>
+
+<p>Informaci&oacute;n y soporte:
+	http://www.disid.com/<p>
+
+<h2>Requisitos de la aplicaci&oacute;n:</h2>
+<h3>Sistema</h3>
+<ul>
+<li>M&iacute;nimos: Pentium III / 256 MB RAM.</li>
+<li>Recomendables: Pentium IV / 512 MB RAM.</li>
+<li>Sistemas operativos: plataformas Windows y Linux.</li>
+</ul>
+
+<h3>Software instalado</h3> (disponible en http://www.gvsig.gva.es o en http://java.sun.com)
+<ul>
+<li>gvSIG-1.1</li>
+</ul>
+
+<h2>M&aacute;s informaci&oacute;n y soporte sobre gvSIG en:</h2>
+<h3> Web oficial del proyecto:</h3>
+	http://www.gvsig.org
+
+<h3>Listas de distribuci&oacute;n:</h3>
+<span style="monospace"> http://runas.cap.gva.es/mailman/listinfo/gvsig_usuarios</span> (soporte para usuarios).
+<span style="monospace"> http://runas.cap.gva.es/mailman/listinfo/gvsig_desarrolladores</span> (soporte para desarrolladores).
+<span style="monospace"> http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional</span> (soporte para desarrolladores o usuarios de habla no hispana).
+
+</body>
+</html>
Index: tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/userInputLang.xml_deu
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/userInputLang.xml_deu	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/userInputLang.xml_deu	(revision 38474)
@@ -0,0 +1,3 @@
+<langpack>
+  <str id="text.label" txt="Path to gvSIG:"/>
+</langpack>
Index: tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/userInputLang.xml_ita
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/userInputLang.xml_ita	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/install/resources/userInputLang.xml_ita	(revision 38474)
@@ -0,0 +1,3 @@
+<langpack>
+  <str id="text.label" txt="Path to gvSIG:"/>
+</langpack>
Index: tags/v2_0_0_Build_2049/extensions/extI18n/install/buildExt.xml
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/install/buildExt.xml	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/install/buildExt.xml	(revision 38474)
@@ -0,0 +1,276 @@
+<project name="instalador-gvSIG" default="init" basedir=".">
+	
+	<dirname file="${ant.file.instalador-gvSIG}" property="base_dir"/>
+	<dirname file="${base_dir}" property="project_dir"/>
+	<dirname file="${project_dir}" property="workspace_dir"/>
+	
+	<import file="${workspace_dir}/binaries/ant/utilities.xml"/>
+	
+	<property file="build.properties"/>
+	<property file="${workspace_dir}/_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/build.number" prefix="gvSIG."/>
+	<property file="${project_dir}/build.number"/>
+	
+	<property name="dir_inst" location="/usr/local"/>
+	<!--<property name="base_dir" location="./"/>		-->
+	<property name="izpack_dir" location="${workspace_dir}/install/IzPack"/>
+	<property name="dir_libs" location="${izpack_dir}/lib"/>
+	
+	
+	<property name="GVSIG_INSTALLDIR" location="${workspace_dir}/install"/>
+	<property name="ANDAMI_DIR" location="${workspace_dir}/_fwAndami"/>
+	<property name="INSTALLER_DIR" value="${APPNAME}-${version}_installer"/>
+	<property name="JARNAME" value="${APPNAME}-${version}.jar"/>
+	<property name="DIR_LIN_GVSIG" location="${GVSIG_INSTALLDIR}/instalador-gvSIG-lin"/>
+	<property name="DIR_WIN_GVSIG" location="${GVSIG_INSTALLDIR}/instalador-gvSIG-win"/>
+	<property name="baseFileName" value="gvsig_${APPNAME}-${version}-${build}"/>
+	<property name="WINDOWSZIP" value="${baseFileName}-windows-i586.7z" />
+	<property name="LINUXBIN" value="${baseFileName}-linux-i586.bin"/>
+	<property name="WINDOWSEXE" value="${baseFileName}-windows-i586.exe"/>
+	<property name="MAC_10_ZIP" value="${baseFileName}-mac-10_4.zip"/>
+	<property name="autoinstalador" value="${APPNAME}_Installer" />
+	<property name="OUTPUT_DIR" location="./tmp/versiones/v${version}/${build.number}"/> <!--CAMBIAR ESTO SEGUN DIRECTORIO OUTPUT -->
+	
+	<condition property="LAUNCHER7Z" value="${GVSIG_INSTALLDIR}/launcher/7z/7za" else="${GVSIG_INSTALLDIR}/launcher/7z/7z.exe">
+		<os family="unix" />
+	</condition>
+	
+	<taskdef name="izpack" classpath="${dir_libs}/compiler.jar" classname="com.izforge.izpack.ant.IzPackTask"/>
+	
+	
+	<condition property="Lang.Is.Spanish">
+		<contains string="${env.LANG}" substring="es"/>
+	</condition>
+	<condition property="directorio.base">
+		<available file="${base_dir}/install.xml" type="file" />
+	</condition>
+	
+	<target name="E_Spanish" if="Lang.Is.Spanish">
+		<property name="ERROR_BASEDIR" value="En el directorio ${base_dir} no se encuentra el fichero install.xml" />
+	</target>
+	
+	<target name="E_notSpanish" unless="Lang.Is.Spanish">
+		<property name="ERROR_BASEDIR" value="Cannot find install.xml in ${base_dir} folder " />
+	</target>
+	
+	<target name="check" depends="E_Spanish,E_notSpanish">
+		<fail message="${ERROR_BASEDIR}" unless="directorio.base"/>
+	</target>
+	
+	
+	
+	<target name="init" depends="check,CopyFiles,CreateJar,Installation,InstallMac,CleanDir" >
+		
+	</target>
+	<target name="CopyFiles" description="Copia de ficheros de librerias y de las extensiones necesarias">
+		<delete dir="${base_dir}/bin"/>
+		<copy file="${base_dir}/resources/gpl.txt" todir="./bin"/>
+		<mkdir dir="${base_dir}/bin/lib"/>
+		<!-- 		copiamos los jar y zip que tenemos en _fwAndami/lib		 -->
+		<copy todir="${base_dir}/bin/lib">
+			<fileset dir="${ANDAMI_DIR}/lib">
+				<include name="*.jar"/>
+				<include name="*.zip"/>
+			</fileset>
+		</copy>
+		
+		<copy todir="${base_dir}/bin" file="${ANDAMI_DIR}/andami.jar"/>
+		<copy todir="${base_dir}/bin" file="${ANDAMI_DIR}/castor.properties"/>
+		
+		<!-- 		PARA WINDOWS -->
+		
+		
+		<delete dir="${base_dir}/tmpResources"/>
+		<mkdir dir="${base_dir}/tmpResources" />
+		
+		<!-- 	Copiamos el lanzador y sus traduciones al tmpResources,sin copiar el ini, manifest y los CVS (ANT excluye carpetas CVS por defecto -->
+		<copy todir="${base_dir}/tmpResources">
+			<fileset dir="${GVSIG_INSTALLDIR}/launcher/izpack-launcher-1.3/dist/">
+				<include name="**/"/>
+				<exclude name="**/*.ini"/>
+				<exclude name="**/*.manifest"/>
+			</fileset>
+		</copy>
+		<move file="${base_dir}/tmpResources/launcher-Win32.exe" tofile="./tmpResources/gvSIG.exe"/>
+		
+		
+		
+		
+		<for list="${EXTENSIONS}" param="extensions">
+			<sequential>
+				<copy todir="${base_dir}/extensiones/@{extensions}">
+					<fileset dir="${ANDAMI_DIR}/gvSIG/extensiones/@{extensions}"/>
+				</copy>
+				<echo>extension ----> @{extensions} </echo>
+			</sequential>
+		</for>
+	</target>
+	<target name="CreateJar" description="Generacion del instalador Jar">
+		<izpack input="${base_dir}/install.xml"
+			output="${base_dir}/${JARNAME}"
+			installerType="standard"
+			basedir="${base_dir}"
+			izPackDir="${izpack_dir}/"/>
+	</target>
+	<!-- 		generar el tar.gz para linux -->
+	<target name="Installation" description="Generacion de la distribucion">
+		
+		<mkdir dir="${OUTPUT_DIR}" />
+		<delete dir="${base_dir}/${INSTALLER_DIR}"/>
+		<mkdir dir="${base_dir}/${INSTALLER_DIR}/tmp_gvSIGInstall"/>
+		<copy file="${base_dir}/${JARNAME}" todir="./${INSTALLER_DIR}/tmp_gvSIGInstall"/>
+		
+		<!-- 		carpetas CVS no se copiaran, ANT las excluye por defecto -->
+		<copy todir="${base_dir}/${INSTALLER_DIR}/tmp_gvSIGInstall">
+			<fileset dir="${GVSIG_INSTALLDIR}/launcher/izpack-launcher-1.3_linux/dist/"/>
+		</copy>
+		
+		<chmod file="${base_dir}/${INSTALLER_DIR}/tmp_gvSIGInstall/launcher-Linux" perm="ugo+rx"/>
+		<delete file="${base_dir}/${INSTALLER_DIR}/tmp_gvSIGInstall/launcher.ini"/>
+		<copy file="${DIR_LIN_GVSIG}/resources/launcher.ini.j15" tofile="${base_dir}/${INSTALLER_DIR}/tmp_gvSIGInstall/launcher.ini"/>
+		<replace file="${base_dir}/${INSTALLER_DIR}/tmp_gvSIGInstall/launcher.ini" token="%JARNAME%" value="${JARNAME}"/>
+		
+		<!-- 		comprimimos la carpeta tmp_gvSIGInstall en tmp.tgz  -->
+		<tar destfile="${base_dir}/${INSTALLER_DIR}/tmp.tgz"  compression="gzip">
+			<tarfileset dir="${base_dir}/${INSTALLER_DIR}" mode="755" >
+				<include name="tmp_gvSIGInstall/launcher-Linux"/>
+			</tarfileset>
+			<tarfileset dir="${base_dir}/${INSTALLER_DIR}">
+				<include name="tmp_gvSIGInstall/*"/>
+				<exclude name="tmp_gvSIGInstall/launcher-Linux"/>
+			</tarfileset>
+		</tar>
+		<echo message="#!/bin/sh${line.separator}" file="./${INSTALLER_DIR}/xx.tmp" />
+		<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 -->
+    <copy todir="${base_dir}/${INSTALLER_DIR}" file="${GVSIG_INSTALLDIR}/launcher/izpack-launcher-1.3_linux/h_gvSIG-install.sh"/>
+    <!-- fixcrlf srcDir="${base_dir}/${INSTALLER_DIR}" includes="h_gvSIG-install.sh,xx.tmp"  eol="unix" eof=""/-->
+		<concat destfile="${base_dir}/${INSTALLER_DIR}/${LINUXBIN}" binary="true" >
+			<fileset file="${base_dir}/${INSTALLER_DIR}/xx.tmp"/>
+			<fileset file="${base_dir}/${INSTALLER_DIR}/h_gvSIG-install.sh"/>
+			<fileset file="${base_dir}/${INSTALLER_DIR}/tmp.tgz"/>
+		</concat>
+		<chmod file="${base_dir}/${INSTALLER_DIR}/${LINUXBIN}" perm="ugo+rx"/>
+		<delete file="${base_dir}/${INSTALLER_DIR}/xx.tmp"/>
+		<move file="${base_dir}/${INSTALLER_DIR}/${LINUXBIN}" todir="${OUTPUT_DIR}" />
+		<delete dir="${base_dir}/${INSTALLER_DIR}"/>
+		
+		
+		
+		<!-- 		PARA WINDOWS  -->
+		<delete dir="${base_dir}/${INSTALLER_DIR}"/>
+		<mkdir dir="${base_dir}/${INSTALLER_DIR}"/>
+		<copy todir="${base_dir}/${INSTALLER_DIR}">
+			<fileset dir="${GVSIG_INSTALLDIR}/launcher/izpack-launcher-1.3/dist"/>
+		</copy>
+		<delete file="${base_dir}/${INSTALLER_DIR}/launcher-Win32.ini"/>
+		<copy todir="${base_dir}/${INSTALLER_DIR}/" file="${DIR_WIN_GVSIG}/resources/launcher-Win32.ini.j15"/>
+		<move file="${base_dir}/${INSTALLER_DIR}/launcher-Win32.ini.j15" tofile="${base_dir}/${INSTALLER_DIR}/launcher-Win32.ini"/>
+		<replace file="${base_dir}/${INSTALLER_DIR}/launcher-Win32.ini" token="%JARNAME%" value="${JARNAME}"/>
+		<move file="${base_dir}/${JARNAME}" todir="./${INSTALLER_DIR}"/>
+		<delete file="${base_dir}/${WINDOWSZIP}"/>
+		<exec executable="${LAUNCHER7Z}">
+			<arg line="a -r ${WINDOWSZIP} ./${INSTALLER_DIR}/*"/>
+		</exec>
+		<copy file="${GVSIG_INSTALLDIR}/launcher/7z/dist_config.txt" tofile="./dist_config.txt"/>
+		<replace file="${base_dir}/dist_config.txt" token="%TITLE%" value="${APPNAME}-${bversion}_${build.number}" />
+		<concat destfile="${base_dir}/${WINDOWSEXE}" binary="true">
+			<fileset file="${GVSIG_INSTALLDIR}/launcher/7z/7zS.sfx"/>
+			<fileset file="${base_dir}/dist_config.txt"/>
+			<fileset file="${base_dir}/${WINDOWSZIP}"/>
+		</concat>
+		<move file="${WINDOWSEXE}" todir="${OUTPUT_DIR}"/>
+	</target>
+	
+	<target name="InstallMac" description="Actualizador para MAC">
+		<property name="tmp_mac" location="${base_dir}/tmpResources_mac"/>
+		
+		<delete dir="${tmp_mac}" failonerror="no"/>
+		
+		<mkdir dir="${tmp_mac}"/>
+		
+		
+		<ant antfile="build-updater.xml" dir="${GVSIG_INSTALLDIR}/instalador-gvSIG-mac">
+			<property name="NOMBRE_BUNDLE" value="${autoinstalador}"/>
+			<property name="DIR_DESTINO" value="${tmp_mac}"/>
+		</ant>
+		
+		<copy todir="${tmp_mac}/${autoinstalador}.app/Contents/Resources" file="./resources/configfile" overwrite="yes"/>
+		
+		<replace file="${tmp_mac}/${autoinstalador}.app/Contents/Resources/configfile"
+			 token="%BUILD.NUMBER%"
+			 value="${build.number}"/>
+		
+		
+		<property name="mac_install_path_bin" value="${tmp_mac}/${autoinstalador}.app/Contents/Resources/updates/gvSIGbin"/>
+		<property name="mac_install_path_gvsig" value="${mac_install_path_bin}/gvSIG"/>
+		<property name="mac_install_path_ext" value="${mac_install_path_gvsig}/extensiones"/>
+	
+		<copy todir="${mac_install_path_bin}/lib" file="../lib/gvsig-i18n.jar"/>
+
+		<!-- Copiar en los directorios los ficheros a instalar:   
+		     ${mac_install_path_bin} ==> directorio 'bin' de la instalacion (donde esta andami.jar)
+		     ${mac_install_path_gvsig} ==> directorio 'bin/gvSIG' de la instalacion
+		     ${mac_install_path_ext} ==> directorio 'bin/gvSIG/extensiones'
+		     
+		
+		
+		Ejemplos:
+		
+		* Actualizar andami.jar:
+		
+		<copy todir="${mac_install_path_bin}" file="bin/andami.jar"/>
+		
+		
+		* Copiar una libreria al directorio de lib del plugin de gvSIG:
+		
+		<copy todir="${mac_install_path_gvsig}">
+			<fileset dir=".">
+				<include name="extensiones/com.iver.cit.gvsig/lib/myLib.jar"/>
+			</fileset>
+		</copy>
+		
+		* Copiar el directorio entero del plugin 'myPlugin':
+		     
+		<copy todir="${mac_install_path_ext}">
+			<fileset dir="extensiones">
+				<include name="myPlugin/**/**"/>
+			</fileset>
+		</copy>
+
+		* Copiar todos los ficheros 'about.htm'
+		<copy todir="${mac_install_path_ext}">
+			<fileset dir="extensiones">
+				<include name="**/about.htm"/>
+			</fileset>
+		</copy>
+		
+		     
+		     -->
+		
+		
+		
+		<zip destfile="${OUTPUT_DIR}/${MAC_10_ZIP}">
+			<zipfileset dir="${tmp_mac}"
+				    includes="${autoinstalador}.app/**"
+				    excludes="${autoinstalador}.app/Contents/MacOS/*"
+				    />
+			<zipfileset dir="${tmp_mac}"
+				    includes="${autoinstalador}.app/Contents/MacOS/*"
+				    filemode="755"
+				    />
+			
+		</zip>
+		
+		<delete dir="${tmp_mac}"/>
+	</target>
+	
+	<target name="CleanDir" description="Limpiamos los directorios creados">
+		
+		<delete file="${base_dir}/${WINDOWSZIP}" />
+		<delete file="${base_dir}/dist_config.txt" />
+		<delete dir="${base_dir}/${INSTALLER_DIR}" />
+		<delete dir="${base_dir}/tmpResources" />
+		<delete dir="extensiones"/>
+		<delete dir="bin"/>
+	</target>
+	
+</project>
Index: tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/I18nManager.java
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/I18nManager.java	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/I18nManager.java	(revision 38474)
@@ -0,0 +1,231 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ * 
+ * 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.
+ * 
+ * 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.
+ * 
+ * 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., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ */
+
+/*
+ * AUTHORS (In addition to CIT):
+ * 2008 {DiSiD Technologies}  {New extension for installation and update of text translations}
+ */
+package org.gvsig.i18n;
+
+import java.io.File;
+import java.util.Locale;
+
+/**
+ * Management of I18n and Locale related activities.
+ * 
+ * @author <a href="mailto:dcervera@disid.com">David Cervera</a>
+ * @author <a href="mailto:cordin@disid.com">C�sar Ordi�ana</a>
+ */
+public interface I18nManager {
+
+    public static final Locale SPANISH = new Locale("es");
+
+    public static final Locale ENGLISH = new Locale("en");
+
+    /**
+     * Returns the display name of a locale language.
+     * 
+     * @param locale
+     *            to get the language display name
+     * @param displayLocale
+     *            the locale to display the name
+     * @return the locale language display name
+     */
+    String getLanguageDisplayName(Locale locale, Locale displayLocale);
+
+    /**
+     * Returns the display name of a locale language.
+     * 
+     * @param locale
+     *            to get the language display name
+     * @return the locale language display name
+     */
+    String getLanguageDisplayName(Locale locale);
+
+    /**
+     * Returns the display name of a locale in the given locale to be displayed.
+     * 
+     * @param locale
+     *            to get the display name
+     * @param displayLocale
+     *            the locale to display the name
+     * @return the locale display name
+     */
+    String getDisplayName(Locale locale, Locale displayLocale);
+
+    /**
+     * Returns the display name of a locale.
+     * 
+     * @param locale
+     *            to get the display name
+     * @return the locale display name
+     */
+    String getDisplayName(Locale locale);
+
+    /**
+     * Returns the current locale.
+     * 
+     * @return the current locale
+     */
+    Locale getCurrentLocale();
+
+    /**
+     * Sets the current application locale.
+     * 
+     * @param locale
+     *            the current application locale
+     */
+    void setCurrentLocale(Locale locale);
+    
+    /**
+     * Returns the application host system default locale.
+     * 
+     * @return the default system locale
+     */
+    Locale getDefaultSystemLocale();
+
+    /**
+     * Returns the list of locales supported by the current gvSIG installation.
+     * 
+     * @return the list of locales supported
+     */
+    Locale[] getInstalledLocales();
+
+    /**
+     * Installs or a new locale (or a list) and its translation, or updates an
+     * already existing one.
+     * 
+     * @param importFile
+     *            the jar or zip file which contains the locales and the
+     *            translations as resource bundle files
+     * @return the list of installed or updated locales
+     * @throws I18nException
+     *             if the locales could'n be installed
+     */
+    Locale[] installLocales(File importFile) throws I18nException;
+
+    /**
+     * Uninstalls a locale and its translation.
+     * 
+     * @param locale
+     *            to uninstall
+     * @throws I18nException
+     *             if the locale can't be uninstalled
+     */
+    void uninstallLocale(Locale locale) throws I18nException;
+
+    /**
+     * Exports the translations of a locale to update or complete its
+     * translation, into a jar file. Into the file is also included the
+     * translations of another existing locale to be used as reference for
+     * updating the locale.
+     * 
+     * @param locale
+     *            the locale to update or complete
+     * @param referenceLocale
+     *            the locale to be used as reference
+     * @param exportFile
+     *            the jar file to export to
+     * @throws I18nException
+     *             if the locale could not be exported for update
+     */
+    void exportLocaleForUpdate(Locale locale, Locale referenceLocale,
+	    File exportFile) throws I18nException;
+
+    /**
+     * Exports the translations of a list of locales to update or complete its
+     * translation, into a jar file. Into the file is also included the
+     * translations of another existing locale to be used as reference for
+     * updating the locale.
+     * 
+     * @param locales
+     *            the locales to update or complete
+     * @param referenceLocale
+     *            the locale to be used as reference
+     * @param exportFile
+     *            the jar file to export to
+     * @throws I18nException
+     *             if the locale could not be exported for update
+     */
+    void exportLocalesForUpdate(Locale[] locales, Locale referenceLocale,
+	    File exportFile) throws I18nException;
+
+    /**
+     * Exports the keys of text to translate to a new locale to a jar file. Into
+     * the file is also included the translations of another existing locale to
+     * be used as reference for translating to the new locale.
+     * 
+     * @param locale
+     *            the new locale to translate to
+     * @param referenceLocale
+     *            the locale to be used as reference
+     * @param exportFile
+     *            the jar file to export to
+     * @throws I18nException
+     *             if the locale could not be exported for translation
+     */
+    void exportLocaleForTranslation(Locale locale, Locale referenceLocale,
+	    File exportFile) throws I18nException;
+
+    /**
+     * Exports the keys of text to translate to a new locale to a jar file. Into
+     * the file is also included the translations of another existing locales to
+     * be used as reference for translating to the new locale.
+     * 
+     * @param locale
+     *            the new locale to translate to
+     * @param referenceLocales
+     *            the locales to be used as reference
+     * @param exportFile
+     *            the jar file to export to
+     * @throws I18nException
+     *             if the locale could not be exported for translation
+     */
+    void exportLocaleForTranslation(Locale locale, Locale[] referenceLocales,
+	    File exportFile) throws I18nException;
+
+    /**
+     * Returns the list of default locales to use as reference when exporting to
+     * translate a new locale, or update or complete an existing one.
+     * 
+     * @return the list of default locales to export
+     */
+    Locale[] getReferenceLocales();
+
+    /**
+     * Sets the list of default locales to export.
+     * 
+     * @param referenceLocales
+     *            the list of default locales to export
+     */
+    void setReferenceLocales(Locale[] referenceLocales);
+
+    /**
+     * Sets the list of default locales bundled with gvSIG. That list of locales
+     * will be used as the list of installed ones when gvSIG is run for the
+     * first time with the I18n extension. The following times, that list will
+     * be taken form the extension configuration in the plugins persistence.
+     * 
+     * @param defaultLocales
+     */
+    void setDefaultLocales(Locale[] defaultLocales);
+}
\ No newline at end of file
Index: tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/extension/I18nExtension.java
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/extension/I18nExtension.java	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/extension/I18nExtension.java	(revision 38474)
@@ -0,0 +1,84 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ * 
+ * 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.
+ * 
+ * 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.
+ * 
+ * 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., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ */
+
+/*
+ * AUTHORS (In addition to CIT):
+ * 2008 {DiSiD Technologies}  {New extension for installation and update of text translations}
+ */
+package org.gvsig.i18n.extension;
+
+import org.gvsig.about.AboutManager;
+import org.gvsig.about.AboutParticipant;
+import org.gvsig.andami.plugins.Extension;
+import org.gvsig.app.ApplicationLocator;
+import org.gvsig.app.ApplicationManager;
+import org.gvsig.i18n.extension.preferences.I18nPreferencePage;
+import org.gvsig.tools.ToolsLocator;
+
+
+/**
+ * Texts localization management extension.
+ * 
+ * @author <a href="mailto:dcervera@disid.com">David Cervera</a>
+ */
+public class I18nExtension extends Extension {
+
+    public void execute(String actionCommand) {
+        // Nothing to do
+    }
+
+    public void initialize() {
+        // Replace the default locale Preferences page for the new one
+        ToolsLocator.getExtensionPointManager()
+                .add("AplicationPreferences", "").append("LanguagePage", "",
+                        new I18nPreferencePage());
+    }
+
+    public void postInitialize() {
+        // Register the about panel
+		ApplicationManager application = ApplicationLocator.getManager();
+		
+		AboutManager about = application.getAbout();
+
+		about.addDeveloper(
+				"DISID",
+				this.getClass().getClassLoader().getResource("disid.html"),
+				1
+		);
+		
+		AboutParticipant participant = about.getDeveloper("DISID");
+		participant.addContribution(
+			"I18nExtension",
+			"gvSIG translations management extension", 
+			2009,1,1, 
+			2009,12,31
+		);   	
+    }
+
+    public boolean isEnabled() {
+        return true;
+    }
+
+    public boolean isVisible() {
+        return true;
+    }
+}
\ No newline at end of file
Index: tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/extension/preferences/table/RadioButtonCellEditor.java
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/extension/preferences/table/RadioButtonCellEditor.java	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/extension/preferences/table/RadioButtonCellEditor.java	(revision 38474)
@@ -0,0 +1,75 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ * 
+ * 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.
+ * 
+ * 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.
+ * 
+ * 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., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ */
+
+/*
+ * AUTHORS (In addition to CIT):
+ * 2008 {DiSiD Technologies}  {New extension for installation and update of text translations}
+ */
+package org.gvsig.i18n.extension.preferences.table;
+
+import java.awt.Component;
+import java.awt.event.*;
+
+import javax.swing.AbstractCellEditor;
+import javax.swing.JTable;
+import javax.swing.table.TableCellEditor;
+
+/**
+ * Allows to edit a cell content with a Radio button.
+ * 
+ * @author <a href="mailto:cordin@disid.com">C�sar Ordi�ana</a>
+ */
+public class RadioButtonCellEditor extends AbstractCellEditor implements
+	TableCellEditor, ItemListener {
+
+    private static final long serialVersionUID = 1000179477526963659L;
+
+    private RadioButtonCell delegate = new RadioButtonCell();
+
+    /**
+     * Constructor.
+     */
+    public RadioButtonCellEditor() {
+	delegate.getRadioButton().addItemListener(this);
+    }
+
+    public Object getCellEditorValue() {
+	return Boolean.valueOf(delegate.getRadioButton().isSelected());
+    }
+
+    public Component getTableCellEditorComponent(JTable table, Object value,
+	    boolean isSelected, int row, int column) {
+	return delegate.getTableCellComponent(table, value, isSelected,
+		isSelected, row, column);
+    }
+
+    public void actionPerformed(ActionEvent e) {
+	// Stop editing when the user clicks into the radio button,
+	// so other cells get its rendering updated
+	fireEditingStopped();
+    }
+
+    public void itemStateChanged(ItemEvent e) {
+	fireEditingStopped();
+    }
+
+}
\ No newline at end of file
Index: tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/extension/preferences/table/RadioButtonCellRenderer.java
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/extension/preferences/table/RadioButtonCellRenderer.java	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/extension/preferences/table/RadioButtonCellRenderer.java	(revision 38474)
@@ -0,0 +1,49 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ * 
+ * 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.
+ * 
+ * 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.
+ * 
+ * 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., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ */
+
+/*
+ * AUTHORS (In addition to CIT):
+ * 2008 {DiSiD Technologies}  {New extension for installation and update of text translations}
+ */
+package org.gvsig.i18n.extension.preferences.table;
+
+import java.awt.Component;
+
+import javax.swing.JTable;
+import javax.swing.table.TableCellRenderer;
+
+/**
+ * Renders a Radio button on a JTable cell.
+ * 
+ * @author <a href="mailto:cordin@disid.com">C�sar Ordi�ana</a>
+ */
+public class RadioButtonCellRenderer extends RadioButtonCell implements
+	TableCellRenderer {
+
+    private static final long serialVersionUID = 7085349383073216796L;
+
+    public Component getTableCellRendererComponent(JTable table, Object value,
+	    boolean isSelected, boolean hasFocus, int row, int column) {
+	return getTableCellComponent(table, value, isSelected, hasFocus, row,
+		column);
+    }
+}
Index: tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/extension/preferences/table/LocaleTableModel.java
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/extension/preferences/table/LocaleTableModel.java	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/extension/preferences/table/LocaleTableModel.java	(revision 38474)
@@ -0,0 +1,254 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ */
+
+/*
+ * AUTHORS (In addition to CIT):
+ * 2008 {DiSiD Technologies}  {New extension for installation and update of text translations}
+ */
+package org.gvsig.i18n.extension.preferences.table;
+
+import java.util.Locale;
+
+import javax.swing.table.AbstractTableModel;
+
+import org.gvsig.i18n.*;
+
+/**
+ * TableModel to show the list of available Locales in gvSIG.
+ *
+ * @author <a href="mailto:dcervera@disid.com">David Cervera</a>
+ */
+public class LocaleTableModel extends AbstractTableModel {
+
+    // Start from 0 to enable de locale column again
+    public static final int COLUMN_LOCALE = -1;
+
+    public static final int COLUMN_LANGUAGE = 0;
+
+    public static final int COLUMN_COUNTRY = 1;
+
+    public static final int COLUMN_VARIANT = 2;
+
+    public static final int COLUMN_ACTIVE = 3;
+
+    private static final long serialVersionUID = -3855372372788577788L;
+
+    private final I18nManager manager;
+
+    private Locale[] locales;
+
+    private int currentLocaleIndex;
+
+    private int originalLocaleIndex;
+
+    /**
+     * Creates a LocaleTableModel with a I18nManager to handle locales.
+     */
+    public LocaleTableModel(I18nManager manager) {
+	this.manager = manager;
+	loadLocales();
+    }
+
+    public int getColumnCount() {
+	return 4;
+    }
+
+    public int getRowCount() {
+	return locales.length;
+    }
+
+    public Object getValueAt(int rowIndex, int columnIndex) {
+	switch (columnIndex) {
+	case COLUMN_LOCALE:
+	    return locales[rowIndex];
+	case COLUMN_LANGUAGE:
+	    return manager.getLanguageDisplayName(locales[rowIndex]);
+	case COLUMN_COUNTRY:
+	    return locales[rowIndex].getDisplayCountry();
+	case COLUMN_VARIANT:
+	    return locales[rowIndex].getDisplayVariant();
+	case COLUMN_ACTIVE:
+	    return rowIndex == currentLocaleIndex ? Boolean.TRUE
+		    : Boolean.FALSE;
+	}
+	return null;
+    }
+
+    public String getColumnName(int columnIndex) {
+	switch (columnIndex) {
+	case COLUMN_LOCALE:
+	    return Messages.getText("I18nPreferencePage.Locale_code");
+	case COLUMN_LANGUAGE:
+	    return Messages.getText("I18nPreferencePage.Idioma");
+	case COLUMN_COUNTRY:
+	    return Messages.getText("I18nPreferencePage.Pais");
+	case COLUMN_VARIANT:
+	    return Messages.getText("I18nPreferencePage.Variante");
+	case COLUMN_ACTIVE:
+	    return Messages.getText("I18nPreferencePage.Activar");
+	}
+	return "";
+    }
+
+    public Class getColumnClass(int columnIndex) {
+	switch (columnIndex) {
+	case COLUMN_LOCALE:
+	case COLUMN_LANGUAGE:
+	case COLUMN_COUNTRY:
+	case COLUMN_VARIANT:
+	    return String.class;
+	case COLUMN_ACTIVE:
+	    return Boolean.class;
+	}
+	return Object.class;
+    }
+
+    public boolean isCellEditable(int rowIndex, int columnIndex) {
+	return columnIndex == 3;
+    }
+
+    public void setValueAt(Object value, int rowIndex, int columnIndex) {
+	// Only edit current locale value
+	if (columnIndex == COLUMN_ACTIVE && Boolean.TRUE.equals(value)) {
+	    setSelectedLocale(rowIndex, columnIndex);
+	}
+    }
+
+    /**
+     * Returns the {@link Locale} shown in a table row.
+     *
+     * @param rowIndex
+     *            the table row index
+     * @return the {@link Locale}
+     */
+    public Locale getLocale(int rowIndex) {
+    	return rowIndex >= 0 ? locales[rowIndex] : null;
+    }
+
+    /**
+     * Removes and uninstalls a locale.
+     *
+     * @param locale
+     *            to remove
+     * @throws I18nException
+     *             if there is an error removing a Locale
+     */
+    public void removeLocale(Locale locale) throws I18nException {
+	int rowIndex = getLocaleRowIndex(locale);
+	manager.uninstallLocale(locale);
+	loadLocales();
+	fireTableRowsDeleted(rowIndex, rowIndex);
+    }
+
+    /**
+     * Reloads the list of installed locales.
+     */
+    public void reloadLocales() {
+	loadLocales();
+	fireTableDataChanged();
+    }
+
+    public void saveSelectedLocale() {
+	manager.setCurrentLocale(getSelectedLocale());
+	originalLocaleIndex = currentLocaleIndex;
+    }
+
+    public void selectPreviousLocale() {
+	setSelectedLocale(originalLocaleIndex, COLUMN_ACTIVE);
+    }
+
+    /**
+     *
+     */
+    public void selectDefaultLocale() {
+	Locale defLocale = manager.getDefaultSystemLocale();
+	int pos = getLocaleRowIndex(defLocale);
+	// Maybe the locale has country and/or variant and is not registered
+	// (ex: en_US). Look for the locale with only the language (ex: en).
+	if (pos == -1) {
+	    defLocale = new Locale(defLocale.getLanguage());
+	    pos = getLocaleRowIndex(defLocale);
+	}
+	// If the locale could'nt be found, use English as default
+	if (pos == -1) {
+	    pos = getLocaleRowIndex(I18nManager.ENGLISH);
+	}
+	setSelectedLocale(pos, COLUMN_ACTIVE);
+    }
+
+    public boolean isValueChanged() {
+	return currentLocaleIndex != originalLocaleIndex;
+    }
+
+    public void setChangesApplied() {
+	originalLocaleIndex = currentLocaleIndex;
+    }
+
+    /**
+     * Sets the current selected locale.
+     */
+    public void setSelectedLocale(Locale locale) {
+	int localeIndex = getLocaleRowIndex(locale);
+	setSelectedLocale(localeIndex);
+    }
+
+    /**
+     * Returns the current selected locale.
+     */
+    public Locale getSelectedLocale() {
+	Locale selected = getLocale(currentLocaleIndex);
+	return selected == null ? manager.getCurrentLocale() : selected;
+    }
+
+    private void setSelectedLocale(int rowIndex) {
+	setSelectedLocale(rowIndex, 0);
+    }
+
+    private void setSelectedLocale(int rowIndex, int columnIndex) {
+	int oldCurrentLocaleIndex = currentLocaleIndex;
+	currentLocaleIndex = rowIndex;
+	fireTableCellUpdated(oldCurrentLocaleIndex, columnIndex);
+	fireTableCellUpdated(rowIndex, columnIndex);
+    }
+
+    /**
+     * Loads the locales from the I18nManager.
+     */
+    private void loadLocales() {
+	locales = manager.getInstalledLocales();
+	Locale currentLocale = manager.getCurrentLocale();
+	currentLocaleIndex = getLocaleRowIndex(currentLocale);
+	originalLocaleIndex = currentLocaleIndex;
+    }
+
+    /**
+     * Returns the table row position for a Locale.
+     */
+    private int getLocaleRowIndex(Locale locale) {
+	for (int i = 0; i < locales.length; i++) {
+	    if (locale.equals(locales[i])) {
+		return i;
+	    }
+	}
+	return -1;
+    }
+}
\ No newline at end of file
Index: tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/extension/preferences/table/RadioButtonCell.java
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/extension/preferences/table/RadioButtonCell.java	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/extension/preferences/table/RadioButtonCell.java	(revision 38474)
@@ -0,0 +1,69 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ * 
+ * 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.
+ * 
+ * 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.
+ * 
+ * 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., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ */
+
+/*
+ * AUTHORS (In addition to CIT):
+ * 2008 {DiSiD Technologies}  {New extension for installation and update of text translations}
+ */
+package org.gvsig.i18n.extension.preferences.table;
+
+import java.awt.Component;
+
+import javax.swing.*;
+
+/**
+ * Renders a radio button on a table cell.
+ * 
+ * @author <a href="mailto:dcervera@disid.com">David Cervera</a>
+ */
+public class RadioButtonCell {
+
+    private JRadioButton radio = new JRadioButton();
+
+    /**
+     * Constructor.
+     */
+    public RadioButtonCell() {
+	radio.setHorizontalAlignment(SwingConstants.CENTER);
+    }
+
+    protected Component getTableCellComponent(JTable table, Object value,
+	    boolean isSelected, boolean hasFocus, int row, int column) {
+
+	if (isSelected) {
+	    radio.setForeground(table.getSelectionForeground());
+	    radio.setBackground(table.getSelectionBackground());
+	}
+	else {
+	    radio.setForeground(table.getForeground());
+	    radio.setBackground(table.getBackground());
+	}
+
+	radio.setSelected(Boolean.TRUE.equals(value));
+
+	return radio;
+    }
+
+    protected JRadioButton getRadioButton() {
+	return radio;
+    }
+}
\ No newline at end of file
Index: tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/extension/preferences/I18nPreferencePage.java
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/extension/preferences/I18nPreferencePage.java	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/extension/preferences/I18nPreferencePage.java	(revision 38474)
@@ -0,0 +1,654 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ * 
+ * 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.
+ * 
+ * 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.
+ * 
+ * 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., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ */
+
+/*
+ * AUTHORS (In addition to CIT):
+ * 2008 {DiSiD Technologies}  {New extension for installation and update of text translations}
+ */
+package org.gvsig.i18n.extension.preferences;
+
+import java.awt.Component;
+import java.awt.Dimension;
+import java.awt.Font;
+import java.awt.GridBagConstraints;
+import java.awt.GridBagLayout;
+import java.awt.Insets;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.io.File;
+import java.util.ArrayList;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Locale;
+import java.util.Set;
+
+import javax.swing.Box;
+import javax.swing.BoxLayout;
+import javax.swing.ImageIcon;
+import javax.swing.JFileChooser;
+import javax.swing.JLabel;
+import javax.swing.JOptionPane;
+import javax.swing.JPanel;
+import javax.swing.JScrollPane;
+import javax.swing.JTable;
+import javax.swing.JTextArea;
+import javax.swing.ListSelectionModel;
+import javax.swing.filechooser.FileFilter;
+import javax.swing.table.TableColumn;
+
+import org.gvsig.andami.preferences.AbstractPreferencePage;
+import org.gvsig.andami.preferences.StoreException;
+import org.gvsig.gui.beans.swing.JButton;
+import org.gvsig.i18n.I18nException;
+import org.gvsig.i18n.I18nManager;
+import org.gvsig.i18n.Messages;
+import org.gvsig.i18n.extension.preferences.table.LocaleTableModel;
+import org.gvsig.i18n.extension.preferences.table.RadioButtonCellEditor;
+import org.gvsig.i18n.extension.preferences.table.RadioButtonCellRenderer;
+import org.gvsig.i18n.impl.I18nManagerImpl;
+
+
+/**
+ * Prefence page to manage gvSIG locales.
+ * 
+ * @author <a href="mailto:dcervera@disid.com">David Cervera</a>
+ */
+public class I18nPreferencePage extends AbstractPreferencePage implements
+	ActionListener {
+
+    private static final long serialVersionUID = 7164183052397200888L;
+
+    private static final String COMMAND_UNINSTALL = "UNINSTALL";
+
+    private static final String COMMAND_EXPORT = "EXPORT";
+
+    private static final String COMMAND_EXPORT_NEW = "EXPORT_NEW";
+
+    private static final String COMMAND_INSTALL = "INSTALL";
+
+    private static final String EXPORT_JAR_FILE_EXTENSION = ".jar";
+
+    private static final String EXPORT_ZIP_FILE_EXTENSION = ".zip";
+
+    private ImageIcon icon;
+
+    private I18nManager manager = I18nManagerImpl.getInstance();
+
+    private JTable localesTable;
+
+    private LocaleTableModel tableModel;
+
+    private JFileChooser fileChooser;
+
+    /**
+     * Creates a new I18n preferences page.
+     */
+    public I18nPreferencePage() {
+		setParentID("org.gvsig.coreplugin.preferences.general.GeneralPage");
+	icon = new ImageIcon(this.getClass().getClassLoader().getResource(
+		"images/babel.png"));
+
+	setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
+
+	add(getLocalesPanel());
+	add(Box.createRigidArea(new Dimension(0, 5)));
+	add(getActiveLocaleLabel());
+	add(Box.createRigidArea(new Dimension(0, 5)));
+	add(getButtonsPanel());
+	add(Box.createRigidArea(new Dimension(0, 5)));
+	add(getCollaborationLabel());
+    }
+
+    public String getID() {
+		return getClass().getName();
+    }
+
+    public String getTitle() {
+	return Messages.getText("idioma");
+    }
+
+    public ImageIcon getIcon() {
+	return icon;
+    }
+
+    public JPanel getPanel() {
+	return this;
+    }
+
+    public void setChangesApplied() {
+	tableModel.setChangesApplied();
+    }
+
+    public boolean isValueChanged() {
+	return tableModel.isValueChanged();
+    }
+
+    public void storeValues() throws StoreException {
+	tableModel.saveSelectedLocale();
+    }
+
+    public void initializeDefaults() {
+	tableModel.selectDefaultLocale();
+    }
+
+    public void initializeValues() {
+	tableModel.selectPreviousLocale();
+    }
+
+    public void actionPerformed(ActionEvent event) {
+	if (COMMAND_INSTALL.equals(event.getActionCommand())) {
+	    installLocale();
+	}
+	else if (COMMAND_EXPORT.equals(event.getActionCommand())) {
+	    exportLocaleForUpdate();
+	}
+	else if (COMMAND_EXPORT_NEW.equals(event.getActionCommand())) {
+	    exportLocaleForTranslation();
+	}
+	else if (COMMAND_UNINSTALL.equals(event.getActionCommand())) {
+	    uninstallSelectedLocale();
+	}
+    }
+
+    /**
+     * Installs a new Locale translation or updates an already existing one.
+     */
+    private void installLocale() {
+	JFileChooser fileChooser = getJarFileChooser();
+
+	int returnVal = fileChooser.showOpenDialog(this);
+
+	if (returnVal == JFileChooser.APPROVE_OPTION) {
+	    File importFile = fileChooser.getSelectedFile();
+	    try {
+		Locale[] installedLocales = manager.installLocales(importFile);
+		if (installedLocales == null || installedLocales.length == 0) {
+		    JOptionPane
+			    .showMessageDialog(
+				    this,
+				    Messages
+					    .getText("I18nPreferencePage.idiomas_no_encontrados_para_instalar"),
+				    Messages
+					    .getText("I18nPreferencePage.error_instalar_idiomas"),
+				    JOptionPane.ERROR_MESSAGE);
+		}
+		else {
+		    StringBuffer msg = new StringBuffer(Messages
+			    .getText("I18nPreferencePage.idiomas_instalados"));
+
+		    for (int i = 0; i < installedLocales.length; i++) {
+			msg.append(manager.getDisplayName(installedLocales[i]));
+			if (i < installedLocales.length - 1) {
+			    msg.append(", ");
+			}
+		    }
+		    tableModel.reloadLocales();
+		    JOptionPane
+			    .showMessageDialog(
+				    this,
+				    msg.toString(),
+				    Messages
+					    .getText("I18nPreferencePage.instalar_idiomas"),
+				    JOptionPane.INFORMATION_MESSAGE);
+		}
+	    } catch (I18nException ex) {
+		ex.showError();
+	    }
+	}
+    }
+
+    /**
+     * Updates the translation of a locale
+     */
+    private void exportLocaleForUpdate() {
+	Locale[] locales = getSelectedLocales();
+
+	if (locales == null) {
+	    JOptionPane.showMessageDialog(this, Messages
+		    .getText("I18nPreferencePage.seleccione_idioma"), Messages
+		    .getText("I18nPreferencePage.error_actualizar_idioma"),
+		    JOptionPane.ERROR_MESSAGE);
+	}
+	else {
+	    // Select the reference language
+	    LocaleItem[] items = getLocaleItemsForSelection(manager
+		    .getInstalledLocales(), locales);
+	    LocaleItem selected = null;
+	    if (items != null && items.length > 0) {
+		// Select by default the current locale, or the first one
+		// if the current locale is one of the ones to be updated
+		for (int i = 0; i < locales.length && selected == null; i++) {
+		    if (locales[i].equals(manager.getCurrentLocale())) {
+			selected = items[0];
+		    }
+		}
+		if (selected == null) {
+		    selected = new LocaleItem(manager.getCurrentLocale(),
+			    manager);
+		}
+		selected = (LocaleItem) JOptionPane
+			.showInputDialog(
+				this,
+				Messages
+					.getText("I18nPreferencePage.seleccione_idioma_referencia"),
+				Messages
+					.getText("I18nPreferencePage.exportar_idioma"),
+				JOptionPane.QUESTION_MESSAGE, null, items,
+				selected);
+
+		if (selected == null) {
+		    return;
+		}
+	    }
+	    // Select the file to export to
+	    JFileChooser fileChooser = getJarFileChooser();
+	    fileChooser.setSelectedFile(new File(
+		    getLocaleJarFileName(locales[0])));
+
+	    if (fileChooser.showSaveDialog(this) == JFileChooser.APPROVE_OPTION) {
+		File saveFile = fileChooser.getSelectedFile();
+		try {
+		    Locale fileNameLocale = selected == null ? manager
+			    .getCurrentLocale() : selected.getLocale();
+		    manager.exportLocalesForUpdate(locales, fileNameLocale,
+			    saveFile);
+		    
+		    JOptionPane
+			    .showMessageDialog(
+				    this,
+				    Messages
+					    .getText("I18nPreferencePage.exportado_textos_idioma")
+					    + " "
+					    + saveFile,
+				    Messages
+					    .getText("I18nPreferencePage.exportar_idioma"),
+				    JOptionPane.INFORMATION_MESSAGE);
+		} catch (I18nException ex) {
+		    ex.showError();
+		}
+	    }
+	}
+    }
+
+    /**
+     * Prepares a locale for translation.
+     */
+    private void exportLocaleForTranslation() {
+	// Get the selected locale as the ones for reference
+	Locale[] refLocales = getSelectedLocales();
+
+	if (refLocales == null) {
+	    JOptionPane
+		    .showMessageDialog(
+			    this,
+			    Messages
+				    .getText("I18nPreferencePage.seleccione_idioma_actualizar"),
+			    Messages
+				    .getText("I18nPreferencePage.error_actualizar_idioma"),
+			    JOptionPane.ERROR_MESSAGE);
+	}
+	else {
+
+	    // Select the locale to translate
+	    LocaleItem[] items = getLocaleItemsForSelection(Locale
+		    .getAvailableLocales(), manager.getInstalledLocales());
+	    LocaleItem selected = (LocaleItem) JOptionPane
+		    .showInputDialog(
+			    this,
+			    Messages
+				    .getText("I18nPreferencePage.seleccione_idioma_traducir"),
+			    Messages
+				    .getText("I18nPreferencePage.exportar_idioma"),
+			    JOptionPane.QUESTION_MESSAGE, null, items, items[0]);
+
+	    if (selected == null) {
+		return;
+	    }
+
+	    // Select the file to export to
+	    JFileChooser fileChooser = getJarFileChooser();
+	    fileChooser.setSelectedFile(new File(getLocaleJarFileName(selected
+		    .getLocale())));
+
+	    if (fileChooser.showSaveDialog(this) == JFileChooser.APPROVE_OPTION) {
+		File saveFile = fileChooser.getSelectedFile();
+		try {
+		    manager.exportLocaleForTranslation(selected.getLocale(),
+			    refLocales, saveFile);
+
+		    JOptionPane
+			    .showMessageDialog(
+				    this,
+				    Messages
+					    .getText("I18nPreferencePage.idioma_preparado_traducir")
+					    + manager.getDisplayName(selected
+						    .getLocale())
+					    + Messages
+						    .getText("I18nPreferencePage.en_archivo")
+					    + saveFile,
+				    Messages
+					    .getText("I18nPreferencePage.exportar_idioma"),
+				    JOptionPane.INFORMATION_MESSAGE);
+		} catch (I18nException ex) {
+		    ex.showError();
+		}
+	    }
+	}
+
+    }
+
+    private LocaleItem[] getLocaleItemsForSelection(Locale[] locales,
+	    Locale[] exceptions) {
+	List items = new ArrayList();
+	Set exceptionsSet = new HashSet(exceptions.length);
+	for (int i = 0; i < exceptions.length; i++) {
+	    exceptionsSet.add(exceptions[i]);
+	}
+
+	int j = 0;
+	for (int i = 0; i < locales.length; i++) {
+	    // Only add locales not included in the exceptions list
+	    if (!exceptionsSet.contains(locales[i])) {
+		items.add(new LocaleItem(locales[i], manager));
+		j++;
+	    }
+	}
+	return (LocaleItem[]) items.toArray(new LocaleItem[items.size()]);
+    }
+
+    /**
+     * Returns a name for the jar file to export a locale.
+     */
+    private String getLocaleJarFileName(Locale locale) {
+	return manager.getDisplayName(locale, I18nManager.ENGLISH).replace(' ',
+		'_').concat(EXPORT_ZIP_FILE_EXTENSION);
+    }
+
+    /**
+     * Creates a new JFileChooser to import or export a locale jar file.
+     */
+    private JFileChooser getJarFileChooser() {
+	if (fileChooser == null) {
+	    fileChooser = new JFileChooser();
+	    fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
+	    fileChooser.setMultiSelectionEnabled(false);
+	    fileChooser.setFileFilter(new FileFilter() {
+
+		public boolean accept(File file) {
+		    return (file.isDirectory()
+			    || file.getName().endsWith(
+				    EXPORT_JAR_FILE_EXTENSION) || file
+			    .getName().endsWith(EXPORT_ZIP_FILE_EXTENSION));
+		}
+
+		public String getDescription() {
+		    return Messages.getText("I18nPreferencePage.archivos_jar");
+		}
+
+	    });
+	}
+	return fileChooser;
+    }
+
+    /**
+     * Removes some installed locales from gvSIG.
+     */
+    private void uninstallSelectedLocale() {
+	Locale[] locales = getSelectedLocales();
+
+	if (locales == null) {
+	    JOptionPane
+		    .showMessageDialog(
+			    this,
+			    Messages
+				    .getText("I18nPreferencePage.seleccione_idioma_desinstalar"),
+			    Messages
+				    .getText("I18nPreferencePage.error_desinstalar_idioma"),
+			    JOptionPane.ERROR_MESSAGE);
+	    return;
+	}
+	
+	for (int i = 0; i < locales.length; i++) {
+
+	    if (locales[i].equals(manager.getCurrentLocale())) {
+		JOptionPane
+			.showMessageDialog(
+				this,
+				Messages
+					.getText("I18nPreferencePage.idioma_actual_no_puede_desinstalar"),
+				Messages
+					.getText("I18nPreferencePage.error_desinstalar_idioma"),
+				JOptionPane.ERROR_MESSAGE);
+	    } else {
+		int option = JOptionPane
+			.showConfirmDialog(
+				this,
+				Messages
+					.getText("I18nPreferencePage.seguro_desea_desinstalar_idioma")
+					+ " "
+					+ manager.getDisplayName(locales[i])
+					+ "?",
+				Messages
+					.getText("I18nPreferencePage.confirmar_desinstalar_idioma"),
+				JOptionPane.YES_NO_OPTION);
+		if (option == JOptionPane.YES_OPTION) {
+		    try {
+			tableModel.removeLocale(locales[i]);
+		    } catch (I18nException ex) {
+			ex.showError();
+		    }
+		}
+	    }
+	}
+    }
+
+    /**
+     * Returns the Locales selected in the table of available locales.
+     */
+    private Locale[] getSelectedLocales() {
+	int[] rowIndexes = localesTable.getSelectedRows();
+	if (rowIndexes != null && rowIndexes.length > 0) {
+	    Locale[] locales = new Locale[rowIndexes.length];
+	    for (int i = 0; i < locales.length; i++) {
+		locales[i] = tableModel.getLocale(rowIndexes[i]);
+	    }
+	    return locales;
+	}
+	else {
+	    return null;
+	}
+    }
+
+    /**
+     * Creates the Panel with the table of Locales.
+     */
+    private Component getLocalesPanel() {
+	tableModel = new LocaleTableModel(manager);
+	localesTable = new JTable(tableModel);
+
+	TableColumn activeColumn = localesTable.getColumnModel().getColumn(
+		LocaleTableModel.COLUMN_ACTIVE);
+	activeColumn.setCellEditor(new RadioButtonCellEditor());
+	activeColumn.setCellRenderer(new RadioButtonCellRenderer());
+
+	localesTable
+		.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
+	localesTable.getSelectionModel().setSelectionInterval(0, 0);
+	JScrollPane scrollPane = new JScrollPane(localesTable);
+
+	// Container panel
+	JPanel localesPanel = new JPanel();
+	localesPanel.setLayout(new BoxLayout(localesPanel, BoxLayout.Y_AXIS));
+	localesPanel.add(scrollPane);
+	localesPanel.setAlignmentX(CENTER_ALIGNMENT);
+	localesPanel.setPreferredSize(new Dimension(236, 230));
+	localesPanel.setMaximumSize(new Dimension(500, 230));
+
+	return localesPanel;
+    }
+
+    /**
+     * Creates the panel with the buttons to perform the related actions.
+     */
+    private Component getButtonsPanel() {
+	JPanel buttonPanel = new JPanel(new GridBagLayout());
+	GridBagConstraints constraints = new GridBagConstraints();
+	constraints.fill = GridBagConstraints.NONE;
+	constraints.anchor = GridBagConstraints.LINE_START;
+	Insets btInsets = new Insets(2, 0, 2, 4);
+	Insets lbInsets = new Insets(2, 2, 2, 0);
+
+	/* ROW 0 */
+	constraints.gridy = 0;
+
+	constraints.gridx = 0;
+	constraints.insets = btInsets;
+	JButton newLocaleButton = new JButton(Messages
+		.getText("I18nPreferencePage.Instalar"));
+	newLocaleButton.setActionCommand(COMMAND_INSTALL);
+	newLocaleButton.addActionListener(this);
+	newLocaleButton.setToolTipText(Messages
+		.getText("I18nPreferencePage.Instalar_idioma_tooltip"));
+	buttonPanel.add(newLocaleButton, constraints);
+
+	constraints.gridx = 1;
+	constraints.insets = lbInsets;
+	buttonPanel.add(new JLabel(Messages
+		.getText("I18nPreferencePage.Instalar_idioma_tooltip")),
+		constraints);
+
+	/* ROW 1 */
+	constraints.gridy = 1;
+
+	constraints.gridx = 0;
+	constraints.insets = btInsets;
+	JButton removeLocaleButton = new JButton(Messages
+		.getText("I18nPreferencePage.Desinstalar"));
+	removeLocaleButton.setActionCommand(COMMAND_UNINSTALL);
+	removeLocaleButton.addActionListener(this);
+	removeLocaleButton.setToolTipText(Messages
+		.getText("I18nPreferencePage.Desinstalar_idioma_tooltip"));
+	buttonPanel.add(removeLocaleButton, constraints);
+
+	constraints.gridx = 1;
+	constraints.insets = lbInsets;
+	buttonPanel.add(new JLabel(Messages
+		.getText("I18nPreferencePage.Desinstalar_idioma_tooltip")),
+		constraints);
+
+	/* ROW 2 */
+	constraints.gridy = 2;
+
+	constraints.gridx = 0;
+	constraints.insets = btInsets;
+	JButton exportLocaleButton = new JButton(Messages
+		.getText("I18nPreferencePage.exportar_actualizar"));
+	exportLocaleButton.setActionCommand(COMMAND_EXPORT);
+	exportLocaleButton.addActionListener(this);
+	exportLocaleButton.setToolTipText(Messages
+		.getText("I18nPreferencePage.exportar_actualizar_tooltip"));
+	buttonPanel.add(exportLocaleButton, constraints);
+
+	constraints.gridx = 1;
+	constraints.insets = lbInsets;
+	buttonPanel.add(new JLabel(Messages
+		.getText("I18nPreferencePage.exportar_actualizar_tooltip")),
+		constraints);
+
+	/* ROW 3 */
+	constraints.gridy = 3;
+
+	constraints.gridx = 0;
+	constraints.insets = btInsets;
+	JButton exportNewLocaleButton = new JButton(Messages
+		.getText("I18nPreferencePage.exportar_traducir"));
+	exportNewLocaleButton.setActionCommand(COMMAND_EXPORT_NEW);
+	exportNewLocaleButton.addActionListener(this);
+	exportNewLocaleButton.setToolTipText(Messages
+		.getText("I18nPreferencePage.exportar_traducir_tooltip"));
+	buttonPanel.add(exportNewLocaleButton, constraints);
+
+	constraints.gridx = 1;
+	constraints.insets = lbInsets;
+	buttonPanel.add(new JLabel(Messages
+		.getText("I18nPreferencePage.exportar_traducir_tooltip")),
+		constraints);
+
+	buttonPanel.setAlignmentX(CENTER_ALIGNMENT);
+	return buttonPanel;
+    }
+
+    /**
+     * Creates the JLabel to show information about the preference page.
+     */
+    private Component getActiveLocaleLabel() {
+	JTextArea textArea = new JTextArea(Messages
+		.getText("I18nPreferencePage.ayuda"));
+	textArea.setEditable(false);
+	textArea.setAutoscrolls(true);
+	textArea.setLineWrap(true);
+	textArea.setWrapStyleWord(true);
+	textArea.setFont(textArea.getFont().deriveFont(Font.BOLD));
+	return textArea;
+    }
+
+    /**
+     * Creates the JLabel to show information about gvSIG translation
+     * collaboration.
+     */
+    private Component getCollaborationLabel() {
+	JTextArea textArea = new JTextArea(Messages
+		.getText("I18nPreferencePage.colaboracion"));
+	textArea.setEditable(false);
+	textArea.setAutoscrolls(true);
+	textArea.setLineWrap(true);
+	textArea.setWrapStyleWord(true);
+	return textArea;
+    }
+
+    private class LocaleItem {
+	private final Locale locale;
+	private final I18nManager manager;
+
+	public LocaleItem(Locale locale, I18nManager manager) {
+	    this.locale = locale;
+	    this.manager = manager;
+	}
+
+	public Locale getLocale() {
+	    return locale;
+	}
+
+	public String toString() {
+	    return manager.getDisplayName(locale);
+	}
+
+	public boolean equals(Object obj) {
+	    if (obj == null || !(obj instanceof LocaleItem)) {
+		return false;
+	    }
+
+	    LocaleItem item = (LocaleItem) obj;
+	    return locale.equals(item.getLocale());
+	}
+    }
+}
\ No newline at end of file
Index: tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/I18nException.java
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/I18nException.java	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/I18nException.java	(revision 38474)
@@ -0,0 +1,86 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ * 
+ * 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.
+ * 
+ * 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.
+ * 
+ * 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., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ */
+
+/*
+ * AUTHORS (In addition to CIT):
+ * 2009 {DiSiD Technologies}  {New extension for installation and update of text translations}
+ */
+package org.gvsig.i18n;
+
+import org.gvsig.andami.messages.NotificationManager;
+
+/**
+ * Exception for errors of the I18nManager.
+ * 
+ * TODO: hacer que extienda BaseException cuando se pase a gvSIG trunk.
+ * 
+ * @author <a href="mailto:dcervera@disid.com">David Cervera</a>
+ */
+public class I18nException extends Exception {
+
+    private static final long serialVersionUID = 2877056472517898602L;
+    
+    private String key;
+
+    /**
+     * Creates a new exception with an error message.
+     * 
+     * @param message
+     *            the error message
+     * @param key
+     *            the i18n key to localize the exception message
+     */
+    public I18nException(String message, String key) {
+	super(message);
+	this.key = key;
+    }
+
+    /**
+     * Creates a new exception with an error message and a cause exception.
+     * 
+     * @param message
+     *            the error message
+     * @param key
+     *            the i18n key to localize the exception message
+     * @param cause
+     *            the error that caused the exception
+     */
+    public I18nException(String message, String key, Throwable cause) {
+	super(message, cause);
+	this.key = key;
+    }
+    
+    public String getLocalizedMessage() {
+	String msg = Messages.getText(key);
+	if (msg.equals(key)) {
+	    msg = getMessage();
+	}
+	return msg;
+    }
+
+    /**
+     * Show the exception error in through the NotificationManager.
+     */
+    public void showError() {
+	NotificationManager.addError(getLocalizedMessage(), this);
+    }
+}
\ No newline at end of file
Index: tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/impl/I18nManagerImpl.java
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/impl/I18nManagerImpl.java	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/impl/I18nManagerImpl.java	(revision 38474)
@@ -0,0 +1,851 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+ *
+ * Copyright (C) 2007-2008 Infrastructures and Transports Department
+ * of the Valencian Government (CIT)
+ * 
+ * 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.
+ * 
+ * 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.
+ * 
+ * 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., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ */
+
+/*
+ * AUTHORS (In addition to CIT):
+ * 2008 {DiSiD Technologies}  {New extension for installation and update of text translations}
+ */
+package org.gvsig.i18n.impl;
+
+import java.io.BufferedReader;
+import java.io.BufferedWriter;
+import java.io.File;
+import java.io.FileOutputStream;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.io.OutputStreamWriter;
+import java.io.PrintStream;
+import java.security.AccessController;
+import java.security.PrivilegedAction;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Locale;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.StringTokenizer;
+import java.util.zip.ZipEntry;
+import java.util.zip.ZipFile;
+import java.util.zip.ZipOutputStream;
+
+import org.gvsig.andami.Launcher;
+import org.gvsig.andami.PluginServices;
+import org.gvsig.andami.PluginsLocator;
+import org.gvsig.andami.config.generate.AndamiConfig;
+import org.gvsig.i18n.I18nException;
+import org.gvsig.i18n.I18nManager;
+import org.gvsig.i18n.Messages;
+import org.gvsig.utils.StringUtilities;
+import org.gvsig.utils.XMLEntity;
+
+/**
+ * Implementation of the I18nManager interface.
+ * 
+ * @author <a href="mailto:dcervera@disid.com">David Cervera</a>
+ * @author <a href="mailto:cordin@disid.com">C�sar Ordi�ana</a>
+ */
+public class I18nManagerImpl implements I18nManager {
+
+    private static final String INSTALLED_TRANSLATIONS_HOME_FOLDER = "i18n";
+
+    private static final String LOCALES_FILE_NAME = "locales.csv";
+
+	private static final String CSV_SEPARATOR = ",";
+
+	private static final String I18N_EXTENSION = "org.gvsig.i18n.extension";
+
+	private static final String VARIANT = "variant";
+
+	private static final String COUNTRY = "country";
+
+	private static final String LANGUAGE = "language";
+
+	private static final String REGISTERED_LOCALES_PERSISTENCE =
+			"RegisteredLocales";
+
+	private static final I18nManager DEFAULT = new I18nManagerImpl();
+
+	private Set registeredLocales;
+
+	/**
+	 * The list of default reference locales. The last one will be used to get
+	 * all the keys when translating to a new locale.
+	 */
+	private Locale[] referenceLocales = new Locale[] { ENGLISH, SPANISH };
+
+	private Locale[] defaultLocales = new Locale[] {
+	// Default supported locales
+			SPANISH, // Spanish
+			ENGLISH, // English
+			new Locale("en", "US"), // English US
+			new Locale("ca"), // Catalan
+			new Locale("gl"), // Galician
+			new Locale("eu"), // Basque
+			new Locale("de"), // German
+			new Locale("cs"), // Czech
+			new Locale("fr"), // French
+			new Locale("it"), // Italian
+			new Locale("pl"), // Polish
+			new Locale("pt"), // Portuguese
+			new Locale("pt", "BR"), // Portuguese Brazil
+			new Locale("ro"), // Romanian
+			new Locale("zh"), // Chinese
+			new Locale("ru"), // Russian
+			new Locale("el"), // Greek
+			new Locale("ro"), // Romanian
+			new Locale("pl"), // Polish
+			new Locale("tr"), // Turkish
+			new Locale("sr"), // Serbio
+			new Locale("sw") // Swahili
+			};
+
+	/**
+	 * Returns the unique instance of the I18nManager.
+	 * 
+	 * @return the unique instance
+	 */
+	public static I18nManager getInstance() {
+		return DEFAULT;
+	}
+
+	public static String capitalize(String text) {
+		// Convert the first letter to uppercase
+		String capitalLetter =
+				new String(new char[] { Character.toUpperCase(text.charAt(0)) });
+		return capitalLetter.concat(text.substring(1));
+	}
+
+	public Locale[] getInstalledLocales() {
+		if (registeredLocales == null) {
+
+			XMLEntity child = getRegisteredLocalesPersistence();
+
+			// If the list of registered locales is not already persisted,
+			// this should be the first time gvSIG is run with the I18nPlugin
+			// so we will take the list of default locales
+			if (child == null) {
+				Locale[] defaultLocales = getDefaultLocales();
+				registeredLocales = new HashSet(defaultLocales.length);
+				for (int i = 0; i < defaultLocales.length; i++) {
+					registeredLocales.add(defaultLocales[i]);
+				}
+				storeInstalledLocales();
+			} else {
+				XMLEntity localesEntity = getRegisteredLocalesPersistence();
+				registeredLocales =
+						new HashSet(localesEntity.getChildrenCount());
+				for (int i = 0; i < localesEntity.getChildrenCount(); i++) {
+					XMLEntity localeEntity = localesEntity.getChild(i);
+					String language = localeEntity.getStringProperty(LANGUAGE);
+					String country = localeEntity.getStringProperty(COUNTRY);
+					String variant = localeEntity.getStringProperty(VARIANT);
+					Locale locale = new Locale(language, country, variant);
+					registeredLocales.add(locale);
+				}
+			}
+		}
+
+		return (Locale[]) registeredLocales.toArray(new Locale[registeredLocales.size()]);
+	}
+
+	public void uninstallLocale(Locale locale) throws I18nException {
+		if (getCurrentLocale().equals(locale) || isReferenceLocale(locale)) {
+			throw new UninstallLocaleException(locale);
+		}
+
+		if (registeredLocales.remove(locale)) {
+			// Remove from the configured locale list
+			storeInstalledLocales();
+
+			// Remove the resource bundle file
+			File bundleFile =
+					new File(getResourcesFolder(), getResourceFileName(locale));
+
+			if (bundleFile.exists()) {
+				bundleFile.delete();
+			}
+		}
+	}
+
+	public String getDisplayName(Locale locale) {
+		return getDisplayName(locale, locale);
+	}
+
+	public String getDisplayName(Locale locale, Locale displayLocale) {
+		StringBuffer name =
+				new StringBuffer(getLanguageDisplayName(locale, displayLocale));
+
+		if (!isEmpty(locale.getCountry())) {
+			name.append(" - ");
+			name.append(locale.getDisplayCountry(displayLocale));
+		}
+
+		if (!isEmpty(locale.getVariant())) {
+			name.append(" - ");
+			name.append(locale.getDisplayVariant(displayLocale));
+		}
+
+		name.append(" (").append(locale.toString()).append(")");
+
+		return name.toString();
+	}
+
+	private boolean isEmpty(String text) {
+		return text == null || text.trim().length() == 0;
+	}
+
+	public String getLanguageDisplayName(Locale locale) {
+		return getLanguageDisplayName(locale, locale);
+	}
+
+	public String getLanguageDisplayName(Locale locale, Locale displayLocale) {
+
+		String displayName;
+
+		// Correction for the Basque language display name,
+		// show it in Basque, not in Spanish
+		if ("eu".equals(locale.getLanguage())
+				&& "vascuence".equals(locale.getDisplayLanguage())) {
+			displayName = "Euskera";
+		}
+		// Patch for Valencian/Catalan
+		else if ("ca".equals(locale.getLanguage())) {
+			// displayName = Messages.getText("__valenciano");
+			// if ("__valenciano".equals(displayName)) {
+			// displayName = Messages.getText("__catalan");
+			// }
+			displayName = "Valenci�";
+		} else {
+			displayName = locale.getDisplayLanguage(displayLocale);
+		}
+
+		return capitalize(displayName);
+	}
+
+	public Locale getCurrentLocale() {
+		return Locale.getDefault();
+	}
+
+	public Locale getDefaultSystemLocale() {
+		String language, region, country, variant;
+		language = getSystemProperty("user.language", "en");
+		// for compatibility, check for old user.region property
+		region = getSystemProperty("user.region", null);
+
+		if (region != null) {
+			// region can be of form country, country_variant, or _variant
+			int i = region.indexOf('_');
+			if (i >= 0) {
+				country = region.substring(0, i);
+				variant = region.substring(i + 1);
+			} else {
+				country = region;
+				variant = "";
+			}
+		} else {
+			country = getSystemProperty("user.country", "");
+			variant = getSystemProperty("user.variant", "");
+		}
+		return new Locale(language, country, variant);
+	}
+
+	public void setCurrentLocale(Locale locale) {
+		AndamiConfig config = Launcher.getAndamiConfig();
+		config.setLocaleLanguage(locale.getLanguage());
+		config.setLocaleCountry(locale.getCountry());
+		config.setLocaleVariant(locale.getVariant());
+	}
+
+	public Locale[] installLocales(File importFile) throws I18nException {
+		List importLocales = new ArrayList();
+
+		try {
+			ZipFile zipFile = new ZipFile(importFile);
+
+			Map locales = getZipFileNonReferenceLocales(zipFile);
+
+			if (locales == null || locales.size() == 0) {
+				return null;
+			}
+
+			for (Iterator iterator = locales.entrySet().iterator(); iterator.hasNext();) {
+				Entry entry = (Entry) iterator.next();
+
+				String fileName = (String) entry.getKey();
+				Locale locale = (Locale) entry.getValue();
+				importLocales.add(locale);
+
+				// Add the locale to the list of installed ones, if it
+				// is new, otherwise, update the texts.
+				if (!registeredLocales.contains(locale)) {
+					registeredLocales.add(locale);
+					storeInstalledLocales();
+				}
+
+				// Replace the old bundle with the new one
+				ZipEntry zipEntry = zipFile.getEntry(fileName);
+				InputStream is = zipFile.getInputStream(zipEntry);
+				BufferedReader reader =
+						new BufferedReader(new InputStreamReader(is));
+
+				File bundleFile = getResourceFile(locale);
+				FileWriter fileWriter = new FileWriter(bundleFile);
+				BufferedWriter writer = new BufferedWriter(fileWriter);
+
+				String line;
+				while ((line = reader.readLine()) != null) {
+					writer.write(line);
+					writer.write('\n');
+				}
+				writer.flush();
+				writer.close();
+				fileWriter.close();
+				reader.close();
+				is.close();
+			}
+
+		} catch (Exception ex) {
+			throw new InstallLocalesException(importFile, ex);
+		}
+
+		return (Locale[]) importLocales.toArray(new Locale[importLocales.size()]);
+	}
+
+	public void exportLocaleForUpdate(Locale locale, Locale referenceLocale,
+			File exportFile) throws I18nException {
+
+		exportLocalesForUpdate(new Locale[] { locale }, referenceLocale,
+				exportFile);
+	}
+
+	public void exportLocalesForUpdate(Locale[] locales,
+			Locale referenceLocale, File exportFile) throws I18nException {
+
+		exportLocale(locales, new Locale[] { referenceLocale }, exportFile,
+				true);
+	}
+
+	public void exportLocaleForTranslation(Locale locale,
+			Locale referenceLocale, File exportFile) throws I18nException {
+
+		exportLocaleForTranslation(locale, new Locale[] { referenceLocale },
+				exportFile);
+	}
+
+	public void exportLocaleForTranslation(Locale locale,
+			Locale[] referenceLocales, File exportFile) throws I18nException {
+
+		exportLocale(new Locale[] { locale }, referenceLocales, exportFile,
+				false);
+	}
+
+	public Locale[] getReferenceLocales() {
+		return referenceLocales;
+	}
+
+	public void setReferenceLocales(Locale[] referenceLocales) {
+		this.referenceLocales = referenceLocales;
+	}
+
+	public void setDefaultLocales(Locale[] defaultLocales) {
+		this.defaultLocales = defaultLocales;
+	}
+
+	private void exportLocale(Locale[] locales, Locale[] referenceLocales,
+			File exportFile, boolean update) throws I18nException {
+
+		Locale[] refArray =
+				getReferenceLocalesToExport(locales, referenceLocales);
+
+		Set allReferenceKeys = new HashSet();
+		Map referenceTexts = new HashMap(refArray.length);
+		for (int i = 0; i < refArray.length; i++) {
+			Map texts = getAllTexts(refArray[i]);
+			referenceTexts.put(refArray[i], texts);
+			allReferenceKeys.addAll(texts.keySet());
+		}
+
+		try {
+			FileOutputStream fos = new FileOutputStream(exportFile);
+			ZipOutputStream zipos = new ZipOutputStream(fos);
+
+			// Create the index file
+			writeZipFileLocales(zipos, locales, refArray);
+
+			PrintStream ps = new PrintStream(zipos);
+			Map texts = null;
+
+			if (update) {
+				// First, export the locales to update
+				if (locales != null) {
+					for (int i = 0; i < locales.length; i++) {
+						texts = getAllTexts(locales[i]);
+						addPendingKeys(texts, allReferenceKeys);
+						putResourceInZip(zipos, ps, texts,
+								getResourceFileName(locales[i]));
+					}
+				}
+			} else { // translate
+				// First, export the locales to translate, taking the keys from
+				// the reference locales, but without values
+				if (locales != null) {
+					for (int i = 0; i < locales.length; i++) {
+						putResourceInZip(zipos, ps, allReferenceKeys,
+								getResourceFileName(locales[i]));
+					}
+				}
+			}
+
+			// Next, export the reference locales
+			if (refArray != null) {
+				for (int i = 0; i < refArray.length; i++) {
+					texts = getAllTexts(refArray[i]);
+					putResourceInZip(zipos, ps, texts,
+							getResourceFileName(refArray[i]));
+				}
+			}
+
+			ps.flush();
+			ps.close();
+			zipos.close();
+			fos.close();
+		} catch (IOException ex) {
+			throw new ExportLocaleException(locales, ex);
+		}
+	}
+
+	/**
+	 * Adds the keys of the set to the map that aren't still contained in it
+	 * with a related empty String.
+	 * 
+	 * @param texts
+	 *            the map to complete with the keys
+	 * @param allReferenceKeys
+	 *            the complete key set
+	 */
+	private void addPendingKeys(Map texts, Set allReferenceKeys) {
+		for (Iterator iterator = allReferenceKeys.iterator(); iterator.hasNext();) {
+			Object key = (Object) iterator.next();
+			if (!texts.containsKey(key)) {
+				texts.put(key, "");
+			}
+		}
+	}
+
+	/**
+	 * Returns the list of reference locales to export, as the union of the
+	 * default reference locales list and the one selected as reference. The
+	 * locales to translate or update are extracted from the list.
+	 */
+	private Locale[] getReferenceLocalesToExport(Locale[] locales,
+			Locale[] referenceLocalesSelected) {
+		// The reference locales to export are the default ones plus the
+		// selected by the user.
+		Set exportRefLocales = new HashSet(referenceLocales.length);
+		for (int i = 0; i < referenceLocales.length; i++) {
+			exportRefLocales.add(referenceLocales[i]);
+		}
+		if (referenceLocalesSelected != null) {
+			for (int i = 0; i < referenceLocalesSelected.length; i++) {
+				exportRefLocales.add(referenceLocalesSelected[i]);
+			}
+		}
+		if (locales != null) {
+			for (int i = 0; i < locales.length; i++) {
+				exportRefLocales.remove(locales[i]);
+			}
+		}
+		Locale[] refArray =
+				(Locale[]) exportRefLocales.toArray(new Locale[exportRefLocales.size()]);
+		return refArray;
+	}
+
+	/**
+	 * Returns all the localized texts and its keys for a locale.
+	 */
+	private Map getAllTexts(Locale locale) {
+		return Messages.getAllTexts(locale);
+	}
+
+	private Map getZipFileNonReferenceLocales(ZipFile zipFile)
+			throws I18nException {
+		ZipEntry zipEntry = zipFile.getEntry(LOCALES_FILE_NAME);
+
+		if (zipEntry == null) {
+			return null;
+		}
+
+		Map locales;
+		try {
+			InputStream is = zipFile.getInputStream(zipEntry);
+			BufferedReader reader =
+					new BufferedReader(new InputStreamReader(is));
+
+			locales = new HashMap(2);
+			String line;
+			while ((line = reader.readLine()) != null) {
+				// The excepted format is:
+				// FILENAME,LANGUAGE,COUNTRY,VARIANT,IS_REFERENCE
+				StringTokenizer st =
+						new StringTokenizer(line, CSV_SEPARATOR, true);
+				// First: locale file name (required)
+				String fileName = st.nextToken();
+				if (CSV_SEPARATOR.equals(fileName)) {
+					throw new LocaleFileNameRequiredException(line);
+				} else {
+					// Read the next separator
+					st.nextToken();
+				}
+				// Second: the locale language (required)
+				String language = st.nextToken();
+				if (CSV_SEPARATOR.equals(language)) {
+					throw new LocaleLanguageRequiredException(line);
+				} else {
+					// Read the next separator
+					st.nextToken();
+				}
+				// Third: the country
+				String country = st.nextToken();
+				if (CSV_SEPARATOR.equals(country)) {
+					country = null;
+				} else {
+					// Read the next separator
+					st.nextToken();
+				}
+				// Fourth: the variant
+				String variant = st.nextToken();
+				if (CSV_SEPARATOR.equals(variant)) {
+					variant = null;
+				} else {
+					// Read the next separator
+					st.nextToken();
+				}
+				// Fifth: is a reference locale?
+				String refStr = st.nextToken();
+				if (CSV_SEPARATOR.equals(refStr)) {
+					refStr = null;
+				}
+
+				// Only add non reference locales
+				if (refStr != null && !"true".equals(refStr.toLowerCase())) {
+					// Variant only accepted if country defined
+					if (country == null) {
+						variant = null;
+					}
+					country = country == null ? "" : country;
+					variant = variant == null ? "" : variant;
+					Locale locale = new Locale(language, country, variant);
+
+					locales.put(fileName, locale);
+				}
+			}
+
+			reader.close();
+			is.close();
+		} catch (IOException ex) {
+			throw new ReadCSVLocalesFileException(ex);
+		}
+
+		return locales;
+	}
+
+	private void writeZipFileLocales(ZipOutputStream zos, Locale[] locales,
+			Locale[] referenceLocales) throws IOException {
+		ZipEntry zipEntry = new ZipEntry(LOCALES_FILE_NAME);
+
+		zos.putNextEntry(zipEntry);
+		BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(zos));
+
+		if (locales != null) {
+			for (int i = 0; i < locales.length; i++) {
+				writeLocaleEntry(locales[i], writer, false);
+			}
+		}
+		if (referenceLocales != null) {
+			for (int i = 0; i < referenceLocales.length; i++) {
+				writeLocaleEntry(referenceLocales[i], writer, true);
+			}
+		}
+
+		writer.flush();
+		zos.closeEntry();
+	}
+
+	/**
+	 * Writes the locale entry into a writer.
+	 * 
+	 * @param locale
+	 *            the locale to create the entry for
+	 * @param writer
+	 *            to write to
+	 * @param reference
+	 *            is it is a reference locale or not
+	 * @throws IOException
+	 *             if there is an error creating the locale entry
+	 */
+	private void writeLocaleEntry(Locale locale, BufferedWriter writer,
+			boolean reference) throws IOException {
+		String language = locale.getLanguage();
+		String country = locale.getCountry();
+		country = country == null ? "" : country;
+		String variant = locale.getVariant();
+		variant = variant == null ? "" : variant;
+
+		writer.write(getResourceFileName(locale));
+		writer.write(',');
+		writer.write(language);
+		writer.write(',');
+		writer.write(country);
+		writer.write(',');
+		writer.write(variant);
+		writer.write(',');
+		writer.write(Boolean.toString(reference));
+		writer.write('\n');
+	}
+
+	/**
+	 * Returns if a locale is one of the default reference ones.
+	 */
+	private boolean isReferenceLocale(Locale locale) {
+		for (int i = 0; i < referenceLocales.length; i++) {
+			if (referenceLocales[i].equals(locale)) {
+				return true;
+			}
+		}
+		return false;
+	}
+
+	/**
+	 * Puts a new resource file into a Jar file.
+	 */
+	private void putResourceInZip(ZipOutputStream zipos, PrintStream ps,
+			Map texts, String resourceFileName) throws IOException {
+		// Add ZIP entry for the resource bundle file
+		zipos.putNextEntry(new ZipEntry(resourceFileName));
+
+		for (Iterator iterator = texts.entrySet().iterator(); iterator.hasNext();) {
+			Entry entry = (Entry) iterator.next();
+			String keyEncoded = escape((String) entry.getKey(), true);
+			ps.print(keyEncoded);
+			ps.print("=");
+			String valueEncoded = escape((String) entry.getValue(), false);
+			ps.println(valueEncoded);
+		}
+
+		ps.flush();
+
+		// Close the ZIP entry, the file is complete
+		zipos.closeEntry();
+	}
+
+	/**
+	 * Puts a new resource file into a Jar file.
+	 */
+	private void putResourceInZip(ZipOutputStream zipos, PrintStream ps,
+			Set keys, String resourceFileName) throws IOException {
+		// Add ZIP entry for the resource bundle file
+		zipos.putNextEntry(new ZipEntry(resourceFileName));
+
+		for (Iterator iterator = keys.iterator(); iterator.hasNext();) {
+			String value = (String) iterator.next();
+			String keyEncoded = escape(value, true);
+			ps.print(keyEncoded);
+			ps.print("=");
+			ps.println();
+		}
+
+		ps.flush();
+
+		// Close the ZIP entry, the file is complete
+		zipos.closeEntry();
+	}
+
+	/**
+	 * Returns the file which contains the translations for a locale.
+	 */
+	private File getResourceFile(Locale locale) {
+		return new File(getResourcesFolder(), getResourceFileName(locale));
+	}
+
+	/**
+	 * Returns the name of the file which contains the translations for a
+	 * locale.
+	 */
+	private String getResourceFileName(Locale locale) {
+		StringBuffer fileName = new StringBuffer("text");
+
+		// Spanish without country is the default locale
+		if (!(isEmpty(locale.getCountry()) && "es".equals(locale.getLanguage()))) {
+			fileName.append('_').append(locale.getLanguage());
+		}
+
+		// Add the locale country
+		if (!isEmpty(locale.getCountry())) {
+			fileName.append('_').append(locale.getCountry());
+		}
+
+		// Add the locale variant
+		if (!isEmpty(locale.getVariant())) {
+			fileName.append('_').append(locale.getVariant());
+		}
+
+		fileName.append(".properties");
+		return fileName.toString();
+	}
+
+	/**
+	 * Returns the folder where to store the resource bundle files.
+	 */
+    private File getResourcesFolder() {
+        File i18nFolder =
+            new File(PluginsLocator.getManager().getApplicationHomeFolder(),
+                INSTALLED_TRANSLATIONS_HOME_FOLDER);
+        if (!i18nFolder.exists()) {
+            i18nFolder.mkdirs();
+        }
+        return i18nFolder;
+    }
+
+	/**
+	 * Returns the child XMLEntity with the RegisteredLocales.
+	 */
+	private XMLEntity getRegisteredLocalesPersistence() {
+		XMLEntity entity = getI18nPersistence();
+		XMLEntity child = null;
+		for (int i = entity.getChildrenCount() - 1; i >= 0; i--) {
+			XMLEntity tmpchild = entity.getChild(i);
+			if (tmpchild.getName().equals(REGISTERED_LOCALES_PERSISTENCE)) {
+				child = tmpchild;
+				break;
+			}
+		}
+		return child;
+	}
+
+	/**
+	 * Returns the I18n Plugin persistence.
+	 */
+	private XMLEntity getI18nPersistence() {
+		XMLEntity entity =
+				PluginServices.getPluginServices(I18N_EXTENSION)
+						.getPersistentXML();
+		return entity;
+	}
+
+	/**
+	 * Returns the list of default locales bundled with gvSIG.
+	 */
+	private Locale[] getDefaultLocales() {
+		return defaultLocales;
+	}
+
+	/**
+	 * Stores the list of installed locales into the plugin persistence.
+	 */
+	private void storeInstalledLocales() {
+		XMLEntity localesEntity = getRegisteredLocalesPersistence();
+
+		// Remove the previous list of registered languages
+		if (localesEntity != null) {
+			XMLEntity i18nPersistence = getI18nPersistence();
+			for (int i = i18nPersistence.getChildrenCount() - 1; i >= 0; i--) {
+				XMLEntity child = i18nPersistence.getChild(i);
+				if (child.getName().equals(REGISTERED_LOCALES_PERSISTENCE)) {
+					i18nPersistence.removeChild(i);
+					break;
+				}
+			}
+		}
+
+		// Create the new persistence for the registered languages
+		localesEntity = new XMLEntity();
+
+		localesEntity.setName(REGISTERED_LOCALES_PERSISTENCE);
+
+		for (Iterator iterator = registeredLocales.iterator(); iterator.hasNext();) {
+			Locale locale = (Locale) iterator.next();
+			XMLEntity localeEntity = new XMLEntity();
+			localeEntity.setName(locale.getDisplayName());
+			localeEntity.putProperty(LANGUAGE, locale.getLanguage());
+			localeEntity.putProperty(COUNTRY, locale.getCountry());
+			localeEntity.putProperty(VARIANT, locale.getVariant());
+
+			localesEntity.addChild(localeEntity);
+		}
+
+		getI18nPersistence().addChild(localesEntity);
+	}
+
+	private String escape(String value, boolean replaceBlanks) {
+		// First replace non printable characters
+		if (replaceBlanks) {
+			value = StringUtilities.replace(value, " ", "\\ ");
+		}
+		value = StringUtilities.replace(value, ":", "\\:");
+		value = StringUtilities.replace(value, "\n", "\\n");
+		value = StringUtilities.replace(value, "\t", "\\t");
+		value = StringUtilities.replace(value, "\b", "\\b");
+		value = StringUtilities.replace(value, "\f", "\\f");
+		value = StringUtilities.replace(value, "\r", "\\r");
+		// value = StringUtilities.replace(value, "\\", "\\\\");
+		// value = StringUtilities.replace(value, "\'", "\\\'");
+		// value = StringUtilities.replace(value, "\"", "\\\"");
+
+		// Next, encode in raw-unicode-escape
+		return toRawUnicodeEncoded(value);
+	}
+
+	private String toRawUnicodeEncoded(String value) {
+		StringBuffer sb = new StringBuffer();
+		for (int i = 0; i < value.length(); i++) {
+			char c = value.charAt(i);
+			if (c <= 0x80) {
+				sb.append(c);
+			} else {
+				sb.append("\\u");
+				String hexValue = Integer.toHexString((int) c);
+				// Append 0 if the hex value has less than 4 digits
+				for (int j = hexValue.length(); j < 4; j++) {
+					sb.append('0');
+				}
+				sb.append(hexValue);
+			}
+		}
+		return sb.toString();
+	}
+
+	@SuppressWarnings("unchecked")
+	private String getSystemProperty(final String property, String defaultValue) {
+		String value =
+				(String) AccessController.doPrivileged(new PrivilegedAction() {
+					public Object run() {
+						return System.getProperty(property);
+					}
+				});
+		return value == null ? defaultValue : value;
+	}
+}
\ No newline at end of file
Index: tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/impl/ExportLocaleException.java
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/impl/ExportLocaleException.java	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/impl/ExportLocaleException.java	(revision 38474)
@@ -0,0 +1,69 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+*
+* Copyright (C) 2007-2008 Infrastructures and Transports Department
+* of the Valencian Government (CIT)
+* 
+* 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.
+* 
+* 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.
+* 
+* 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., 51 Franklin Street, Fifth Floor, Boston, 
+* MA  02110-1301, USA.
+* 
+*/
+
+/*
+* AUTHORS (In addition to CIT):
+* 2009 {DiSiD Technologies}  {New extension for installation and update of text translations}
+*/
+package org.gvsig.i18n.impl;
+
+import java.util.Locale;
+
+import org.gvsig.i18n.I18nException;
+
+/**
+ * Exception for errors exporting a Locale for translation or update.
+ * 
+ * @author <a href="mailto:dcervera@disid.com">David Cervera</a>
+ */
+public class ExportLocaleException extends I18nException {
+
+    private static final long serialVersionUID = -1386427767068278421L;
+
+    private static final String MSG = "Unable to export the locales";
+
+    private static final String KEY = "_ExportLocaleException";
+    
+    private final Locale[] locales;
+
+    public ExportLocaleException(Locale[] locales) {
+	super(MSG, KEY);
+	this.locales = locales;
+    }
+
+    public ExportLocaleException(Locale[] locales, Throwable cause) {
+	super(MSG, KEY, cause);
+	this.locales = locales;
+    }
+ 
+    public String getLocalizedMessage() {
+	StringBuffer buffer = new StringBuffer();
+	if (locales != null) {
+	    int i = 0;
+	    for (; i < locales.length - 1; i++) {
+		buffer.append(locales[i]).append(',');
+	    }
+	    buffer.append(locales[i]);
+	}
+	return super.getLocalizedMessage() + ": " + buffer.toString();
+    }
+}
\ No newline at end of file
Index: tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/impl/LocaleFileNameRequiredException.java
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/impl/LocaleFileNameRequiredException.java	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/impl/LocaleFileNameRequiredException.java	(revision 38474)
@@ -0,0 +1,59 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+*
+* Copyright (C) 2007-2008 Infrastructures and Transports Department
+* of the Valencian Government (CIT)
+* 
+* 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.
+* 
+* 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.
+* 
+* 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., 51 Franklin Street, Fifth Floor, Boston, 
+* MA  02110-1301, USA.
+* 
+*/
+
+/*
+* AUTHORS (In addition to CIT):
+* 2009 {DiSiD Technologies}  {New extension for installation and update of text translations}
+*/
+package org.gvsig.i18n.impl;
+
+import org.gvsig.i18n.I18nException;
+
+/**
+ * Exception for errors installing a locale or locales from an import file.
+ * 
+ * @author <a href="mailto:dcervera@disid.com">David Cervera</a>
+ */
+public class LocaleFileNameRequiredException extends I18nException {
+
+    private static final long serialVersionUID = 8426119666919876086L;
+
+    private static final String MSG = "A line in the CSV file with the locales to install or update does not contain the file name";
+
+    private static final String KEY = "_LocaleFileNameRequiredException";
+    
+    private String line;
+
+    public LocaleFileNameRequiredException(String line) {
+	super(MSG, KEY);
+	this.line = line;
+    }
+
+    public LocaleFileNameRequiredException(String line, Throwable cause) {
+	super(MSG, KEY, cause);
+	this.line = line;
+    }
+ 
+    public String getLocalizedMessage() {
+	return super.getLocalizedMessage() + ": " + line;
+    }
+}
\ No newline at end of file
Index: tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/impl/LocaleLanguageRequiredException.java
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/impl/LocaleLanguageRequiredException.java	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/impl/LocaleLanguageRequiredException.java	(revision 38474)
@@ -0,0 +1,59 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+*
+* Copyright (C) 2007-2008 Infrastructures and Transports Department
+* of the Valencian Government (CIT)
+* 
+* 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.
+* 
+* 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.
+* 
+* 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., 51 Franklin Street, Fifth Floor, Boston, 
+* MA  02110-1301, USA.
+* 
+*/
+
+/*
+* AUTHORS (In addition to CIT):
+* 2009 {DiSiD Technologies}  {New extension for installation and update of text translations}
+*/
+package org.gvsig.i18n.impl;
+
+import org.gvsig.i18n.I18nException;
+
+/**
+ * Exception for errors installing a locale or locales from an import file.
+ * 
+ * @author <a href="mailto:dcervera@disid.com">David Cervera</a>
+ */
+public class LocaleLanguageRequiredException extends I18nException {
+
+    private static final long serialVersionUID = 8426119666919876086L;
+
+    private static final String MSG = "A line in the CSV file with the locales to install or update does not contain the locale language code";
+
+    private static final String KEY = "_LocaleLanguageRequiredException";
+    
+    private String line;
+
+    public LocaleLanguageRequiredException(String line) {
+	super(MSG, KEY);
+	this.line = line;
+    }
+
+    public LocaleLanguageRequiredException(String line, Throwable cause) {
+	super(MSG, KEY, cause);
+	this.line = line;
+    }
+ 
+    public String getLocalizedMessage() {
+	return super.getLocalizedMessage() + ": " + line;
+    }
+}
\ No newline at end of file
Index: tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/impl/InstallLocalesException.java
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/impl/InstallLocalesException.java	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/impl/InstallLocalesException.java	(revision 38474)
@@ -0,0 +1,61 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+*
+* Copyright (C) 2007-2008 Infrastructures and Transports Department
+* of the Valencian Government (CIT)
+* 
+* 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.
+* 
+* 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.
+* 
+* 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., 51 Franklin Street, Fifth Floor, Boston, 
+* MA  02110-1301, USA.
+* 
+*/
+
+/*
+* AUTHORS (In addition to CIT):
+* 2009 {DiSiD Technologies}  {New extension for installation and update of text translations}
+*/
+package org.gvsig.i18n.impl;
+
+import java.io.File;
+
+import org.gvsig.i18n.I18nException;
+
+/**
+ * Exception for errors installing a locale or locales from an import file.
+ * 
+ * @author <a href="mailto:dcervera@disid.com">David Cervera</a>
+ */
+public class InstallLocalesException extends I18nException {
+
+    private static final long serialVersionUID = 8426119666919876086L;
+
+    private static final String MSG = "Unable to install locales from the imported file ";
+
+    private static final String KEY = "_InstallLocalesException";
+    
+    private final File importFile;
+
+    public InstallLocalesException(File importFile) {
+	super(MSG, KEY);
+	this.importFile = importFile;
+    }
+
+    public InstallLocalesException(File importFile, Throwable cause) {
+	super(MSG, KEY, cause);
+	this.importFile = importFile;
+    }
+ 
+    public String getLocalizedMessage() {
+	return super.getLocalizedMessage() + ": " + importFile;
+    }
+}
\ No newline at end of file
Index: tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/impl/UninstallLocaleException.java
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/impl/UninstallLocaleException.java	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/impl/UninstallLocaleException.java	(revision 38474)
@@ -0,0 +1,67 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+*
+* Copyright (C) 2007-2008 Infrastructures and Transports Department
+* of the Valencian Government (CIT)
+* 
+* 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.
+* 
+* 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.
+* 
+* 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., 51 Franklin Street, Fifth Floor, Boston, 
+* MA  02110-1301, USA.
+* 
+*/
+
+/*
+* AUTHORS (In addition to CIT):
+* 2009 {DiSiD Technologies}  {New extension for installation and update of text translations}
+*/
+package org.gvsig.i18n.impl;
+
+import java.util.Locale;
+
+import org.gvsig.i18n.I18nException;
+
+/**
+ * Exception for errors uninstalling a {@link Locale}�
+ * 
+ * @author <a href="mailto:dcervera@disid.com">David Cervera</a>
+ */
+public class UninstallLocaleException extends I18nException {
+
+    private static final long serialVersionUID = -7147574247950810955L;
+
+    private static final String MSG = "The locale "
+	    + " is the current locale or a reference locale, "
+	    + "can't be unsintalled";
+
+    private static final String KEY = "_UninstallLocaleException";
+    
+    private final Locale locale;
+
+    /**
+     */
+    public UninstallLocaleException(Locale locale) {
+	super(MSG, KEY);
+	this.locale = locale;
+    }
+
+    /**
+     */
+    public UninstallLocaleException(Locale locale, Throwable cause) {
+	super(MSG, KEY, cause);
+	this.locale = locale;
+    }
+ 
+    public String getLocalizedMessage() {
+	return super.getLocalizedMessage() + ": " + locale;
+    }
+}
\ No newline at end of file
Index: tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/impl/ReadCSVLocalesFileException.java
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/impl/ReadCSVLocalesFileException.java	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org/gvsig/i18n/impl/ReadCSVLocalesFileException.java	(revision 38474)
@@ -0,0 +1,51 @@
+/* gvSIG. Geographic Information System of the Valencian Government
+*
+* Copyright (C) 2007-2008 Infrastructures and Transports Department
+* of the Valencian Government (CIT)
+* 
+* 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.
+* 
+* 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.
+* 
+* 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., 51 Franklin Street, Fifth Floor, Boston, 
+* MA  02110-1301, USA.
+* 
+*/
+
+/*
+* AUTHORS (In addition to CIT):
+* 2009 {DiSiD Technologies}  {New extension for installation and update of text translations}
+*/
+package org.gvsig.i18n.impl;
+
+import org.gvsig.i18n.I18nException;
+
+/**
+ * Exception for errors installing a locale or locales from an import file.
+ * 
+ * @author <a href="mailto:dcervera@disid.com">David Cervera</a>
+ */
+public class ReadCSVLocalesFileException extends I18nException {
+
+    private static final long serialVersionUID = 8426119666919876086L;
+
+    private static final String MSG = "Error while reading the CSV file with the locales to install or update";
+
+    private static final String KEY = "_ReadCSVLocalesFileException";
+    
+    public ReadCSVLocalesFileException() {
+	super(MSG, KEY);
+    }
+
+    public ReadCSVLocalesFileException(Throwable cause) {
+	super(MSG, KEY, cause);
+    }
+}
\ No newline at end of file

Property changes on: tags/v2_0_0_Build_2049/extensions/extI18n/src/main/java/org
___________________________________________________________________
Added: svn:mergeinfo

Index: tags/v2_0_0_Build_2049/extensions/extI18n/src/main/resources/locale/text.properties
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/src/main/resources/locale/text.properties	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/src/main/resources/locale/text.properties	(revision 38474)
@@ -0,0 +1,35 @@
+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> 
+I18nPreferencePage.error_instalar_idiomas=Error al instalar idiomas
+I18nPreferencePage.idiomas_instalados=Se han instalado o actualizado los idiomas: 
+I18nPreferencePage.instalar_idiomas=Instalar idiomas
+I18nPreferencePage.seleccione_idioma=Seleccione un idioma para actualizar
+I18nPreferencePage.error_actualizar_idioma=Error al actualizar un idioma
+I18nPreferencePage.seleccione_idioma_referencia=Seleccione un idioma para emplear como referencia
+I18nPreferencePage.exportar_idioma=Exportar un idioma
+I18nPreferencePage.exportado_textos_idioma=Se han exportado los textos de los idiomas seleccionados
+I18nPreferencePage.al_archivo=\ al archivo: 
+I18nPreferencePage.seleccione_idioma_actualizar=Seleccione un idioma para actualizar
+I18nPreferencePage.seleccione_idioma_traducir=Seleccione el idioma al que desea traducir
+I18nPreferencePage.idioma_preparado_traducir=Se ha preparado para traducir el idioma 
+I18nPreferencePage.en_archivo=\ en el archivo: 
+I18nPreferencePage.archivos_jar=Archivos .zip y .jar
+I18nPreferencePage.seleccione_idioma_desinstalar=Seleccione un idioma para desinstalar
+I18nPreferencePage.error_desinstalar_idioma=Error al desinstalar un idioma
+I18nPreferencePage.idioma_actual_no_puede_desinstalar=El idioma actual no puede ser desintalado
+I18nPreferencePage.seguro_desea_desinstalar_idioma=\u00BFEst\u00E1 seguro que desea desinstalar el idioma seleccionado:
+I18nPreferencePage.confirmar_desinstalar_idioma=Confirmar desinstalaci\u00F3n de idioma
+I18nPreferencePage.Instalar=Instalar
+I18nPreferencePage.Instalar_idioma_tooltip=Instalar un nuevo idioma o actualizar uno existente
+I18nPreferencePage.Desinstalar=Desinstalar
+I18nPreferencePage.Desinstalar_idioma_tooltip=Desinstalar un idioma de gvSIG
+I18nPreferencePage.exportar_actualizar=Actualizar
+I18nPreferencePage.exportar_actualizar_tooltip=Exportar el idioma seleccionado para completar o actualizar
+I18nPreferencePage.exportar_traducir=Traducir
+I18nPreferencePage.exportar_traducir_tooltip=Exportar el idioma seleccionado para traducir a un nuevo idioma
+I18nPreferencePage.ayuda=Si cambia el idioma activo, �ste no se visualizar� hasta que se reinicie la aplicaci�n
+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
+I18nPreferencePage.Locale_code=C�digo
+I18nPreferencePage.Idioma=Idioma
+I18nPreferencePage.Pais=Pa�s
+I18nPreferencePage.Variante=Variante
+I18nPreferencePage.Activar=Activar
Index: tags/v2_0_0_Build_2049/extensions/extI18n/src/main/resources/locale/text_en.properties
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/src/main/resources/locale/text_en.properties	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/src/main/resources/locale/text_en.properties	(revision 38474)
@@ -0,0 +1,35 @@
+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>
+I18nPreferencePage.error_instalar_idiomas=Error installing locales
+I18nPreferencePage.idiomas_instalados=Have been installed or updated the locales: 
+I18nPreferencePage.instalar_idiomas=Install locales
+I18nPreferencePage.seleccione_idioma=Select a locale to update
+I18nPreferencePage.error_actualizar_idioma=Error while updating a locale
+I18nPreferencePage.seleccione_idioma_referencia=Select a locale to use for reference
+I18nPreferencePage.exportar_idioma=Export a locale
+I18nPreferencePage.exportado_textos_idioma=The texts of the selected locales have been exported
+I18nPreferencePage.al_archivo=\ to the file: 
+I18nPreferencePage.seleccione_idioma_actualizar=Select a locale to update
+I18nPreferencePage.seleccione_idioma_traducir=Select the locale to translate to
+I18nPreferencePage.idioma_preparado_traducir=The locale has been prepared to be translated 
+I18nPreferencePage.en_archivo=\ in the file: 
+I18nPreferencePage.archivos_jar=.zip and .jar files
+I18nPreferencePage.seleccione_idioma_desinstalar=Select a locale to uninstall
+I18nPreferencePage.error_desinstalar_idioma=Error while uninstalling a locale
+I18nPreferencePage.idioma_actual_no_puede_desinstalar=The current locale can't be uninstalled
+I18nPreferencePage.seguro_desea_desinstalar_idioma=Are you sure you want to delete the selected locale:
+I18nPreferencePage.confirmar_desinstalar_idioma=Confirm de locale uninstall
+I18nPreferencePage.Instalar=Install
+I18nPreferencePage.Instalar_idioma_tooltip=Install a new locale or update an existing one
+I18nPreferencePage.Desinstalar=Uninstall
+I18nPreferencePage.Desinstalar_idioma_tooltip=Uninstall a gvSIG locale
+I18nPreferencePage.exportar_actualizar=Update
+I18nPreferencePage.exportar_actualizar_tooltip=Export the selected locale to complete or update it
+I18nPreferencePage.exportar_traducir=Translate
+I18nPreferencePage.exportar_traducir_tooltip=Export the selected locale to be translated to a new locale
+I18nPreferencePage.ayuda=If you change the active locale, it won't be used until the app is restarted
+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
+I18nPreferencePage.Locale_code=Locale code
+I18nPreferencePage.Idioma=Language
+I18nPreferencePage.Pais=Country
+I18nPreferencePage.Variante=Variant
+I18nPreferencePage.Activar=Active
Index: tags/v2_0_0_Build_2049/extensions/extI18n/src/main/resources/config/disid-logo.jpeg
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream

Property changes on: tags/v2_0_0_Build_2049/extensions/extI18n/src/main/resources/config/disid-logo.jpeg
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Index: tags/v2_0_0_Build_2049/extensions/extI18n/src/main/resources/config/disid.html
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/src/main/resources/config/disid.html	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/src/main/resources/config/disid.html	(revision 38474)
@@ -0,0 +1,27 @@
+<html>
+<body>
+
+<img src="disid-logo.jpeg"><br>
+
+<h2>DiSiD Technologies</h2>
+<br>
+<p>
+<a href="http://www.disid.com/">http://www.disid.com/</a>
+</p>
+<p>Empresa de ingenier&iacute;a inform&aacute;tica especializada en tecnolog&iacute;a Java.</p>
+<p>Nuestro objetivo es proveer soluciones software enfocadas a resolver problemas y necesidades con
+el objetivo de ofrecer s&oacute;lo lo que los clientes necesitan, evitando gestiones innecesarias.</p>
+<br>
+<p>Especializados en:
+<ul>
+<li>Sistemas de informaci&oacute;n geogr&aacute;fica (gvSIG)</li>
+<li>Reconocimiento y trazabilidad de personas y Activos con representaci&oacute;n gr&aacute;fica</li>
+<li>e-business y Tiendas virtuales</li>
+<li>Portales corporativos y Marketing on-line</li>
+<li>Consultor&iacute;a tecnol&oacute;gica, desarrollo, soporte y formaci&oacute;n Java</li>
+</ul>
+<br>
+<img src="logo_gvsig-asociacion.jpg">
+<p><em>Miembro de la <a href="http://www.gvsig.com/">Asociaci&oacute;n gvSIG</a></em>
+</body>
+</html>
Index: tags/v2_0_0_Build_2049/extensions/extI18n/src/main/resources/config/config.xml
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/src/main/resources/config/config.xml	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/src/main/resources/config/config.xml	(revision 38474)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<plugin-config>
+	<depends plugin-name="org.gvsig.app" />
+	<depends plugin-name="org.gvsig.coreplugin" />
+	<resourceBundle name="text" />
+	<libraries library-dir="lib" />
+	<extensions>
+		<extension class-name="org.gvsig.i18n.extension.I18nExtension"
+			description="Extensi�n de gesti�n de traducciones multiidioma" 
+			active="true" 
+			priority="1">
+		</extension>
+	</extensions>
+</plugin-config>
Index: tags/v2_0_0_Build_2049/extensions/extI18n/src/main/resources/config/logo_gvsig-asociacion.jpg
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream

Property changes on: tags/v2_0_0_Build_2049/extensions/extI18n/src/main/resources/config/logo_gvsig-asociacion.jpg
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Index: tags/v2_0_0_Build_2049/extensions/extI18n/src/main/resources/images/logo_horiz_bicolor_gva.png
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream

Property changes on: tags/v2_0_0_Build_2049/extensions/extI18n/src/main/resources/images/logo_horiz_bicolor_gva.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Index: tags/v2_0_0_Build_2049/extensions/extI18n/src/main/resources/images/babel.png
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream

Property changes on: tags/v2_0_0_Build_2049/extensions/extI18n/src/main/resources/images/babel.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Index: tags/v2_0_0_Build_2049/extensions/extI18n/src/main/resources/images/logo_DISID-technologies.jpg
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream

Property changes on: tags/v2_0_0_Build_2049/extensions/extI18n/src/main/resources/images/logo_DISID-technologies.jpg
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Index: tags/v2_0_0_Build_2049/extensions/extI18n/pom.xml
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/pom.xml	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/pom.xml	(revision 38474)
@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+                      http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+	<modelVersion>4.0.0</modelVersion>
+	<artifactId>org.gvsig.i18n.extension</artifactId>
+	<packaging>jar</packaging>
+	<version>2.0-SNAPSHOT</version>
+	<name>Internationalization support</name>
+	<description>gvSIG translations management extension</description>
+	<developers>
+		<developer>
+			<id>dcervera</id>
+			<name>David Cervera</name>
+			<email>dcervera@disid.com</email>
+			<roles>
+				<role>Developer</role>
+			</roles>
+		</developer>
+		<developer>
+			<id>cordinyana</id>
+			<name>Cèsar Ordiñana</name>
+			<email>cordin@disid.com</email>
+			<roles>
+				<role>Architect</role>
+				<role>Developer</role>
+			</roles>
+		</developer>
+	</developers>
+	<parent>
+		<groupId>org.gvsig</groupId>
+		<artifactId>gvsig-base-extension-pom</artifactId>
+		<version>2.0-SNAPSHOT</version>
+	</parent>
+	<properties>
+		<build-dir>${basedir}/../build</build-dir>
+        <eclipse.project.name>extI18n</eclipse.project.name>
+        <package.info.state>alpha6</package.info.state>
+        <package.info.categories>Internationalization</package.info.categories>
+	</properties>
+	<dependencies>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.app</artifactId>
+			<version>2.0-SNAPSHOT</version>
+            <scope>compile</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.i18n</artifactId>
+            <scope>compile</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.gvsig</groupId>
+			<artifactId>org.gvsig.about.api</artifactId>
+            <scope>compile</scope>
+		</dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.andami</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.tools.lib</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.utils</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.gvsig</groupId>
+            <artifactId>org.gvsig.ui</artifactId>
+            <scope>compile</scope>
+        </dependency>
+
+	</dependencies>
+	<build>
+		<resources>
+			<resource>
+				<directory>src/main/resources</directory>
+				<excludes>
+					<exclude>config/**</exclude>
+					<exclude>about/**</exclude>
+					<exclude>images/**</exclude>
+				</excludes>
+			</resource>
+		</resources>
+		<plugins>
+			<!-- TODO: MAKE TESTS WORK AND REMOVE THIS OPTION -->
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-surefire-plugin</artifactId>
+				<configuration>
+					<skipTests>true</skipTests>
+				</configuration>
+			</plugin>
+		</plugins>
+	</build>
+</project>
\ No newline at end of file
Index: tags/v2_0_0_Build_2049/extensions/extI18n/build.xml
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/build.xml	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/build.xml	(revision 38474)
@@ -0,0 +1,6 @@
+<project name="extI18n" default="mvn-install">
+	<property name="root.folder" location=".."
+			  description="Root folder of the gvSIG projects"/>
+	
+	<import file="${root.folder}/build/ant-tasks/maven-goals.xml"/>
+</project>
\ No newline at end of file
Index: tags/v2_0_0_Build_2049/extensions/extI18n/distribution/distribution.xml
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/distribution/distribution.xml	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/distribution/distribution.xml	(revision 38474)
@@ -0,0 +1,46 @@
+<assembly>
+	<id>distribution</id>
+	<formats>
+		<format>dir</format>
+	</formats>
+	<fileSets>
+		<!-- Extructure for the extension -->
+		<fileSet>
+			<directory>src/main/resources/config</directory>
+			<outputDirectory>${extension.install.dir.name}
+			</outputDirectory>
+		</fileSet>
+		<fileSet>
+			<directory>src/main/resources/locale</directory>
+			<outputDirectory>${extension.install.dir.name}
+			</outputDirectory>
+		</fileSet>
+		<fileSet>
+			<directory>src/main/resources/images</directory>
+			<outputDirectory>${extension.install.dir.name}/images
+			</outputDirectory>
+		</fileSet>
+		<fileSet>
+			<directory>src/main/resources/about</directory>
+			<outputDirectory>${extension.install.dir.name}
+			</outputDirectory>
+		</fileSet>
+	</fileSets>
+	<files>
+		<file>
+			<source>package.info</source>
+			<outputDirectory>${extension.install.dir.name}
+			</outputDirectory>
+		</file>
+	</files>
+
+	<dependencySets>
+		<dependencySet>
+			<outputDirectory>${extension.install.dir.name}/${library-dir}
+			</outputDirectory>
+			<includes>
+				<include>org.gvsig:org.gvsig.i18n.extension</include>
+			</includes>
+		</dependencySet>
+	</dependencySets>
+</assembly>
Index: tags/v2_0_0_Build_2049/extensions/extI18n/buildNumber.properties
===================================================================
--- tags/v2_0_0_Build_2049/extensions/extI18n/buildNumber.properties	(revision 0)
+++ tags/v2_0_0_Build_2049/extensions/extI18n/buildNumber.properties	(revision 38474)
@@ -0,0 +1,3 @@
+#maven.buildNumber.plugin properties file
+#Mon Jun 25 11:24:15 CEST 2012
+buildNumber=2050

Property changes on: tags/v2_0_0_Build_2049/extensions/extI18n
___________________________________________________________________
Added: svn:ignore
   + .classpath 
.project 
.settings 
maven-eclipse.xml
target
bin
hs_err_pid*
.externalToolBuilders
.settings
.classpath
.project
package.info


