Search code examples
javaxmlizpack

Izpack Internationalization of Custom Information


I have a question reffering to Izpack Internationalization.

  • The default language I'm using is English. But if the user selects Romanian, I want to add internationalization to every custom element in the installer.

  • FOR EXAMPLE:

    <panel order="0" id="xx">
            <field type="radio" variable="packageType">
            <description align="left" txt="Choose your module type:" id="module.description" />
    
            <spec>
                <choice txt="Choice 1"  value="English Text 1" />
                <choice txt="Choice 2"  value="English Text 2" />
            </spec>
            </field>
    </panel>``
    

** I want to change the value of the english text to romanian.

Researching IzPack, I tried to add a CustomLangPack.xml_rom

<langpack>
    <str id="module.description" txt="Alege tipul tau de afacere:"/>
</langpack>
  • HOWEVER, this does not work.

How can I do this, without using static variables ?


Solution

  • I'm back. After hours and hours of battle it finally worked.

    How I did it: