Revision 1113 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.lib/src/main/java/org/gvsig/tools/i18n/I18nManager.java
I18nManager.java | ||
---|---|---|
25 | 25 |
|
26 | 26 |
public interface I18nManager { |
27 | 27 |
|
28 |
/** |
|
29 |
* Get translation for the current language of <b>message</b>. |
|
30 |
* |
|
31 |
* If the translation not found return the message it self. |
|
32 |
* |
|
33 |
* @param message |
|
34 |
* the message key used for translation. |
|
35 |
* |
|
36 |
* @return the traslated message |
|
37 |
*/ |
|
28 | 38 |
public String getTranslation(String message); |
39 |
|
|
40 |
/** |
|
41 |
* Get translation for the current language of <b>message</b>. |
|
42 |
* This use the java MessageFormat utiity to replace args in the |
|
43 |
* resulting translation message. |
|
44 |
* |
|
45 |
* If the translation not found return the message it self. |
|
46 |
* |
|
47 |
* @param message |
|
48 |
* the message key used for translation. |
|
49 |
* |
|
50 |
* @param args |
|
51 |
* @return the traslated message |
|
52 |
*/ |
|
53 |
public String getTranslation(String message, String[] args); |
|
54 |
|
|
29 | 55 |
public void addResourceFamily(String family, ClassLoader loader, String callerName); |
30 | 56 |
} |
Also available in: Unified diff