1 | public class AddressbookResourceLoader extends GlobalResourceLoader {↵ | | 1 | public class MailResourceLoader extends GlobalResourceLoader {↵
|
2 | protected static final String ADDRESSBOOK_RESOURCE_PATH = "org.columba.addressbook.i18n";↵ | | 2 | protected static final String MAIL_RESOURCE_PATH = "org.columba.mail.i18n";↵
|
|
3 | /**↵ | | 3 | /**↵
|
4 | * No need to create instances of this class.↵ | | 4 | * No need for creating instances of this class.↵
|
5 | */↵ | | 5 | */↵
|
6 | private AddressbookResourceLoader() {↵ | | 6 | private MailResourceLoader() {↵
|
7 | }↵ | | 7 | }↵
|
|
8 | //This is used when package name and file name are different.↵ | | 8 | //This is used when package name and file name are different.↵
|
9 | //Example: getString("dialog", "composer", "statusbar_label");↵ | | 9 | //Example: getString("dialog", "composer", "statusbar_label");↵
|
10 | public static String getString(String sPath, String sName, String sID) {↵ | | 10 | public static String getString(String sPath, String sName, String sID) {↵
|
11 | return GlobalResourceLoader.getString(generateBundlePath(↵ | | 11 | return GlobalResourceLoader.getString(generateBundlePath(↵
|
12 | ADDRESSBOOK_RESOURCE_PATH, sPath), sName, sID);↵ | | 12 | MAIL_RESOURCE_PATH, sPath), sName, sID);↵
|
13 | }↵ | | 13 | }↵
|
|
14 | //This one is used when the package name and the file name are the same.↵ | | 14 | //This one is used when the package name and the file name are the same.↵
|
15 | //Example: getString("action", "menu_folder_newfolder");↵ | | 15 | //Example: getString("action", "menu_folder_newfolder");↵
|
16 | public static String getString(String sName, String sID) {↵ | | 16 | public static String getString(String sName, String sID) {↵
|
17 | return GlobalResourceLoader.getString(generateBundlePath(↵ | | 17 | return GlobalResourceLoader.getString(generateBundlePath(↵
|
18 | ADDRESSBOOK_RESOURCE_PATH, sName), sName, sID); | | 18 | MAIL_RESOURCE_PATH, sName), sName, sID);
|