?? strings.cpp
字號:
}
//////////////////////////////////////////////////////////////////////////////////
// 表達式錯誤提示字符串
#ifdef CLKLAN_ENGLISH_US
char express_errparserstack[] = "Expression: Expression is too long and stack overflow.";
char express_errbadrange[] = "Expression: Value is out of range.";
char express_errexpression[] = "Expression: Strings error.";
char express_erroperator[] = "Expression: Operator Sign error.";
char express_erropenparen[] = "Expression: Open parenthesis error.";
char express_errcloseparen[] = "Expression: Close parenthesis error.";
char express_errinvalidnum[] = "Expression: Invalid number.";
char express_errmath[] = "Expression: Mathematical error.";
char express_errunknown[] = "Expression: Unknown.";
#else
char express_errparserstack[] = "表達式:表達式太長,棧溢出。";
char express_errbadrange[] = "表達式:數值超出范圍。";
char express_errexpression[] = "表達式:字符串出現錯誤。";
char express_erroperator[] = "表達式:操作符出現錯誤。";
char express_erropenparen[] = "表達式:左括號出現錯誤。";
char express_errcloseparen[] = "表達式:右括號出現錯誤。";
char express_errinvalidnum[] = "表達式:非法數字。";
char express_errmath[] = "表達式:數學計算出現錯誤。";
char express_errunknown[] = "表達式:未知錯誤。";
#endif
//////////////////////////////////////////////////////////////////////////////////
// 股票板塊字符串
#ifdef CLKLAN_ENGLISH_US
char domain_self[] = "Favorites";
#else
char domain_self[] = "自選股";
#endif
//////////////////////////////////////////////////////////////////////////////////
// 界面配色方案字符串
#ifdef CLKLAN_ENGLISH_US
char colorclass_standard[] = "Standard color schemes";
char colorclass_byzantinesque[] = "Byzantinesque color schemes";
char colorclass_gothic[] = "Gothic color schemes";
char colorclass_baroque[] = "Barococo color schemes";
#else
char colorclass_standard[] = "傳統式配色方案";
char colorclass_byzantinesque[] = "拜占庭式配色方案";
char colorclass_gothic[] = "哥特式配色方案";
char colorclass_baroque[] = "巴洛克式配色方案";
#endif
//////////////////////////////////////////////////////////////////////////////////
// 服務器說明、技術支持
#ifdef CLKLAN_ENGLISH_US
char sz_mainserverinfo[] = "Main Server";
char sz_mailsubjectsupport[] = "Support";
#else
char sz_mainserverinfo[] = "主服務器";
char sz_mailsubjectsupport[] = "技術支持";
#endif
//////////////////////////////////////////////////////////////////////////////////
// 周
#ifdef CLKLAN_ENGLISH_US
char sz_sunday[] = "Sunday";
char sz_monday[] = "Monday";
char sz_tuesday[] = "Tuesday";
char sz_wednesday[] = "Wednesday";
char sz_thursday[] = "Thursday";
char sz_friday[] = "Friday";
char sz_saturday[] = "Saturday";
#else
char sz_sunday[] = "星期日";
char sz_monday[] = "星期一";
char sz_tuesday[] = "星期二";
char sz_wednesday[] = "星期三";
char sz_thursday[] = "星期四";
char sz_friday[] = "星期五";
char sz_saturday[] = "星期六";
#endif
//////////////////////////////////////////////////////////////////////////////////
// 報表類型
#ifdef CLKLAN_ENGLISH_US
char sz_reportQuarter[] = "1st quarter";
char sz_reportMid[] = "midyear";
char sz_reportQuarter3[] = "3rd quarter";
char sz_reportAnnals[] = "annals";
#else
char sz_reportQuarter[] = "第一季度季報";
char sz_reportMid[] = "中報";
char sz_reportQuarter3[] = "第三季度季報";
char sz_reportAnnals[] = "年報";
#endif
//////////////////////////////////////////////////////////////////////////////////
// 數據字符串
#ifdef CLKLAN_ENGLISH_US
char db_errcreateselfdb[] = "Fail to create file, reinstall this software, please.";
char db_errrootpath[] = "Fail to initialize data, reinstall this software, please.";
char db_errqianlongpath[] = "Fail to read referred QianLong data source.";
#else
char db_errcreateselfdb[] = "創建數據文件失敗,請重新安裝本軟件,或者與軟件供應商聯系";
char db_errrootpath[] = "初始化數據失敗,請重新安裝本軟件,或者與軟件供應商聯系";
char db_errqianlongpath[] = "讀取指定的錢龍數據源失敗。";
#endif
//////////////////////////////////////////////////////////////////////////////////
// 策略字符串
#ifdef CLKLAN_ENGLISH_US
char strategy_logicand[] = "All";
char strategy_logicor[] = "Any";
char strategy_sdonce[] = "Full";
char strategy_sdtwice[] = "Half";
char strategy_sdthird[] = "One-third";
char strategy_sdforth[] = "Quarter";
char strategy_sdfifth[] = "One-fifth";
char strategy_sdsixth[] = "One-sixth";
char strategy_sdseventh[] = "One-seventh";
char strategy_sdeighth[] = "One-eighth";
char strategy_sdninth[] = "One-ninth";
char strategy_sdtenth[] = "One-tenth";
char strategy_noselectedstock[] = "there is no selected stock.";
char strategy_noselectedtech[] = "there is no selected indicator.";
char strategy_optype_buy[] = "Buy";
char strategy_optype_sell[] = "Sell";
char strategy_optype_addstock[] = "Add Stock";
char strategy_optype_removestock[] = "Remove Stock";
char strategy_optype_addcash[] = "Add Cash";
char strategy_optype_removecash[] = "Reduce Cash";
char strategy_errfile[] = "File type is not coincident, the file is not strategy file.";
char strategy_errfilever[] = "File version is not supported, please upgrade this software.";
#else
char strategy_logicand[] = "全部";
char strategy_logicor[] = "任意一個";
char strategy_sdonce[] = "全倉";
char strategy_sdtwice[] = "半倉";
char strategy_sdthird[] = "三分之一倉";
char strategy_sdforth[] = "四分之一倉";
char strategy_sdfifth[] = "五分之一倉";
char strategy_sdsixth[] = "六分之一倉";
char strategy_sdseventh[] = "七分之一倉";
char strategy_sdeighth[] = "八分之一倉";
char strategy_sdninth[] = "九分之一倉";
char strategy_sdtenth[] = "十分之一倉";
char strategy_noselectedstock[] = "沒有選中股票";
char strategy_noselectedtech[] = "沒有選中指標";
char strategy_optype_buy[] = "買入";
char strategy_optype_sell[] = "賣出";
char strategy_optype_addstock[] = "增加股票";
char strategy_optype_removestock[] = "減少股票";
char strategy_optype_addcash[] = "增加現金";
char strategy_optype_removecash[] = "減少現金";
char strategy_errfile[] = "文件類型不符,指定文件不是策略文件。";
char strategy_errfilever[] = "錯誤的文件版本:請升級軟件,以便可以讀取高版本的策略文件。";
#endif
//////////////////////////////////////////////////////////////////////////////////
// 快捷鍵
// 給定快捷鍵唯一編號,返回快捷鍵及其中文名稱
CSPString AfxGetAccelerator( UINT nAcce, int nCharLeft )
{
static CSPString acce_names[ACCE_MAX+1];
SP_ASSERT( ACCE_MAX >= 0 );
if( acce_names[0].GetLength() <= 0 )
{
// acce_names
acce_names[0] = "ACCENames";
#ifdef CLKLAN_ENGLISH_US
// 快捷鍵
acce_names[ACCE_01] = "01 Hot Key F1";
acce_names[ACCE_02] = "02 Hot Key F2";
acce_names[ACCE_03] = "03 Hot Key F3";
acce_names[ACCE_04] = "04 Hot Key F4";
acce_names[ACCE_05] = "05 Hot Key F5";
acce_names[ACCE_06] = "06 Hot Key F6";
acce_names[ACCE_07] = "07 Hot Key F7";
acce_names[ACCE_08] = "08 Hot Key F8";
acce_names[ACCE_09] = "09 Hot Key F9";
acce_names[ACCE_10] = "10 Hot Key F10";
acce_names[ACCE_1] = "1 Shanghai A Shares List";
acce_names[ACCE_2] = "2 Shanghai B Shares List";
acce_names[ACCE_3] = "3 Shenzhen A Shares List";
acce_names[ACCE_4] = "4 Shenzhen B Shares List";
acce_names[ACCE_5] = "5 Shanghai Bond List";
acce_names[ACCE_6] = "6 Shenzhen Bond List";
acce_names[ACCE_61] = "61 Shanghai A Shares Change";
acce_names[ACCE_62] = "62 Shanghai B Shares Change";
acce_names[ACCE_63] = "63 Shenzhen A Shares Change";
acce_names[ACCE_64] = "64 Shenzhen B Shares Change";
acce_names[ACCE_65] = "65 Shanghai Bond Change";
acce_names[ACCE_66] = "66 Shenzhen Bond Change";
acce_names[ACCE_71] = "71 Shanghai Info.";
acce_names[ACCE_72] = "72 Shenzhen Info.";
acce_names[ACCE_73] = "73 Stockjobber Info.";
acce_names[ACCE_81] = "81 Shanghai A Shares Sort";
acce_names[ACCE_82] = "82 Shanghai B Shares Sort";
acce_names[ACCE_83] = "83 Shenzhen A Shares Sort";
acce_names[ACCE_84] = "84 Shenzhen B Shares Sort";
acce_names[ACCE_85] = "85 Shanghai Bond Sort";
acce_names[ACCE_86] = "86 Shenzhen Bond Sort";
acce_names[ACCE_LBDK] = "LBDK Volume Ratio";
acce_names[ACCE_MMLD] = "MMLD Consign Ratio";
#else
// 快捷鍵
acce_names[ACCE_01] = "01 熱鍵F1";
acce_names[ACCE_02] = "02 熱鍵F2";
acce_names[ACCE_03] = "03 熱鍵F3";
acce_names[ACCE_04] = "04 熱鍵F4";
acce_names[ACCE_05] = "05 熱鍵F5";
acce_names[ACCE_06] = "06 熱鍵F6";
acce_names[ACCE_07] = "07 熱鍵F7";
acce_names[ACCE_08] = "08 熱鍵F8";
acce_names[ACCE_09] = "09 熱鍵F9";
acce_names[ACCE_10] = "10 熱鍵F10";
acce_names[ACCE_1] = "1 上A報價";
acce_names[ACCE_2] = "2 上B報價";
acce_names[ACCE_3] = "3 深A報價";
acce_names[ACCE_4] = "4 深B報價";
acce_names[ACCE_5] = "5 上債報價";
acce_names[ACCE_6] = "6 深債報價";
acce_names[ACCE_61] = "61 上A漲跌";
acce_names[ACCE_62] = "62 上B漲跌";
acce_names[ACCE_63] = "63 深A漲跌";
acce_names[ACCE_64] = "64 深B漲跌";
acce_names[ACCE_65] = "65 上債漲跌";
acce_names[ACCE_66] = "66 深債漲跌";
acce_names[ACCE_71] = "71 上證信息";
acce_names[ACCE_72] = "72 深證信息";
acce_names[ACCE_73] = "73 券商信息";
acce_names[ACCE_81] = "81 上A綜合";
acce_names[ACCE_82] = "82 上B綜合";
acce_names[ACCE_83] = "83 深A綜合";
acce_names[ACCE_84] = "84 深B綜合";
acce_names[ACCE_85] = "85 上債綜合";
acce_names[ACCE_86] = "86 深債綜合";
acce_names[ACCE_LBDK] = "LBDK 量比(多空)";
acce_names[ACCE_MMLD] = "MMLD 買賣力道(漲跌率)";
#endif
}
if( nAcce >= ACCE_MIN && nAcce <= ACCE_MAX )
{
if( 8 == nCharLeft )
return acce_names[nAcce];
CSPString strResult = acce_names[nAcce];
int nIndex = strResult.Find( ' ' );
if( -1 != nIndex )
strResult = strResult.Left(nIndex) + strResult.Mid(8);
return strResult;
}
return "";
}
//////////////////////////////////////////////////////////////////////////////////
// 國家或地區
void AfxGetAllDistrict( CSPStringArray & astr )
{
#ifdef CLKLAN_ENGLISH_US
astr.SetSize( 0, 30 );
astr.Add( "Australia & NZ" );
astr.Add( "Argentina" );
astr.Add( "Brazil" );
astr.Add( "Canada" );
astr.Add( "China" );
astr.Add( "Denmark" );
astr.Add( "France" );
astr.Add( "Germany" );
astr.Add( "Hong Kong" );
astr.Add( "India" );
astr.Add( "Italy" );
astr.Add( "Japan" );
astr.Add( "Korea" );
astr.Add( "Mexico" );
astr.Add( "Norway" );
astr.Add( "Singapore" );
astr.Add( "Spain" );
astr.Add( "Sweden" );
astr.Add( "Taiwan" );
astr.Add( "UK & Ireland" );
astr.Add( "U.S." );
astr.Add( "Other" );
#else
astr.SetSize( 0, 30 );
astr.Add( "澳大利亞" );
astr.Add( "阿根廷" );
astr.Add( "巴西" );
astr.Add( "加拿大" );
astr.Add( "中國" );
astr.Add( "丹麥" );
astr.Add( "法國" );
astr.Add( "德國" );
astr.Add( "中國香港" );
astr.Add( "印度" );
astr.Add( "意大利" );
astr.Add( "日本" );
astr.Add( "韓國" );
astr.Add( "墨西哥" );
astr.Add( "挪威" );
astr.Add( "新加坡" );
astr.Add( "西班牙" );
astr.Add( "瑞典" );
astr.Add( "中國臺灣" );
astr.Add( "英國" );
astr.Add( "美國" );
astr.Add( "其他" );
#endif
}
//////////////////////////////////////////////////////////////////////////////////
// 簡單翻譯
#define CHS_ENU_MAX_WORDS 32
typedef struct chs_enu_pair_t {
char chs[CHS_ENU_MAX_WORDS];
char enu[CHS_ENU_MAX_WORDS];
}CHS_ENU_PAIR;
CSPString AfxFaintlyChsToEnu( const char * szCh )
{
static CHS_ENU_PAIR chs_enu_pairs[] = {
{ "中國", " China " },
{ "指數", " Index " },
{ "上證", " Shanghai " },
{ "深證", " Shenzhen " },
{ "基金", " Fund " },
{ "國債", " Bond " },
{ "債券", " Bond " },
{ "轉債", " Convertible Bond " },
{ "銀行", " Bank " },
{ "其他", " Other " },
{ "銀行業", " Bank " },
{ "", "" },
};
CSPString sResult = szCh;
int i = 0;
while( * chs_enu_pairs[i].chs )
{
sResult.Replace( chs_enu_pairs[i].chs, chs_enu_pairs[i].enu );
i ++;
}
sResult.TrimLeft();
sResult.TrimRight();
return sResult;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -