@@ -0,0 +1,668 @@
+/*%0A * $Id$%0A */%0A%0Apackage au.id.chenery.mapyrus;%0A%0Aimport java.util.ResourceBundle;%0A%0A/**%0A * Wrapper around a java resource file containing messages for various%0A * locales.  Provides single function to get a message for the current%0A * locale, given the message key identifier.  %0A */%0Apublic class MapyrusMessages%0A%7B%0A%09public static final String BAD_OUTPUT_FORMAT = %22badoutputformat%22;%0A%09%0A%09private static ResourceBundle messages;%0A%0A%09static%0A%09%7B%0A%09%09messages = ResourceBundle.getBundle(%22MapyrusMessages%22);%0A%09%7D%0A%0A%09/**%0A%09 * Returns message for current locale for message a key.%0A%09 * @return full message%0A%09 */%0A%09public static String get(String key)%0A%09%7B%0A%09%09return(messages.getString(key));%0A%09%7D%0A%7D%0A

Test of using properties file for NLS messages.