Revision 1396 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.lib/src/main/java/org/gvsig/tools/i18n/I18nManager.java
I18nManager.java | ||
---|---|---|
23 | 23 |
*/ |
24 | 24 |
package org.gvsig.tools.i18n; |
25 | 25 |
|
26 |
import java.io.File; |
|
27 |
|
|
26 | 28 |
public interface I18nManager { |
27 | 29 |
|
28 | 30 |
/** |
... | ... | |
53 | 55 |
public String getTranslation(String message, String[] args); |
54 | 56 |
|
55 | 57 |
public void addResourceFamily(String family, ClassLoader loader, String callerName); |
58 |
|
|
59 |
/** |
|
60 |
* Adds an additional family of resource files containing some translations. |
|
61 |
* The search path to locate the files is provided by the dir parameter. |
|
62 |
* |
|
63 |
* Example: |
|
64 |
* <code>i18nManager.addResourceFamily("text", new File("./resources"))</code> |
|
65 |
* |
|
66 |
* @param family The family name (or base name) which is used to search |
|
67 |
* actual properties files. |
|
68 |
* @param folder The search path to locate the property files |
|
69 |
*/ |
|
70 |
|
|
71 |
public void addResourceFamily(String family, File folder); |
|
56 | 72 |
} |
Also available in: Unified diff