javauis/lcdui_qt/src/javax/microedition/lcdui/MsgRepository.java
changeset 87 1627c337e51e
parent 23 98ccebc37403
equal deleted inserted replaced
80:d6dafc5d983f 87:1627c337e51e
    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     
    28     // Command labels:
    28     // Command labels:
       
    29     
       
    30     // SCREEN command
       
    31     // for Options menu position
    29     public static final String COMMAND_LABEL_SCREEN =
    32     public static final String COMMAND_LABEL_SCREEN =
    30         OpenLcduiLocalization.getMessage("key_select");
    33         OpenLcduiLocalization.getMessage("opt_screen_cmd_select");
    31 
    34 
       
    35     // for context menu position        
       
    36     public static final String COMMAND_LABEL_SCREEN_CTX_MENU =
       
    37         OpenLcduiLocalization.getMessage("menu_screen_cmd_select");
       
    38 
       
    39     // for button position (one button/softkey only)
       
    40     public static final String COMMAND_LABEL_SCREEN_BUTTON_1 =
       
    41         OpenLcduiLocalization.getMessage("button_screen_cmd_select_1");
       
    42         
       
    43     // for button position (two buttons/softkeys)
       
    44     public static final String COMMAND_LABEL_SCREEN_BUTTON_2 =
       
    45         OpenLcduiLocalization.getMessage("button_screen_cmd_select_2");
       
    46 
       
    47     // BACK command
       
    48     // for Options menu positions
    32     public static final String COMMAND_LABEL_BACK =
    49     public static final String COMMAND_LABEL_BACK =
    33         OpenLcduiLocalization.getMessage("back");
    50         OpenLcduiLocalization.getMessage("opt_cmd_back");
    34 
    51     
       
    52     // for context menu position    
       
    53     public static final String COMMAND_LABEL_BACK_CTX_MENU =
       
    54         OpenLcduiLocalization.getMessage("menu_cmd_back");
       
    55         
       
    56     // for button position (one button/softkey only)
       
    57     public static final String COMMAND_LABEL_BACK_BUTTON_1 =
       
    58         OpenLcduiLocalization.getMessage("button_cmd_back_1");
       
    59     
       
    60     // for button position (two buttons/softkeys)
       
    61     public static final String COMMAND_LABEL_BACK_BUTTON_2 =
       
    62         OpenLcduiLocalization.getMessage("button_cmd_back_2");
       
    63         
       
    64     // CANCEL command    
       
    65     // for Options menu position
    35     public static final String COMMAND_LABEL_CANCEL =
    66     public static final String COMMAND_LABEL_CANCEL =
    36         SWT.getMessage("cancel");
    67         SWT.getMessage("opt_cmd_cancel");
    37 
    68         
       
    69     // for context menu position
       
    70     public static final String COMMAND_LABEL_CANCEL_CTX_MENU =
       
    71         SWT.getMessage("menu_cmd_cancel");
       
    72 
       
    73     // for button position (one button/softkey only)
       
    74     public static final String COMMAND_LABEL_CANCEL_BUTTON_1 =
       
    75         SWT.getMessage("button_cmd_cancel_1");
       
    76         
       
    77     // for button position (two buttons/softkeys)
       
    78     public static final String COMMAND_LABEL_CANCEL_BUTTON_2 =
       
    79         SWT.getMessage("button_cmd_cancel_2");
       
    80 
       
    81     // OK command
       
    82     // for Options menu position
    38     public static final String COMMAND_LABEL_OK =
    83     public static final String COMMAND_LABEL_OK =
    39         SWT.getMessage("ok");
    84         SWT.getMessage("opt_cmd_ok");
    40 
    85         
       
    86     // for context menu position
       
    87     public static final String COMMAND_LABEL_OK_CTX_MENU =
       
    88         SWT.getMessage("menu_cmd_ok");
       
    89         
       
    90     // for button position (one button/softkey only)
       
    91     public static final String COMMAND_LABEL_OK_BUTTON_1 =
       
    92         SWT.getMessage("button_cmd_ok_1");
       
    93         
       
    94     // for button position (two buttons/softkeys)
       
    95     public static final String COMMAND_LABEL_OK_BUTTON_2 =
       
    96         SWT.getMessage("button_cmd_ok_2");
       
    97 
       
    98     // HELP command
       
    99     // for Options menu position
    41     public static final String COMMAND_LABEL_HELP =
   100     public static final String COMMAND_LABEL_HELP =
    42         OpenLcduiLocalization.getMessage("help");
   101         OpenLcduiLocalization.getMessage("opt_cmd_help");
    43 
   102         
       
   103     // for context menu position
       
   104     public static final String COMMAND_LABEL_HELP_CTX_MENU =
       
   105         OpenLcduiLocalization.getMessage("menu_cmd_help");
       
   106     
       
   107     // for button position (one button/softkey only)
       
   108     public static final String COMMAND_LABEL_HELP_BUTTON_1 =
       
   109         OpenLcduiLocalization.getMessage("button_cmd_help_1");
       
   110         
       
   111     // for button position (two buttons/softkeys)
       
   112     public static final String COMMAND_LABEL_HELP_BUTTON_2 =
       
   113         OpenLcduiLocalization.getMessage("button_cmd_help_2");
       
   114 
       
   115     // STOP command
       
   116     // for Options menu position
    44     public static final String COMMAND_LABEL_STOP =
   117     public static final String COMMAND_LABEL_STOP =
    45         OpenLcduiLocalization.getMessage("key_stop");
   118         OpenLcduiLocalization.getMessage("opt_cmd_stop");
    46 
   119         
       
   120     // for context menu position
       
   121     public static final String COMMAND_LABEL_STOP_CTX_MENU =
       
   122         OpenLcduiLocalization.getMessage("menu_cmd_stop");
       
   123         
       
   124     // for button position (one button/softkey only)
       
   125     public static final String COMMAND_LABEL_STOP_BUTTON_1 =
       
   126         OpenLcduiLocalization.getMessage("button_cmd_stop_1");
       
   127         
       
   128     // for button position (two buttons/softkeys)
       
   129     public static final String COMMAND_LABEL_STOP_BUTTON_2 =
       
   130         OpenLcduiLocalization.getMessage("button_cmd_stop_2");
       
   131    
       
   132     // EXIT command
       
   133     // for Options menu position
    47     public static final String COMMAND_LABEL_EXIT =
   134     public static final String COMMAND_LABEL_EXIT =
    48         OpenLcduiLocalization.getMessage("close");
   135         OpenLcduiLocalization.getMessage("opt_cmd_close");
    49 
   136         
       
   137     // for context menu position
       
   138     public static final String COMMAND_LABEL_EXIT_CTX_MENU =
       
   139         OpenLcduiLocalization.getMessage("menu_cmd_close");
       
   140         
       
   141     // for button position (one button/softkey only)    
       
   142     public static final String COMMAND_LABEL_EXIT_BUTTON_1 =
       
   143         OpenLcduiLocalization.getMessage("button_cmd_close_1");
       
   144         
       
   145     // for button position (two buttons/softkeys)
       
   146     public static final String COMMAND_LABEL_EXIT_BUTTON_2 =
       
   147         OpenLcduiLocalization.getMessage("button_cmd_close_2");
       
   148    
       
   149     // ITEM command
       
   150     // for Options menu position (Note: should not be used, as ITEM type commands 
       
   151     // should never be mapped to Options menu!)
    50     public static final String COMMAND_LABEL_ITEM =
   152     public static final String COMMAND_LABEL_ITEM =
    51         OpenLcduiLocalization.getMessage("key_select");
   153         OpenLcduiLocalization.getMessage("opt_item_cmd_select");
    52 
   154         
       
   155     // for context menu position
       
   156     public static final String COMMAND_LABEL_ITEM_CTX_MENU =
       
   157         OpenLcduiLocalization.getMessage("menu_item_cmd_select");
       
   158         
       
   159     // for button position (one button/softkey only)
       
   160     public static final String COMMAND_LABEL_ITEM_BUTTON_1 =
       
   161         OpenLcduiLocalization.getMessage("button_item_cmd_select_1");
       
   162         
       
   163     // for button position (two buttons/softkeys) 
       
   164     public static final String COMMAND_LABEL_ITEM_BUTTON_2 =
       
   165         OpenLcduiLocalization.getMessage("button_item_cmd_select_2");
       
   166  
    53     // Alert texts:
   167     // Alert texts:
    54     public static final String ALERT_DEFAULT_TEXT_ERROR =
   168     public static final String ALERT_DEFAULT_TEXT_ERROR =
    55         OpenLcduiLocalization.getMessage("alert_error");
   169         OpenLcduiLocalization.getMessage("info_alert_error");
    56 
   170 
    57     public static final String ALERT_DEFAULT_TEXT_WARNING =
   171     public static final String ALERT_DEFAULT_TEXT_WARNING =
    58         OpenLcduiLocalization.getMessage("alert_warning");
   172         OpenLcduiLocalization.getMessage("info_alert_warning");
    59 
   173 
    60     public static final String ALERT_DEFAULT_TEXT_INFO =
   174     public static final String ALERT_DEFAULT_TEXT_INFO =
    61         OpenLcduiLocalization.getMessage("alert_info");
   175         OpenLcduiLocalization.getMessage("info_alert_information");
    62 
   176 
    63     public static final String ALERT_DEFAULT_TEXT_CONFIRMATION =
   177     public static final String ALERT_DEFAULT_TEXT_CONFIRMATION =
    64         OpenLcduiLocalization.getMessage("alert_conf");
   178         OpenLcduiLocalization.getMessage("info_alert_confirmation");
    65 
   179 
    66     public static final String ALERT_DEFAULT_TEXT_ALARM =
   180     public static final String ALERT_DEFAULT_TEXT_ALARM =
    67         OpenLcduiLocalization.getMessage("alert_alarm");
   181         OpenLcduiLocalization.getMessage("info_alert_alarm");
    68 
   182     
       
   183     // AlertType.NULL
    69     public static final String ALERT_DEFAULT_TEXT_ALERT =
   184     public static final String ALERT_DEFAULT_TEXT_ALERT =
    70         OpenLcduiLocalization.getMessage("alert_null");
   185         OpenLcduiLocalization.getMessage("info_alert");
    71 
   186 
       
   187     
    72 
   188 
    73     // Exceptions below - dont need translation !!!
   189     // Exceptions below - dont need translation !!!
    74 
       
    75 
   190 
    76     public static final String COMMAND_EXCEPTION_LABEL_IS_NULL =
   191     public static final String COMMAND_EXCEPTION_LABEL_IS_NULL =
    77         "Short label cannot be null";
   192         "Short label cannot be null";
    78 
   193 
    79     public static final String COMMAND_EXCEPTION_INVALID_TYPE =
   194     public static final String COMMAND_EXCEPTION_INVALID_TYPE =