I18 changes
[debian/openrocket] / src / net / sf / openrocket / gui / components / SimulationExportPanel.java
index ffdfa1481b3c7b966a3cf3726e3000ce80f911db..62f79d6d3dcc79f4d09c925fe992310c86b6331f 100644 (file)
@@ -285,9 +285,13 @@ public class SimulationExportPanel extends JPanel {
                }
 
                if (file.exists()) {
-                       int ret = JOptionPane.showConfirmDialog(this, 
-                                       "File \"" + file.getName() + "\" exists.  Overwrite?", 
-                                       "File exists", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);
+                       int ret = JOptionPane.showConfirmDialog(this,
+                                       //// File 
+                                       trans.get("SimExpPan.Fileexists.desc1") + file.getName() + 
+                                       //// \" exists.  Overwrite?
+                                       trans.get("SimExpPan.Fileexists.desc2"), 
+                                       //// File exists
+                                       trans.get("SimExpPan.Fileexists.title"), JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);
                        if (ret != JOptionPane.YES_OPTION)
                                return;
                }
@@ -348,9 +352,13 @@ public class SimulationExportPanel extends JPanel {
                }
                
                if (n == 1) {
-                       str = "Exporting 1 variable out of " + total + ".";
+                       //// Exporting 1 variable out of 
+                       str = trans.get("SimExpPan.ExportingVar.desc1") + " " + total + ".";
                } else {
-                       str = "Exporting "+n+" variables out of " + total + ".";
+                       //// Exporting 
+                       //// variables out of
+                       str = trans.get("SimExpPan.ExportingVar.desc2") + " "+n+" " + 
+                       trans.get("SimExpPan.ExportingVar.desc3") + " " + total + ".";
                }
 
                selectedCountLabel.setText(str);
@@ -415,9 +423,11 @@ public class SimulationExportPanel extends JPanel {
                        case SELECTED:
                                return "";
                        case NAME:
-                               return "Variable";
+                               //// Variable
+                               return trans.get("SimExpPan.Col.Variable");
                        case UNIT:
-                               return "Unit";
+                               //// Unit
+                               return trans.get("SimExpPan.Col.Unit");
                        default:
                                throw new IndexOutOfBoundsException("column=" + column);
                        }