[izpack-devel] Translation of ColumnHeaders in InstallGroupPanel

Vladimir Ralev vralev at redhat.com
Thu Mar 1 15:31:00 CET 2007


I applied it to the 3.10.1 branch. Thanks.

Markus Schlegel wrote:
> Hi
> I've patched the InstallGroupPanel so that I can translate the Headers 
> of the TableColumns in the langpacks.
> Thanks for applying this patch.
>
> Regards
> Markus Schlegel
>
>
>
>
> ------------------------------------------------------------------------
>
> Index: C:/deron/3rdParty/IzPack_3.10/bin/langpacks/installer/eng.xml
> ===================================================================
> --- C:/deron/3rdParty/IzPack_3.10/bin/langpacks/installer/eng.xml	(revision 1758)
> +++ C:/deron/3rdParty/IzPack_3.10/bin/langpacks/installer/eng.xml	(working copy)
> @@ -215,4 +215,9 @@
>  	  <str id="nextmedia.cancelbtn" txt="Cancel" />	
>      <str id="nextmedia.choosertitle" txt="Choose install media" />
>      <str id="nextmedia.filedesc" rdid="install packs (.pak*)" />
> +    
> +    <str id="InstallationGroupPanel.colNameSelected" txt="Selected" />
> +    <str id="InstallationGroupPanel.colNameInstallType" txt="InstallType" />
> +    <str id="InstallationGroupPanel.colNameSize" txt="Size" />
> +
>  </langpack>
> Index: C:/deron/3rdParty/IzPack_3.10/bin/langpacks/installer/deu.xml
> ===================================================================
> --- C:/deron/3rdParty/IzPack_3.10/bin/langpacks/installer/deu.xml	(revision 1758)
> +++ C:/deron/3rdParty/IzPack_3.10/bin/langpacks/installer/deu.xml	(working copy)
> @@ -214,5 +214,10 @@
>  	  <str id="nextmedia.cancelbtn" txt="Installation abbrechen" />	
>      <str id="nextmedia.choosertitle" txt="Installationsmedium auswählen" />
>      <str id="nextmedia.filedesc" txt="Installationspakete (.pak*)" />
> +
> +    <str id="InstallationGroupPanel.colNameSelected" txt="Selektiert" />
> +    <str id="InstallationGroupPanel.colNameInstallType" txt="Installationstyp" />
> +    <str id="InstallationGroupPanel.colNameSize" txt="Grösse" />
> +
>  </langpack>
>  
>   
> ------------------------------------------------------------------------
>
> Index: C:/deron/3rdParty/IzPack_3.10/src/lib/com/izforge/izpack/panels/InstallationGroupPanel.java
> ===================================================================
> --- C:/deron/3rdParty/IzPack_3.10/src/lib/com/izforge/izpack/panels/InstallationGroupPanel.java	(revision 1758)
> +++ C:/deron/3rdParty/IzPack_3.10/src/lib/com/izforge/izpack/panels/InstallationGroupPanel.java	(working copy)
> @@ -406,7 +406,10 @@
>  
>      protected TableModel getModel(HashMap groupData)
>      {
> -        String[] columns = { "Selected", "InstallType", "Size"};
> +        String c1 = parent.langpack.getString("InstallationGroupPanel.colNameSelected");
> +        String c2 = parent.langpack.getString("InstallationGroupPanel.colNameInstallType");
> +        String c3 = parent.langpack.getString("InstallationGroupPanel.colNameSize");
> +        String[] columns = {c1, c2, c3};
>           DefaultTableModel model = new DefaultTableModel (columns, 0)
>           {
>              public boolean isCellEditable (int row, int column)
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> izpack-devel mailing list
> izpack-devel at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/izpack-devel
>   



More information about the izpack-devel mailing list