]> git.gag.com Git - debian/openrocket/blobdiff - src/net/sf/openrocket/rocketcomponent/NoseCone.java
I18 changes
[debian/openrocket] / src / net / sf / openrocket / rocketcomponent / NoseCone.java
index 04eaa77c8b5c70ce448a0c9b60d7e6932689f17f..c271e2d442b6cd5044a24b298e35c6b082c97e7e 100644 (file)
@@ -1,5 +1,8 @@
 package net.sf.openrocket.rocketcomponent;
 
+import net.sf.openrocket.l10n.Translator;
+import net.sf.openrocket.startup.Application;
+
 /**
  * Rocket nose cones of various types.  Implemented as a transition with the
  * fore radius == 0.
@@ -8,7 +11,8 @@ package net.sf.openrocket.rocketcomponent;
  */
 
 public class NoseCone extends Transition {
-       
+       private static final Translator trans = Application.getTranslator();
+
        
        /********* Constructors **********/
        public NoseCone() {
@@ -112,6 +116,17 @@ public class NoseCone extends Transition {
         */
        @Override
        public String getComponentName() {
-               return "Nose cone";
-       }
+               //// Nose cone
+               return trans.get("NoseCone.NoseCone");
+       }
+    
+    /**
+     * Accept a visitor to this NoseCone in the component hierarchy.
+     * 
+     * @param theVisitor  the visitor that will be called back with a reference to this NoseCone
+     */
+    @Override
+    public void accept(ComponentVisitor theVisitor) {
+        theVisitor.visit(this);
+    }
 }