[izpack-users] I18N packs

Bartz, Klaus Klaus.Bartz at coi.de
Wed Feb 7 14:57:43 CET 2007


Hi Newgro,
the IDs in packsLang.xml_<ISO3> reffers to
the id attribute of packs, not the name. Write e.g.
<packs>
	<pack name="program" id="program" preselected="yes" required="yes">
---------------------------^
		<description>Test 1</description>
		<fileset dir="." targetdir="$INSTALL_PATH" casesensitive="yes">
			<include name="icons/**" />
		</fileset>
	</pack>
...
and it should work.

See subchapter "Internationalization of the PacksPanel"
of the docu.

Cheers

Klaus

>-----Original Message-----
>From: izpack-users-bounces at lists.berlios.de
>[mailto:izpack-users-bounces at lists.berlios.de]On Behalf Of Per Newgro
>Sent: Wednesday, February 07, 2007 2:28 PM
>To: izpack-users at lists.berlios.de
>Subject: [izpack-users] I18N packs
>
>
>Hi *,
>
>i try to i18n my pack names and descriptions but it's not working. As 
>described in docu i created a packsLang.xml_deu and a packsLang.xml_eng
>
>I imported it into my installer.xml
>	<resources>
>		<res src="packsLang.xml_deu" id="packsLang.xml_deu" />
>		<res src="packsLang.xml_eng" id="packsLang.xml_eng" />
>	</resources>
>
>and added the content to the files
>
>packsLang.xml_deu
><?xml version="1.0" encoding="utf-8" standalone="yes" ?>
><!-- The German langpack -->
><langpack>
>    <str id="program" txt="Anwendung"/>
>    <str id="program.description" txt="Anwendung - Test 1"/>
>    <str id="mysql" txt="Skripte und Treiber"/>
>    <str id="mysql.description" txt="Skripte und Treiber zur 
>Nutzung einer 
>MySQL Datenbank"/>
>    <str id="jamon" txt="Optionale Werkzeuge"/>
>    <str id="jamon.description" txt="Werkzeug zur Performancemessung"/>
>    <str id="server" txt="Anwendungsserver"/>
>    <str id="server.description" txt="Der
 Anwendungsserver - 
>JBoss Application 
>Server GA 4.0.5"/>
></langpack> 
>
>packsLang.xml_eng
><?xml version="1.0" encoding="utf-8" standalone="yes" ?>
><!-- The english langpack -->
><langpack>
>    <str id="program" txt="Business solution"/>
>    <str id="program.description" txt="The business solution - 
>Test 1"/>
>    <str id="mysql" txt="Scripts and drivers"/>
>    <str id="mysql.description" txt="Scripts and drivers for 
>usage of a MySQL 
>database"/>
>    <str id="jamon" txt="Optional utilities"/>
>    <str id="jamon.description" txt="Performance messurement"/>
>    <str id="server" txt="Application server"/>
>    <str id="server.description" txt="Application server - 
>JBoss Application 
>Server GA 4.0.5"/>
></langpack>
>
>My packs are
><packs>
>	<pack name="program" preselected="yes" required="yes">
>		<description>Test 1</description>
>		<fileset dir="." targetdir="$INSTALL_PATH" 
>casesensitive="yes">
>			<include name="icons/**" />
>		</fileset>
>	</pack>
>	<pack name="mysql" preselected="yes" required="no" 
>depends="server">
>		<description>MySQL</description>
>		<fileset dir="." targetdir="$INSTALL_PATH" 
>casesensitive="yes">
>			<include 
>name="server/default/lib/mysql-connector-*.jar" />
>		</fileset>
>	</pack>
>	<pack name="jamon" preselected="yes" required="no" 
>depends="server">
>		<description>JaMon</description>
>		<fileset dir="." targetdir="$INSTALL_PATH" 
>casesensitive="yes">
>			<include 
>name="server/default/deploy/jamon.war" />
>		</fileset>
>	</pack>
>	<pack name="server" preselected="yes" required="no">
>		<description>JBoss</description>
>		<fileset dir="." targetdir="$INSTALL_PATH" 
>casesensitive="yes">
>			<include name="**" />
>		</fileset>
>	</pack>
></packs>
>
>Can someone tell me what im doing wrong here?
>
>Thanks
>Per
>_______________________________________________
>izpack-users mailing list
>izpack-users at lists.berlios.de
>https://lists.berlios.de/mailman/listinfo/izpack-users
>



More information about the izpack-users mailing list