X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fnet%2Fsf%2Fopenrocket%2Faerodynamics%2FWarning.java;h=e44541c0a6fdf9fdede3fdb62f6c240a42322f6b;hb=493c32a7f337bef1f19e1629c99a70a55af8a61a;hp=7981d37a6f419cee6176d6e4d2b0630a76599c91;hpb=23b96c50e7906f26dd5f6108ac5de673b950563a;p=debian%2Fopenrocket
diff --git a/src/net/sf/openrocket/aerodynamics/Warning.java b/src/net/sf/openrocket/aerodynamics/Warning.java
index 7981d37a..e44541c0 100644
--- a/src/net/sf/openrocket/aerodynamics/Warning.java
+++ b/src/net/sf/openrocket/aerodynamics/Warning.java
@@ -1,10 +1,13 @@
package net.sf.openrocket.aerodynamics;
+import net.sf.openrocket.l10n.Translator;
+import net.sf.openrocket.startup.Application;
import net.sf.openrocket.unit.UnitGroup;
public abstract class Warning {
-
+ private static final Translator trans = Application.getTranslator();
+
/**
* Return a Warning with the specific text.
*/
@@ -69,8 +72,10 @@ public abstract class Warning {
@Override
public String toString() {
if (Double.isNaN(aoa))
- return "Large angle of attack encountered.";
- return ("Large angle of attack encountered (" +
+ //// Large angle of attack encountered.
+ return trans.get("Warning.LargeAOA.str1");
+ //// Large angle of attack encountered (
+ return (trans.get("Warning.LargeAOA.str2") +
UnitGroup.UNITS_ANGLE.getDefaultUnit().toString(aoa) + ").");
}
@@ -129,26 +134,31 @@ public abstract class Warning {
/** A Warning
that the body diameter is discontinuous. */
+////Discontinuity in rocket body diameter.
public static final Warning DISCONTINUITY =
- new Other("Discontinuity in rocket body diameter.");
+ new Other(trans.get("Warning.DISCONTINUITY"));
/** A Warning
that the fins are thick compared to the rocket body. */
+////Thick fins may not be modeled accurately.
public static final Warning THICK_FIN =
- new Other("Thick fins may not be modeled accurately.");
+ new Other(trans.get("Warning.THICK_FIN"));
/** A Warning
that the fins have jagged edges. */
+////Jagged-edged fin predictions may be inaccurate.
public static final Warning JAGGED_EDGED_FIN =
- new Other("Jagged-edged fin predictions may be inaccurate.");
+ new Other(trans.get("Warning.JAGGED_EDGED_FIN"));
/** A Warning
that simulation listeners have affected the simulation */
+////Listeners modified the flight simulation
public static final Warning LISTENERS_AFFECTED =
- new Other("Listeners modified the flight simulation");
+ new Other(trans.get("Warning.LISTENERS_AFFECTED"));
+////Recovery device opened while motor still burning.
public static final Warning RECOVERY_DEPLOYMENT_WHILE_BURNING =
- new Other("Recovery device opened while motor still burning.");
-
+ new Other(trans.get("Warning.RECOVERY_DEPLOYMENT_WHILE_BURNING"));
+ //// Invalid parameter encountered, ignoring.
public static final Warning FILE_INVALID_PARAMETER =
- new Other("Invalid parameter encountered, ignoring.");
+ new Other(trans.get("Warning.FILE_INVALID_PARAMETER"));
}