mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-08 00:34:57 +03:00
Add Traditional Chinese language
Add Traditional Chinese language
This commit is contained in:
@ -148,21 +148,21 @@
|
||||
|
||||
// Specify the name of the person in charge building
|
||||
#ifndef BUILDER_NAME
|
||||
#define BUILDER_NAME "yagi"
|
||||
#define BUILDER_NAME "holoreimu"
|
||||
#endif // BUILDER_NAME
|
||||
|
||||
// Specify the location to build
|
||||
#ifndef BUILD_PLACE
|
||||
#define BUILD_PLACE "pc30"
|
||||
#define BUILD_PLACE "holoreimu-pc"
|
||||
#endif // BUILD_PLACE
|
||||
|
||||
// Specifies the build date
|
||||
#define BUILD_DATE_Y 2015
|
||||
#define BUILD_DATE_M 4
|
||||
#define BUILD_DATE_D 5
|
||||
#define BUILD_DATE_HO 2
|
||||
#define BUILD_DATE_MI 54
|
||||
#define BUILD_DATE_SE 8
|
||||
#define BUILD_DATE_M 5
|
||||
#define BUILD_DATE_D 19
|
||||
#define BUILD_DATE_HO 20
|
||||
#define BUILD_DATE_MI 55
|
||||
#define BUILD_DATE_SE 36
|
||||
|
||||
// Tolerable time difference
|
||||
#define ALLOW_TIMESTAMP_DIFF (UINT64)(3 * 24 * 60 * 60 * 1000)
|
||||
|
@ -1220,6 +1220,10 @@ UINT SwGetLangIcon(char *name)
|
||||
{
|
||||
ret = ICO_LANG_CHINESE;
|
||||
}
|
||||
else if (StrCmpi(name, "tw") == 0)
|
||||
{
|
||||
ret = ICO_LANG_TRADITIONAL_CHINESE;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
@ -329,6 +329,10 @@ UINT UpdateNoticeDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam, void
|
||||
{
|
||||
font_name = "Microsoft YaHei";
|
||||
}
|
||||
else if (_GETLANG() == 3)
|
||||
{
|
||||
font_name = "Microsoft JhengHei";
|
||||
}
|
||||
}
|
||||
|
||||
SetFont(hWnd, S_INFO, GetFont(font_name, 11, false, false, false, false));
|
||||
@ -1666,6 +1670,10 @@ HFONT GetMeiryoFontEx2(UINT font_size, bool bold)
|
||||
{
|
||||
return GetFont("Microsoft YaHei", font_size, bold, false, false, false);
|
||||
}
|
||||
else if (_GETLANG() == 3)
|
||||
{
|
||||
return GetFont("Microsoft JhengHei", font_size, bold, false, false, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
return GetFont(NULL, font_size, bold, false, false, false);
|
||||
@ -2254,6 +2262,11 @@ UINT KakushiDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam, void *par
|
||||
SetFont(hWnd, S_INFO, GetFont("Microsoft YaHei", 11, false, false, false, false));
|
||||
b = true;
|
||||
}
|
||||
else if (_GETLANG() == 3)
|
||||
{
|
||||
SetFont(hWnd, S_INFO, GetFont("Microsoft JhengHei", 11, false, false, false, false));
|
||||
b = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (b == false)
|
||||
@ -2865,6 +2878,10 @@ HFONT GetDialogDefaultFontEx(bool meiryo)
|
||||
{
|
||||
default_font_name = "Microsoft YaHei";
|
||||
}
|
||||
if (_GETLANG() == 3)
|
||||
{
|
||||
default_font_name = "Microsoft JhengHei";
|
||||
}
|
||||
else
|
||||
{
|
||||
default_font_name = GetMeiryoFontName();
|
||||
|
Reference in New Issue
Block a user