?? lang.java
字號:
public static final short BTN_SEA_NEW_SEARCH = BTN_BASE + 530;
public static final short BTN_SEA_STOP_SEARCH = BTN_BASE + 531;
public static final short BTN_SEA_SEARCH = BTN_BASE + 532;
public static final short BTN_SEA_ADD_NEW_PHRASE = BTN_BASE + 533;
//#endif
//filesystem browser
//#ifdef MUJMAIL_FS
public static final short BTN_FS_CREATE_DIR = BTN_BASE + 540;
//#endif
//about
public static final short BTN_ABT_FEEDBACK = BTN_BASE + 550;
//user folders
//#ifdef MUJMAIL_USR_FOLDERS
public static final short BTN_USR_FLD_ADD = BTN_BASE + 560;
//#endif
/******************* Lingual constants for alerts & activity reports ************************/
//basic alerts
public static final short ALRT_BASE = 10000;
public static final short ALRT_WAIT = ALRT_BASE + 1;
public static final short ALRT_LOADING = ALRT_BASE + 2;
public static final short ALRT_SAVING = ALRT_BASE + 3;
public static final short ALRT_DELETING = ALRT_BASE + 4;
public static final short ALRT_BAD_EMAIL = ALRT_BASE + 5;
public static final short ALRT_SORTING = ALRT_BASE + 6;
public static final short ALRT_INITIATING = ALRT_BASE + 7;
public static final short ALRT_SYNCHRONIZING = ALRT_BASE + 8;
public static final short ALRT_NEW_MAILS = ALRT_BASE + 9;
//settings
public static final short ALRT_ST_SAVING = ALRT_BASE + 50;
public static final short ALRT_ST_LOADING = ALRT_BASE + 51;
//sendmail
public static final short ALRT_SM_NO_RCP = ALRT_BASE + 100;
public static final short ALRT_SM_CAN_NOT_ATTACH_BODY = ALRT_BASE + 101;
//inprotocols
public static final short ALRT_INPL_NO_LONGER_ON_SERVER = ALRT_BASE + 150;
public static final short ALRT_INPL_CHECK_MAILS = ALRT_BASE + 151;
public static final short ALRT_INPL_DEL_MAILS = ALRT_BASE + 152;
public static final short ALRT_INPL_DOWN_MAIL = ALRT_BASE + 153;
public static final short ALRT_INPL_NEWMAILS = ALRT_BASE + 154;
public static final short ALRT_INPL_REDOWN_MAIL = ALRT_BASE + 155;
public static final short ALRT_INPL_IMAP_CANNOT_SELECT_MAILBOX = ALRT_BASE + 156;
public static final short ALRT_INPL_IMAP_UIDVALIDITY_DIFFERS = ALRT_BASE + 157;
public static final short ALRT_INPL_IMAP_GETURL_NO_PAGE = ALRT_BASE + 158;
public static final short ALRT_INPL_SAVE_SRV_SENT = ALRT_BASE+159;
//concerning the system
public static final short ALRT_SYS_BUSY = ALRT_BASE + 200;
public static final short ALRT_SYS_DEL_ALL_CONFIRM = ALRT_BASE + 201;
public static final short ALRT_SYS_NO_DBSPACE = ALRT_BASE + 202;
public static final short ALRT_SYS_CHECK_COM_SETTINGS = ALRT_BASE + 203;
public static final short ALRT_SYS_SHUTDOWN_CONFIRM = ALRT_BASE + 204;
public static final short ALRT_SYS_PROCESS_INTERRUPTED = ALRT_BASE + 205;
public static final short ALRT_SYS_EXCEPTION_AROSED = ALRT_BASE + 206;
public static final short ALRT_SYS_LOW_MEMORY = ALRT_BASE + 207;
public static final short ALRT_SYS_DEL_CONFIRM = ALRT_BASE + 208;
public static final short ALRT_SYS_TASK_FINISHED = ALRT_BASE + 209;
//mailform
public static final short ALRT_MF_LOAD_BODY = ALRT_BASE + 250;
public static final short ALRT_MF_VIEW_ATT = ALRT_BASE + 251;
public static final short ALRT_MF_NO_TEXT = ALRT_BASE + 252;
public static final short ALRT_MF_NO_ATTACHMENTS = ALRT_BASE + 253;
public static final short ALRT_MF_DEL_ATT = ALRT_BASE + 254;
public static final short ALRT_MF_UNSUPPORTED_FORMAT = ALRT_BASE + 255;
public static final short ALRT_MF_SAVE_CNTS = ALRT_BASE + 256;
public static final short ALRT_MF_NO_VIEWABLE_BODY = ALRT_BASE + 257;
public static final short ALRT_MF_UNSUPPORTED_CONVERSION = ALRT_BASE + 258;
//account settings alert
public static final short ALRT_AS_NONEXIST = ALRT_BASE + 300;
public static final short ALRT_AS_NO_ACCOUNT_SET_ACTIVE = ALRT_BASE + 301;
public static final short ALRT_AS_LOAD = ALRT_BASE + 302;
public static final short ALRT_AS_ALREADY_EXITS = ALRT_BASE + 303;
public static final short ALRT_AS_SET_DEFAULT_ACCOUNT = ALRT_BASE + 304;
//adressbook
public static final short ALRT_AD_LOAD = ALRT_BASE + 400;
public static final short ALRT_AD_DELETE = ALRT_BASE + 401;
//protocol concerning constants
public static final short ALRT_PL_CONNECTING = ALRT_BASE + 500;
public static final short ALRT_PL_CLOSING = ALRT_BASE + 501;
//SMTP constants
public static final short ALRT_SMTP_SENDING = ALRT_BASE + 600;
// Mobile abilities warnings
public static final short ALRT_MOB_JSR75 = ALRT_BASE + 650;
//Malboxes exceptions
public static final short ALRT_MB_CREATING = ALRT_BASE + 700;
/******************* Lingual constants for Exceptions ************************/
public static final short EXP_BASE = 12000;
//!!! The offset of these values must be corresponding to the offset defined in MyException class
//ie: LANG.EXP_COM_BASE = 1 (+ EXP_BASE)
// MYEXCEPTION.COM_BASE = 1
//in this example both offsets are 1
public static final short EXP_COM_BASE = EXP_BASE + 1;
public static final short EXP_COM_IN = EXP_COM_BASE + 1;
public static final short EXP_COM_OUT = EXP_COM_BASE + 2;
public static final short EXP_COM_TIMEOUT = EXP_COM_BASE + 3;
public static final short EXP_COM_HALTED = EXP_COM_BASE + 4;
public static final short EXP_COM_UNKNOWN = EXP_COM_BASE + 5;
public static final short EXP_SYSTEM_BASE = EXP_BASE + 10;
public static final short EXP_SYS_OUT_OF_MEMORY = EXP_SYSTEM_BASE + 1;
public static final short EXP_SYS_IMAGE_FAILED = EXP_SYSTEM_BASE + 2;
public static final short EXP_PROTOCOL_BASE = EXP_BASE + 20;
public static final short EXP_PROTOCOL_CANNOT_CONNECT = EXP_PROTOCOL_BASE + 1;
public static final short EXP_PROTOCOL_CANNOT_RETRIEVE_BODY = EXP_PROTOCOL_BASE + 2;
public static final short EXP_PROTOCOL_COMMAND_NOT_EXECUTED = EXP_PROTOCOL_BASE + 3;
public static final short EXP_PROTOCOL_CANNOT_DELETE_MAILS = EXP_PROTOCOL_BASE + 4;
public static final short EXP_VARIOUS_BASE = EXP_BASE + 30;
public static final short EXP_VARIOUS_BAD_EMAIL = EXP_VARIOUS_BASE + 1;
public static final short EXP_VARIOUS_AB_MULTIPLE_ENTRIES = EXP_VARIOUS_BASE + 2;
public static final short EXP_VARIOUS_DECODE_ILLEGAL_MIME = EXP_VARIOUS_BASE + 3;
//#ifdef MUJMAIL_FS
public static final short EXP_FS_BASE = EXP_BASE + 40;
public static final short EXP_FS_IO_ERROR = EXP_FS_BASE + 1;
public static final short EXP_FS_FILE_EXISTS = EXP_FS_BASE + 2;
public static final short EXP_FS_CLOSE_FILE = EXP_FS_BASE + 3;
public static final short EXP_FS_OPEN_FILE = EXP_FS_BASE + 4;
public static final short EXP_FS_FILE_READ_ERROR = EXP_FS_BASE + 5;
//#endif
public static final short EXP_DB_BASE = EXP_BASE + 50;
public static final short EXP_DB_NOSPACE = EXP_DB_BASE + 1;
public static final short EXP_DB_CANNOT_CLEAR = EXP_DB_BASE + 2;
public static final short EXP_DB_CANNOT_SAVE_BODY = EXP_DB_BASE + 3;
public static final short EXP_DB_CANNOT_SAVE_HEADER = EXP_DB_BASE + 4;
public static final short EXP_DB_CANNOT_DEL_HEADER = EXP_DB_BASE + 5;
public static final short EXP_DB_CANNOT_DEL_BODY = EXP_DB_BASE + 6;
public static final short EXP_DB_CANNOT_DEL_MAIL = EXP_DB_BASE + 7;
public static final short EXP_DB_CANNOT_LOAD_BODY = EXP_DB_BASE + 8;
public static final short EXP_DB_CANNOT_LOAD_CONTACT = EXP_DB_BASE + 9;
public static final short EXP_DB_CANNOT_SAVE_CONTACT = EXP_DB_BASE + 10;
public static final short EXP_DB_CANNOT_DEL_CONTACT = EXP_DB_BASE + 11;
public static final short EXP_DB_CANNOT_UPDATE_HEADER = EXP_DB_BASE + 12;
public static final short EXP_DB_CANNOT_LOAD_SETTINGS = EXP_DB_BASE + 13;
public static final short EXP_DB_CANNOT_SAVE_SETTINGS = EXP_DB_BASE + 14;
public static final short EXP_DB_CANNOT_LOAD_ACCOUNTS = EXP_DB_BASE + 15;
public static final short EXP_DB_CANNOT_SAVE_ACCOUNT = EXP_DB_BASE + 16;
public static final short EXP_DB_CANNOT_DELETE_ACCOUNT = EXP_DB_BASE + 17;
public static final short EXP_DB_CANNOT_OPEN_DB = EXP_DB_BASE + 18;
public static final short EXP_DB_CANNOT_LOAD_HEADERS = EXP_DB_BASE + 19;
public static final short EXP_DB_CANNOT_CLOSE_DB = EXP_DB_BASE + 20;
public static final short EXP_DB_CANNOT_SAVE_MSGID = EXP_DB_BASE + 21;
public static final short EXP_DB_CANNOT_LOAD_MSGID = EXP_DB_BASE + 22;
public static final short EXP_DB_CANNOT_DEL_MSGID = EXP_DB_BASE + 23;
public final static short EXP_DB_CANNOT_SAVE = EXP_DB_BASE + 24;
public final static short EXP_DB_CANNOT_DEL = EXP_DB_BASE + 25;
//the main method of the class, is used to get the appropriate lingual string
/**
* Converts Lingual codes into strings.
* @param lang_code Code to be converted into string.
* @return Text associtated with code.
*/
public static String get(short lang_code) {
switch (lang_code) {
case EMPTY:
return "empty";
case FAILED:
return ".. failed.";
case SUCCESS:
return ".. successful.";
case IN:
return " in ";
case ACTIVE:
return "Active";
case INACTIVE:
return "Inactive";
case MSGIDS_CACHE:
return "Message-IDs cache";
case DB_SPACE_LEFT:
return "DB space left: ";
case ML_RECIPIENTS:
return "Recipients:";
case ML_TO:
return "To:";
case ML_SUBJECT:
return "Subject:";
case ML_BODY:
return "Body:";
case ML_FROM:
return "From:";
case ML_ATTACHMENTS:
return "Bodyparts:";
case ML_SIZE:
return "Size:";
case ML_TIME:
return "Time:";
case ML_HEADERS_DETAIL:
return "Header's details:";
case ML_ATTCHMENTS_DETAIL:
return "Bodypart's details:";
case ML_FILENAME:
return "Filename:";
case ML_WIDTH:
return "Width:";
case ML_HEIGHT:
return "Height:";
case ML_FILE_WILL_OR_WAS_ATTACHED:
return "File was/will be attached:";
case ML_MAIL_ACCOUNT:
return "Account:";
//#ifdef MUJMAIL_FS
case FS_BROWSER_SELECT_FILE:
return "Select file";
case FS_BROWSER_ENTER_FILE_NAME:
return "Enter file name";
case FS_BROWSER_ENTER_DIR_NAME:
return "Enter directory name";
//#endif
//#ifdef MUJMAIL_SYNC
case SYNC_SELECT_MODE:
return "Select mode";
case SYNC_MODE_LOCAL:
return "Local";
case SYNC_MODE_REMOTE:
return "Remote";
//#endif
//#ifdef MUJMAIL_SEARCH
case SEA_SEARCHING:
return "Searching...";
case SEA_SEARCH_RESULTS:
return "Search results";
case SEA_SEARCHING_IN_BOX:
return "Searching in box ";
case SEA_ADVANCED_SETTINGS:
return "Advanced settings";
case SEA_DATE_INTERVAL:
return "Date interval";
case SEA_DATE_FROM:
return "From: ";
case SEA_DATE_TO:
return "To: ";
case SEA_SEARCH_IN_MAILBOXES:
return "Search in mailboxes";
case SEA_ENTER_SEARCH_PHRASE:
return "Enter search phrase";
case SEA_SEARCH_PHRASE:
return "Search phrase";
case SEA_REQUIRED:
return "Required";
case SEA_WHOLE_WORDS:
return "Whole words";
case SEA_SEARCH_IN_MSG_PARTS:
return "Search in message parts";
//#endif
case AS_ACCOUNTS:
return "Accounts";
case AS_PRIMARY:
return "Primary";
case AS_ACTIVATION:
return "Account activation:";
case AS_EMAIL:
return "Email:";
case AS_PROTOCOL:
return "Protocol:";
case AS_SERVER:
return "Server:";
case AS_PORT:
return "Port:";
case AS_USR_NAME:
return "User name:";
case AS_PASS:
return "Password:";
case AS_SSL:
return "Use SSL";
case AS_IMAP_MAILBOXES:
return "IMAP4 mailboxes separated by commas:";
case AS_COPY_TO_SERVER:
return "Save mails to server";
case AS_COPY_TO_SRV_TRASH:
return "Deleted mails to Trash";
case AS_COPY_TO_SRV_SENT:
return "Sent mail to Sent";
case AS_COPY_TO_SRV_SENT_MAILBOX:
return "Sentbox folder server name";
case AS_COPY_TO_SRV_TRASH_MAILBOX:
return "Delete folder server name";
case AS_SSL_TYPE:
return "SSL type";
case AS_MUJMAIL_SSL:
return "Use mujMail SSL";
case AS_FIRMWARE_SSL:
return "Use firmware SSL";
case AC_ACTIONS:
return "Actions";
case AC_WRITE_MAIL:
return "Write a mail";
case AC_RETRIEVE_MAILS:
return "Retrieve mails";
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -