[izpack-users] Problems with localizing shortcuts.

Christian-Josef Schrattenthaler christian-josef at schrattenthaler.com
Sun Jan 20 12:54:25 CET 2008


Hi Loïc!

 

I did it!

 

I used my Newsreader to search in the Mailinglist (news.gmane.org ->
gmane.comp.java.izpack.user), and there I found your posting from
24.04.2007/11:14. I changed the code of the actual trunk under src/lib,
package com.izforge.izpack.panels, file ShortcutPanel.java from:

 

*** Original ***

try

{

input = parent.getResource(TargetFactory.getCurrentOSPrefix() +
SPEC_FILE_NAME);

}

catch (ResourceNotFoundException rnfE)

{

input = parent.getResource(SPEC_FILE_NAME);

}

if (input == null)

****************

 

to

 

*** Changes ***

try

{

// Find os-&-language-specific spec

input = parent.getResource(TargetFactory.getCurrentOSPrefix() +
SPEC_FILE_NAME + "_" + idata.localeISO3);

}

catch (ResourceNotFoundException rnfe)

{

try

{

// Not found ? Try generic OS but language-specific

input = parent.getResource(SPEC_FILE_NAME + "_" + idata.localeISO3);

}

catch (ResourceNotFoundException rnfe2)

{

// Still not found ? Maybe generic language but OS-specific ?

try

{

input = parent.getResource(TargetFactory.getCurrentOSPrefix() +
SPEC_FILE_NAME);

}

catch (ResourceNotFoundException rnfe3)

{

// Can't find anything specific : falling back to default

input = parent.getResource(SPEC_FILE_NAME);

}

}

}

if (input == null)

****************

 

Than I did the Ant Build, changed the files in my IzPack installation, and
created a new installation of my testapplication. Now the shortcut system is
working well.

 

I don’t know how, but I think we have to tell this to the developers of
IzPack!?

 

Greetings & thanks,

Christian.

 

Von: izpack-users-bounces at lists.berlios.de
[mailto:izpack-users-bounces at lists.berlios.de] Im Auftrag von
Christian-Josef Schrattenthaler
Gesendet: Sonntag, 20. Jänner 2008 08:49
An: izpack-users at lists.berlios.de
Betreff: Re: [izpack-users] Problems with localizing shortcuts.

 

Hi Loïc!

 

At first: Thank you for your help!

 

I downloaded the newest trunk from the svn, and built it under eclipse over
ant as you described. After that I replaced the old IzPack Installation
files with the new files from my build.

 

Than I made a new installation form my testapplication. The same result as
before. The shurtcuts are always in english.

 

Any idea?

 

Greatings,

Christian.

 

Von: izpack-users-bounces at lists.berlios.de
[mailto:izpack-users-bounces at lists.berlios.de] Im Auftrag von Loïc
Gesendet: Samstag, 19. Jänner 2008 21:04
An: izpack-users at lists.berlios.de
Betreff: Re: [izpack-users] Problems with localizing shortcuts.

 

Open <sourcedir>/src/build.xml in Eclipse.
The Ant view will show up : use it to compile what you need (either the
installer => target "dist" and/or the standalone compiler for inclusion into
your own Ant buildfile => target "build.standalone-compiler"). 
Full instructions are in the comments at the beginning of build.xml

Christian-Josef Schrattenthaler a écrit : 

Hi Loïc!
 
No, I used the official version from the Website.
 
Now I downloaded the newest trunk (1990) over Subclipse as new project into
my eclipse.
 
Painful, but I don't know what to do now. I looked on the files, but there
are some files missing. For example the 'compile.jar'.
 
Please can you, or anybody else, tell me, how to create an installer for
this version, so that I can change my installed version, with the version of
the SVN?
 
Thnaks,
Christian.
 
-----Ursprüngliche Nachricht-----
Von: izpack-users-bounces at lists.berlios.de
[mailto:izpack-users-bounces at lists.berlios.de] Im Auftrag von Loïc
Gesendet: Samstag, 19. Jänner 2008 14:12
An: izpack-users at lists.berlios.de
Betreff: Re: [izpack-users] Problems with localizing shortcuts.
 
Christian-Josef Schrattenthaler a écrit :
  

Hi!
 
I want to localize my shortcuts, but it does not work.
 
I have the following entries in my install.xml
 
<res src="IzPack/shortcutSpec.xml" id="shortcutSpec.xml" />
<res src="IzPack/shortcutSpec_deu.xml" id="shortcutSpec.xml_deu" />
 
Both files have the same content, expect the one has englisch texts and
    

the
  

other has german texts.
 
If I do the installation, always the englisch texts are used.
 
Do you have any hints for me?
  
    

 
Are you using the latest izPack from svn ? This has just been fixed some 
time ago.
 
Have a nice weekend,
 
Loïc
 
 
 
_______________________________________________
izpack-users mailing list
izpack-users at lists.berlios.de
https://lists.berlios.de/mailman/listinfo/izpack-users
 
_______________________________________________
izpack-users mailing list
izpack-users at lists.berlios.de
https://lists.berlios.de/mailman/listinfo/izpack-users
 
  

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.berlios.de/pipermail/izpack-users/attachments/20080120/9e08c63b/attachment.html 


More information about the izpack-users mailing list