[izpack-users] Language dependant file installation?

Christophe ROCHEFOLLE CROCHEFO at metaware.tm.fr
Tue May 9 14:28:13 CEST 2006


Hello,

I have quite the same question but didn't find any answer.
Does someone have the issue ? If change need to be made, I think it's on
PackFile to add this feature, or can we use the 'Additionals' information ?

Thanks in advance,
Kriss

-----Message d'origine-----
De : Dominik S. Herwald [mailto:lists at dsh-elektronik.de] 
Envoyé : jeudi 13 avril 2006 17:14
À : izpack-users at berlios.de
Objet : [izpack-users] Language dependant file installation?

Hello!

I need to create a Multi-Language installer - so far I have no problems 
with
IzPack - great piece of Software!

There is only one thing that I miss:
An argument for a <file> element in the packs section of the install.xml 
file,
where I can specify the iso3 language code this file belongs to.
This file should only be installed if the user has chosen this language!

This could look like this:
<file src="aDocFileInEnglish.pdf" targetdir="$INSTALL_PATH"  lang="eng"/>
<file src="aDocFileInFrench.pdf" targetdir="$INSTALL_PATH"  lang="fra"/>
<file src="aDocFileInGerman.pdf" targetdir="$INSTALL_PATH"  lang="deu"/>
... and so on.

(e.g. lang="eng" should have a similar behaiviour as the "os" argument 
that only
installs a file if the user OS matches the "os" value,  you know - e.g. 
os="unix" )

The reason for this is that I have some files (documentation, a config 
file that
sets application language, ...) that are available in several languages 
and I want
ONLY those files in the language the user has selected to be copied to the
install directory...

I could add this feature myself - but I have no time to look through the
several thousand lines of code of IzPack first to see WHERE to add
such a modification ... so can anybody tell me if this is possible in 
any way
and where I could change the IzPack sources to achieve this?

(not _what_ to change excactly - I need just a basic idea of where I could
add an additional argument to the <file> element and how to achieve the
correct behaiviour of this ... )

Or is this possible with IzPack already? How?

Thanks,
Dominik


_______________________________________________
izpack-users mailing list
izpack-users at lists.berlios.de
http://lists.berlios.de/mailman/listinfo/izpack-users




More information about the izpack-users mailing list