1 package org.codehaus.plexus.i18n;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 import java.util.Locale;
20 import java.util.ResourceBundle;
21
22 public interface I18N
23 {
24 public static String ROLE = I18N.class.getName();
25
26 String ACCEPT_LANGUAGE = "Accept-Language";
27
28 String getDefaultLanguage();
29
30 String getDefaultCountry();
31
32 String getDefaultBundleName();
33
34 String[] getBundleNames();
35
36 ResourceBundle getBundle();
37
38 ResourceBundle getBundle( String bundleName );
39
40 ResourceBundle getBundle( String bundleName, String languageHeader );
41
42 ResourceBundle getBundle( String bundleName, Locale locale );
43
44 Locale getLocale( String languageHeader );
45
46 String getString( String key );
47
48 String getString( String key, Locale locale );
49
50 String getString( String bundleName, Locale locale, String key );
51
52 String format( String key, Object arg1 );
53
54 String format( String key, Object arg1, Object arg2 );
55
56 String format( String bundleName, Locale locale, String key, Object arg1 );
57
58 String format( String bundleName, Locale locale, String key, Object arg1, Object arg2 );
59
60 String format( String bundleName, Locale locale, String key, Object[] args );
61 }