1 package org.itracker.core.resources;
2
3 import java.util.Locale;
4 import java.util.Properties;
5
6 /**
7 * To provide Locale values from application properties configuration.
8 * @author ranks
9 */
10 public interface ITrackerResourcesProvider {
11 /**
12 * Load all translation keys for a locale.
13 *
14 * @param locale the locale
15 * @return loaded properties
16 */
17 Properties getLanguageProperties(Locale locale);
18
19 /**
20 * Load the exact translation by key for a locale.
21 *
22 * @param key the key
23 * @param locale the locale
24 * @return the language value
25 */
26 String getLanguageEntry(String key, Locale locale);
27
28 String getProperty(String name, String defaultValue);
29 }