I'm having a little trouble with internationalization using the
standalone compiler. Basically I have set my project up such that all
panels, customer events, images etc are not built/included with the IzPack
source code but rather with our main trunk. These compile to jar files and
are supplied in the installer.xml definition. For example:
<panels>
<panel classname="CSSDiscoverPanel" jar="./lib/installer-panels.jar"/>
</panels>
We compile our installer jar file using a pre-built version of the
standalone compiler loaded as a library. This is all does via ant scripts.
Now I am having trouble setting up internationalization. I would like to
specify my own English internationalization file and have it merge with the
default file (I am of the understanding this can be done). Now I have
followed the documentation perfectly, creating my own packsLang.xml_eng file
and adding it as a resource using [<res id="packsLang.xml_eng"
src="./langpack/myPacksLang.xml_eng"/>]. This part is fine and I can see
that the resource has been added to my jar file when it is built using the
standalone compiler. This langpack file then contains definitions such as:
<langpack>
<str id="CSSDiscoverPanel.headline" txt="Discovering local CSS computers"/>
<str id="CSSServerAddPanel.headline" txt="Select CSS computers"/>
<str id="CSSDiscoverPanel.tip" txt="CSS computer discovery progress:"/>
</langpack>
In code I am loading the strings using:
LabelFactory.create(parent.langpack.getString("CSSDiscoverPanel.tip")
Now as far as I can tell, my langpack is not actually being merged as an
inspection of the keys loaded does not reveal my custom ones. Is this
because I am using the standalone compiler as a library and thus not
recompiling it each time? Is merging not done at run-time when my install
file is executed?
Thanks in Advance Guys
--
View this message in context: http://www.nabble.com/Internationalization-Problems-with-Standalone-Compiler-tp25530179p25530179.html
Sent from the izpack - users @ codehaus mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Have you managed to solve this problem? I have exactly the same dummy
behaviour:
* I use izpack-maven-plugin (and it uses izpack-standalone-compiler
4.3.1)
* I see res\packsLang.xml_eng is present in install.jar.
but resource is not merged into the langpack. I also checked the
source code for
com.izforge.izpack.compiler.CompilerConfig#addResources(IXMLElement
data):1708 - looks OK.
Thanks in advance!
On 21 сен 2009, 05:50, S73417H <michael.fa...@thalesgroup.com.au>
wrote:
> View this message in context:http://www.nabble.com/Internationalization-Problems-with-Standalone-C...