X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=core%2Fsrc%2Fnet%2Fsf%2Fopenrocket%2Fl10n%2FExceptionSuppressingTranslator.java;fp=core%2Fsrc%2Fnet%2Fsf%2Fopenrocket%2Fl10n%2FExceptionSuppressingTranslator.java;h=1287822cc938ffaf7e2703587af1ae54ebb2a71c;hb=9349577cdfdff682b2aabd6daa24fdc3a7449b58;hp=dd916b6cde240c9464ea57bee78be6b291981695;hpb=30ba0a882f0c061176ba14dbf86d3d6fad096c02;p=debian%2Fopenrocket diff --git a/core/src/net/sf/openrocket/l10n/ExceptionSuppressingTranslator.java b/core/src/net/sf/openrocket/l10n/ExceptionSuppressingTranslator.java index dd916b6c..1287822c 100644 --- a/core/src/net/sf/openrocket/l10n/ExceptionSuppressingTranslator.java +++ b/core/src/net/sf/openrocket/l10n/ExceptionSuppressingTranslator.java @@ -29,7 +29,7 @@ public class ExceptionSuppressingTranslator implements Translator { } - + @Override public String get(String key) { try { @@ -42,7 +42,18 @@ public class ExceptionSuppressingTranslator implements Translator { } - + @Override + public String get(String base, String text) { + return translator.get(base, text); + } + + + @Override + public String getBaseText(String base, String translation) { + return translator.getBaseText(base, translation); + } + + private static synchronized void handleError(String key, MissingResourceException e) { if (!errorReported) { errorReported = true; @@ -50,4 +61,6 @@ public class ExceptionSuppressingTranslator implements Translator { } } + + }