1
2
3
4
5
6 package net.sf.tlc.core;
7
8 import java.util.Locale;
9
10 /***
11 * I18n (Internationalization) Helper Interface
12 *
13 * @author aisrael
14 */
15 public interface I18nHelper {
16
17 /***
18 * Set the current Locale. Typically, implementations will also use load the
19 *
20 * @param locale
21 * The Locale to use
22 */
23 void setCurrentLocale(final Locale locale);
24
25 /***
26 * Get the current Locale
27 *
28 * @return the current Locale
29 */
30 Locale getCurrentLocale();
31
32 /***
33 * Retrieve the corresponding internationalized message according to the
34 * current Locale.
35 *
36 * @param key
37 * The message key
38 * @return The internationalived message
39 */
40 String getMessage(final String key);
41
42 }