[izpack-users] Tr : Localizing shortcuts
Loic
lbndev at yahoo.fr
Tue Apr 24 11:14:11 CEST 2007
Hello,
I'll answer my own question posted yesterday to the izPack-users lists, which is reproduced below.
As a matter of fact, I found out that the answer is "no, shortcuts aren't localizable". Which is a shame.
Since I badly need that, I went through the code from SVN and set up a patch, which you will find attached.
What it does is :
Search for a os-specific, language specific spec file (like Unix_shortcutSpec.xml_eng)If not found, search for a language specific (but OS-independent) spec (like shortcutSpec.xml_eng)If still not found, revert to the processing before the patch (OS-specific, and if not found, generic spec file)
Please review it and merge it into SVN if you like it.
I'd love to have a patched standalone-compiler.jar in izPack's next release.
Thank you,
Loïc
----- Message transféré ----
De : Loic <lbndev at yahoo.fr>
À : izpack-users at lists.berlios.de
Envoyé le : Lundi, 23 Avril 2007, 15h58mn 43s
Objet : Localizing shortcuts
Hello,
I am using ant and IzPack standalone compiler version 3.10.1
I have the following in my izPack XML install file :
<locale>
<langpack iso3="fra"/>
<langpack iso3="eng"/>
</locale>
<resources>
<res src="FRLicence.txt" id="LicencePanel.licence_fra"/>
<res src="ENGLicence.txt" id="LicencePanel.licence_eng"/>
<res src="FRInfo.txt" id="InfoPanel.info_fra" />
<res src="ENInfo.txt" id="InfoPanel.info_eng"
/>
<res src="packsLang.xml_fra" id="packsLang.xml_fra"/>
<res src="packsLang.xml_eng" id="packsLang.xml_eng"/>
<res src="shortcutSpec.xml" id="shortcutSpec.xml" os="windows"/>
<res src="unix_shortcutSpec.xml" id="Unix_shortcutSpec.xml" os="linux"/>
<res src="processpanelSpec-en.xml" id="ProcessPanel.Spec.xml_eng"/>
<res src="processpanelSpec-fr.xml" id="ProcessPanel.Spec.xml_fra"/>
</resources>
My problem is : I can't get IzPack to use an "english language shortcuts" file (my default files, as above, contain shortcuts descriptions and captions in french). I have tried adding these
:
<res src="shortcutSpec-en.xml" id="shortcutSpec.xml_eng" os="windows"/>
<res src="unix_shortcutSpec-en.xml" id="Unix_shortcutSpec.xml_eng" os="linux"/>
but it didn't seem to have any effect.
LicencePanel localization works.
InfoPanel localization works.
Packs localization works.
ProcessPanel localization works, too.
But shortcuts just don't. My shortcuts are still created with french captions, while everything else is in english.
Is it possible to localize shortcuts text, and if yes, how ?
Thanks,
Loïc
___________________________________________________________________________
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.
Téléchargez sur http://fr.messenger.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.berlios.de/pipermail/izpack-users/attachments/20070424/39c1a4d3/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: izPack-shortcutpanell-localize.patch
Type: application/octet-stream
Size: 1660 bytes
Desc: not available
Url : https://lists.berlios.de/pipermail/izpack-users/attachments/20070424/39c1a4d3/attachment.obj
More information about the izpack-users
mailing list