Gets the localized value of a string. If no localized value is found, the key is returned surrounded by exclamation points. @param key the string to localize @return the localized string
(String key)
| 50 | * @return the localized string |
| 51 | */ |
| 52 | static public String getString(String key) { |
| 53 | try { |
| 54 | return res.getString(key); |
| 55 | } catch (MissingResourceException ex) { |
| 56 | return "!" + key + "!"; //$NON-NLS-1$ //$NON-NLS-2$ |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | /** |
| 61 | * Gets the language for this locale. |
no test coverage detected