[izpack-devel] Translation of ColumnHeaders in InstallGroupPanel

Markus Schlegel schlm3 at gmail.com
Mon Feb 26 10:29:49 CET 2007


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.berlios.de/pipermail/izpack-devel/attachments/20070226/95c3e3c1/attachment.html 
-------------- next part --------------
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>
 
-------------- next part --------------
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)


More information about the izpack-devel mailing list