diff options
Diffstat (limited to 'src/javax/vecmath/VecMathI18N.java')
-rw-r--r-- | src/javax/vecmath/VecMathI18N.java | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/javax/vecmath/VecMathI18N.java b/src/javax/vecmath/VecMathI18N.java new file mode 100644 index 0000000..d142325 --- /dev/null +++ b/src/javax/vecmath/VecMathI18N.java @@ -0,0 +1,31 @@ +/* + * $RCSfile$ + * + * Copyright (c) 2004 Sun Microsystems, Inc. All rights reserved. + * + * Use is subject to license terms. + * + * $Revision$ + * $Date$ + * $State$ + */ + +package javax.vecmath; + +import java.io.*; +import java.util.*; + + +class VecMathI18N { + static String getString(String key) { + String s; + try { + s = (String) ResourceBundle.getBundle("javax.vecmath.ExceptionStrings").getString(key); + } + catch (MissingResourceException e) { + System.err.println("VecMathI18N: Error looking up: " + key); + s = key; + } + return s; + } +} |