Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complete Russian localization #1610

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 76 additions & 4 deletions PluginDemo/PluginDemo.rc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// ����(���壬�й�) resources
// ��������� (���������� ������, �����) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CHS)
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
Expand Down Expand Up @@ -145,12 +145,84 @@ BEGIN
IDS_CUSTOM_DRAW_ITEM "�Ի�ʾ��"
END

#endif // ����(���壬�й�) resources
#endif // ��������� (���������� ������, �����) resources
/////////////////////////////////////////////////////////////////////////////


/////////////////////////////////////////////////////////////////////////////
// Ӣ��(����) resources
// ������� (������) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_RUS)
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
#pragma code_page(1251)

/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_OPTIONS_DIALOG DIALOGEX 0, 0, 112, 67
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "��������� ���� � �������"
FONT 9, "Segoe UI", 400, 0, 0x0
BEGIN
DEFPUSHBUTTON "��",IDOK,7,46,48,14
PUSHBUTTON "������",IDCANCEL,57,46,48,14
GROUPBOX "������",IDC_STATIC,7,7,98,32
CONTROL "���������� �������",IDC_SHOW_SECOND_CHECK,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,20,81,10
END


/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO
BEGIN
IDD_OPTIONS_DIALOG, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 105
TOPMARGIN, 7
BOTTOMMARGIN, 60
END
END
#endif // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// AFX_DIALOG_LAYOUT
//

IDD_OPTIONS_DIALOG AFX_DIALOG_LAYOUT
BEGIN
0
END


/////////////////////////////////////////////////////////////////////////////
//
// String Table
//

STRINGTABLE
BEGIN
IDS_PLUGIN_NAME "������ ������� � TrafficMonitor"
IDS_PLUGIN_DESCRIPTION "������ ������� � TrafficMonitor ��� ������������� ��������"
IDS_TIME "�����"
IDS_DATE "����"
IDS_CUSTOM_DRAW_ITEM "������ ���������"
END

#endif // ������� (������) resources
/////////////////////////////////////////////////////////////////////////////


/////////////////////////////////////////////////////////////////////////////
// ���������� (���) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
Expand Down Expand Up @@ -217,7 +289,7 @@ BEGIN
IDS_CUSTOM_DRAW_ITEM "Custom draw example"
END

#endif // Ӣ��(����) resources
#endif // ���������� (���) resources
/////////////////////////////////////////////////////////////////////////////


Expand Down
33 changes: 22 additions & 11 deletions TrafficMonitor/AboutDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ void CAboutDlg::DoDataExchange(CDataExchange* pDX)
DDX_Control(pDX, IDC_STATIC_ACKNOWLEDGEMENT, m_acknowledgement);
DDX_Control(pDX, IDC_STATIC_GITHUB, m_github);
DDX_Control(pDX, IDC_STATIC_DONATE, m_donate);
DDX_Control(pDX, IDC_TRANSLATOR_STATIC, m_translaotr_static);
DDX_Control(pDX, IDC_TRANSLATOR_STATIC, m_translator_static);
DDX_Control(pDX, IDC_STATIC_LICENSE, m_license);
DDX_Control(pDX, IDC_OPENHARDWAREMONITOR_LINK, m_openhardwaremonitor_link);
DDX_Control(pDX, IDC_TINYXML2_LINK, m_tinyxml2_link);
Expand All @@ -50,8 +50,18 @@ BOOL CAboutDlg::OnInitDialog()
SetWindowText(CCommon::LoadText(IDS_TITLE_ABOUT));
m_mail.SetURL(_T("mailto:[email protected]")); //设置超链接
//m_check_update.SetURL(_T("http://pan.baidu.com/s/1c1LkPQ4"));
m_github.SetURL(_T("https://github.com/zhongyang219/TrafficMonitor"));
m_gitee.SetURL(_T("https://gitee.com/zhongyang219/TrafficMonitor"));
Language language_code = (Language)_ttoi(CCommon::LoadText(IDS_LANGUAGE_CODE));
if (language_code == Language::SIMPLIFIED_CHINESE || language_code == Language::TRADITIONAL_CHINESE)
{
m_github.SetURL(_T("https://github.com/zhongyang219/TrafficMonitor"));
m_gitee.SetURL(_T("https://gitee.com/zhongyang219/TrafficMonitor"));
}
else
{
m_github.SetURL(_T("https://github.com/zhongyang219/TrafficMonitor/blob/master/README_en-us.md"));
m_gitee.SetURL(_T("https://gitee.com/zhongyang219/TrafficMonitor/blob/master/README_en-us.md"));
}

m_donate.SetLinkIsURL(false);
m_acknowledgement.SetLinkIsURL(false);
m_license.SetLinkIsURL(false);
Expand Down Expand Up @@ -110,16 +120,17 @@ BOOL CAboutDlg::OnInitDialog()
m_tool_tip.SetMaxTipWidth(800);

//设置翻译者信息
int language_code;
language_code = _ttoi(CCommon::LoadText(IDS_LANGUAGE_CODE));
if (language_code == 1 || language_code == 2) //语言是简体中文和英文时不显示翻译者信息
m_translaotr_static.ShowWindow(SW_HIDE);
if (language_code == 3) //显示繁体中文翻译者的信息
CString translator_url = CCommon::LoadText(IDS_CONTACT_TRANSLATOR_URL);
if (translator_url == _T("<translator_url>"))
{
m_translator_static.ShowWindow(SW_HIDE);
}
else
{
m_translaotr_static.SetURL(_T("http://mkvq.blogspot.com/"));
m_tool_tip.AddTool(&m_translaotr_static, CCommon::LoadText(IDS_CONTACT_TRANSLATOR, _T("\r\nhttp://mkvq.blogspot.com/")));
m_translator_static.SetURL(translator_url);
m_tool_tip.AddTool(&m_translator_static, CCommon::LoadText(IDS_CONTACT_TRANSLATOR) + _T("\r\n") + translator_url);
}
m_translaotr_static.SetBackgroundColor(GetSysColor(COLOR_WINDOW));
m_translator_static.SetBackgroundColor(GetSysColor(COLOR_WINDOW));

//设置图片的位置
CRect rect;
Expand Down
2 changes: 1 addition & 1 deletion TrafficMonitor/AboutDlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class CAboutDlg : public CBaseDialog
CLinkStatic m_donate; //“捐助”超链接
CLinkStatic m_license; //“开源协议”超链接
CToolTipCtrl m_tool_tip; //鼠标指向时的工具提示
CLinkStatic m_translaotr_static;
CLinkStatic m_translator_static;
CLinkStatic m_openhardwaremonitor_link;
CLinkStatic m_tinyxml2_link;
CLinkStatic m_musicplayer2_link;
Expand Down
Loading