9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: |
14 * Description: |
15 * |
15 * |
16 */ |
16 */ |
17 package javax.microedition.lcdui; |
17 package javax.microedition.lcdui; |
18 |
18 |
19 import org.eclipse.swt.SWT; |
19 import org.eclipse.swt.SWT; |
20 /** |
20 /** |
21 * Repository for text messages used in OpenLCDUI. String constants in this |
21 * Repository for text messages used in OpenLCDUI. String constants in this |
22 * class should begin with prefix "CLASSNAME_" where CLASSNAME is the name of |
22 * class should begin with prefix "CLASSNAME_" where CLASSNAME is the name of |
23 * the class which is using the constant. |
23 * the class which is using the constant. |
24 */ |
24 */ |
25 final class MsgRepository { |
25 final class MsgRepository |
|
26 { |
26 |
27 |
27 // Command labels: |
28 // Command labels: |
28 public static final String COMMAND_LABEL_SCREEN = |
29 public static final String COMMAND_LABEL_SCREEN = |
29 OpenLcduiLocalization.getMessage("key_select"); |
30 OpenLcduiLocalization.getMessage("key_select"); |
30 |
31 |
31 public static final String COMMAND_LABEL_BACK = |
32 public static final String COMMAND_LABEL_BACK = |
32 OpenLcduiLocalization.getMessage("back"); |
33 OpenLcduiLocalization.getMessage("back"); |
33 |
34 |
34 public static final String COMMAND_LABEL_CANCEL = |
35 public static final String COMMAND_LABEL_CANCEL = |
35 SWT.getMessage("cancel"); |
36 SWT.getMessage("cancel"); |
36 |
37 |
37 public static final String COMMAND_LABEL_OK = |
38 public static final String COMMAND_LABEL_OK = |
38 SWT.getMessage("ok"); |
39 SWT.getMessage("ok"); |
39 |
40 |
40 public static final String COMMAND_LABEL_HELP = |
41 public static final String COMMAND_LABEL_HELP = |
41 OpenLcduiLocalization.getMessage("help"); |
42 OpenLcduiLocalization.getMessage("help"); |
42 |
43 |
43 public static final String COMMAND_LABEL_STOP = |
44 public static final String COMMAND_LABEL_STOP = |
44 OpenLcduiLocalization.getMessage("key_stop"); |
45 OpenLcduiLocalization.getMessage("key_stop"); |
45 |
46 |
46 public static final String COMMAND_LABEL_EXIT = |
47 public static final String COMMAND_LABEL_EXIT = |
47 OpenLcduiLocalization.getMessage("close"); |
48 OpenLcduiLocalization.getMessage("close"); |
48 |
49 |
49 public static final String COMMAND_LABEL_ITEM = |
50 public static final String COMMAND_LABEL_ITEM = |
50 OpenLcduiLocalization.getMessage("key_select"); |
51 OpenLcduiLocalization.getMessage("key_select"); |
51 |
52 |
52 // Alert texts: |
53 // Alert texts: |
53 public static final String ALERT_DEFAULT_TEXT_ERROR = |
54 public static final String ALERT_DEFAULT_TEXT_ERROR = |
54 OpenLcduiLocalization.getMessage("alert_error"); |
55 OpenLcduiLocalization.getMessage("alert_error"); |
55 |
56 |
56 public static final String ALERT_DEFAULT_TEXT_WARNING = |
57 public static final String ALERT_DEFAULT_TEXT_WARNING = |
57 OpenLcduiLocalization.getMessage("alert_warning"); |
58 OpenLcduiLocalization.getMessage("alert_warning"); |
58 |
59 |
59 public static final String ALERT_DEFAULT_TEXT_INFO = |
60 public static final String ALERT_DEFAULT_TEXT_INFO = |
60 OpenLcduiLocalization.getMessage("alert_info"); |
61 OpenLcduiLocalization.getMessage("alert_info"); |
61 |
62 |
62 public static final String ALERT_DEFAULT_TEXT_CONFIRMATION = |
63 public static final String ALERT_DEFAULT_TEXT_CONFIRMATION = |
63 OpenLcduiLocalization.getMessage("alert_conf"); |
64 OpenLcduiLocalization.getMessage("alert_conf"); |
64 |
65 |
65 public static final String ALERT_DEFAULT_TEXT_ALARM = |
66 public static final String ALERT_DEFAULT_TEXT_ALARM = |
66 OpenLcduiLocalization.getMessage("alert_alarm"); |
67 OpenLcduiLocalization.getMessage("alert_alarm"); |
67 |
68 |
68 public static final String ALERT_DEFAULT_TEXT_ALERT = |
69 public static final String ALERT_DEFAULT_TEXT_ALERT = |
69 OpenLcduiLocalization.getMessage("alert_null"); |
70 OpenLcduiLocalization.getMessage("alert_null"); |
70 |
71 |
71 |
72 |
72 // Exceptions below - dont need translation !!! |
73 // Exceptions below - dont need translation !!! |
73 |
74 |
74 |
75 |