#define IDS_MGST_ABORT 16 |
#define IDS_MGST_ABOUTMG 19 |
#define IDS_MGST_ACCESSMODE 33 |
#define IDS_MGST_CANCEL 12 |
#define IDS_MGST_CLOSE 9 |
#define IDS_MGST_CLOSEALLWIN 3 |
#define IDS_MGST_COLORSEL 22 |
#define IDS_MGST_CURRPATH 27 |
#define IDS_MGST_DELLAYER 24 |
#define IDS_MGST_ENDSESSION 4 |
#define IDS_MGST_ERROR 25 |
#define IDS_MGST_FILE 28 |
#define IDS_MGST_FILEEXIST 47 |
#define IDS_MGST_FILENAME 36 |
#define IDS_MGST_FILETYPE 37 |
#define IDS_MGST_IGNORE 18 |
#define IDS_MGST_INFO 42 |
#define IDS_MGST_LASTMODTIME 34 |
#define IDS_MGST_LOCATION 29 |
#define IDS_MGST_LOGO 26 |
#define IDS_MGST_MAXIMIZE 7 |
#define IDS_MGST_MINIMIZE 6 |
#define IDS_MGST_NAME 31 |
#define IDS_MGST_NEXT 11 |
#define IDS_MGST_NO 15 |
#define IDS_MGST_NOTFOUND 39 |
#define IDS_MGST_NR 40 |
#define IDS_MGST_NW 41 |
#define IDS_MGST_OK 10 |
#define IDS_MGST_OPEN 35 |
#define IDS_MGST_OPENFILE 20 |
#define IDS_MGST_OPERATIONS 5 |
#define IDS_MGST_PREV 13 |
#define IDS_MGST_R 43 |
#define IDS_MGST_REFRESH 2 |
#define IDS_MGST_RESTORE 8 |
#define IDS_MGST_RETRY 17 |
#define IDS_MGST_SAVE 46 |
#define IDS_MGST_SAVEFILE 21 |
#define IDS_MGST_SHOWHIDEFILE 38 |
#define IDS_MGST_SIZE 32 |
#define IDS_MGST_START 1 |
#define IDS_MGST_SWITCHLAYER 23 |
#define IDS_MGST_UP 30 |
#define IDS_MGST_W 44 |
#define IDS_MGST_WINDOW 0 |
#define IDS_MGST_WR 45 |
#define IDS_MGST_YES 14 |
const char *GUIAPI GetSysText | ( | unsigned int | id | ) |
Translates system text to localized text.
When MiniGUI display some system messages, it will call GetSysText function to translate system text from English to other language. Global variable SysText contains all text used by MiniGUI in English.
GetSysText function returns localized text from local_SysText. MiniGUI have already defined localized sytem text for en_US, zh_CN.GB2312 and zh_TW.Big5 locales. MiniGUI initializes local_SysText to point one of above localized system text when startup. You can also let local_SysText point to your customized string array.
id | The system text id. |
const char **GUIAPI GetSysTextInUTF8 | ( | const char * | language | ) |
Gets the localized system text array in UTF-8 for a specified language.
This function returns the localized system text array in UTF-8 encode for the specified language. You can use the returned localized system text array to set local_SysText if your system logical fonts are using UNICODE/UTF-8 charset.
language | The language name. So far, you can specify the language as 'zh_CN' (for simlified Chinese) or 'zh_TW' (for tranditional Chinese). |
const char ** local_SysText |
The pointer to the current localized system text array.
Changing local_SysText will lead to GetSysText returns a different localized system text. Please set it when MiniGUI starts and send desktop a MSG_REINITSESSION message (call ReinitDesktop function) after assigned a different value to this variable.
const char * SysText[] |
Contains all text used by MiniGUI in English.
System text defined as follows in MiniGUI:
const char* SysText [] = { "Windows...", "Start...", "Refresh Background", "Close All Windows", "End Session", "Operations...", "Minimize", "Maximize", "Restore", "Close", "OK", "Next", "Cancel", "Previous", "Yes", "No", "Abort", "Retry", "Ignore", "About MiniGUI...", "Open File", "Save File", "Color Selection", "Switch Layer", "Delete Layer", "Error", "LOGO", "Current Path", "File", #if (!defined (__NOUNIX__) || defined (WIN32)) && defined (_MGCTRL_LISTVIEW) "Location", "Up", "Name", "Size", "Access Mode", "Last Modify Time", "Open", "File Name", "File Type", "Show Hide File", "Sorry! not find %s ", "Can't Read %s !", "Can't Write %s !", "Information", "R", "W", "WR", "Save", "File %s exists, Replace or not?", #endif NULL };