Lines Matching defs:key
131 * Looks up a translation in the currently set Locale by the NLS lookup key provided.
132 * If no resource by that key is found, the key itself is returned.
135 public static String getTranslation(String key) {
136 if (key == null || resource_bundle == null) return "";
138 String retStr = resource_bundle.getString(key);
141 return key;
192 * Gets a translation given the currently set locale, a lookup key, and a single lookup item replacement.
193 * For an understanding of the lookup item replacement see getTranslation(String key, String[] lookup).
196 public static String getTranslation(String key, String lookup) {
197 if (key == null || resource_bundle == null) return "";
200 String retStr = resource_bundle.getString(key);
204 return key;
209 * Gets a translation given the currently set locale, a lookup key, and zero or more lookup item replacements.
228 * This method (as well as the getTranslation(String key, String lookup) method) is useful for using nested
234 public static String getTranslation(String key, String[] lookup) {
235 if (key == null || resource_bundle == null) return "";
239 String retStr = resource_bundle.getString(key);
243 return key;