diff options
author | Omair Majid <[email protected]> | 2010-10-26 17:52:03 -0400 |
---|---|---|
committer | Omair Majid <[email protected]> | 2010-10-26 17:52:03 -0400 |
commit | 68d579d003023dd221fa9f8a72ee77b9cf37a417 (patch) | |
tree | aafcfb4c62f190430ebe960884bfe21fd6e76403 /netx | |
parent | 8dcba1a5958c5e4fe91cd08779a0f4e0e74b39e3 (diff) |
overload a new R method for translation of simple strings
2010-10-26 Omair Majid <[email protected]>
* netx/net/sourceforge/jnlp/runtime/Translator.java
(R(String)): New method.
Diffstat (limited to 'netx')
-rw-r--r-- | netx/net/sourceforge/jnlp/runtime/Translator.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/netx/net/sourceforge/jnlp/runtime/Translator.java b/netx/net/sourceforge/jnlp/runtime/Translator.java index 6e362b1..5a715fb 100644 --- a/netx/net/sourceforge/jnlp/runtime/Translator.java +++ b/netx/net/sourceforge/jnlp/runtime/Translator.java @@ -28,4 +28,13 @@ public class Translator { return JNLPRuntime.getMessage(message, params); } + /** + * Return a translated (localized) version of the message + * @param message the message to translate + * @return a string representing the localized message + */ + public static String R(String message) { + return JNLPRuntime.getMessage(message); + } + } |