Revision 1396
org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.lib/src/main/java/org/gvsig/tools/i18n/impl/DummyI18nManager.java | ||
---|---|---|
49 | 49 |
*/ |
50 | 50 |
package org.gvsig.tools.i18n.impl; |
51 | 51 |
|
52 |
import java.io.File; |
|
52 | 53 |
import org.gvsig.tools.i18n.I18nManager; |
53 | 54 |
|
54 | 55 |
/** |
... | ... | |
75 | 76 |
String callerName) { |
76 | 77 |
// Do nothing, this is a dummy implementation. |
77 | 78 |
} |
79 |
|
|
80 |
@Override |
|
81 |
public void addResourceFamily(String family, File folder) { |
|
82 |
// Do nothing, this is a dummy implementation. |
|
83 |
} |
|
84 |
|
|
85 |
|
|
78 | 86 |
} |
org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.lib/src/main/java/org/gvsig/tools/i18n/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