summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordartraiden <wowemuh@gmail.com>2018-01-05 18:23:08 +0300
committerdartraiden <wowemuh@gmail.com>2018-01-05 18:23:08 +0300
commit703e6701f8bc7e3ee2684bb79c0e171fb3cf6a0c (patch)
treeee75b56a4aacb3e042e021d7e456c1389a6ec1bb /src
parent9bdbbbed70fec7f4bb6225c65638337bcc6f4f82 (diff)
no need to display langpack author e-mail (some authors already retired from project)
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/res/resource.rc4
-rw-r--r--src/mir_app/src/langpack.h2
-rw-r--r--src/mir_app/src/lpopts.cpp17
-rw-r--r--src/mir_app/src/resource.h2
-rw-r--r--src/mir_core/src/langpack.cpp4
5 files changed, 3 insertions, 26 deletions
diff --git a/src/mir_app/res/resource.rc b/src/mir_app/res/resource.rc
index 1ccb6827a8..c3130cb271 100644
--- a/src/mir_app/res/resource.rc
+++ b/src/mir_app/res/resource.rc
@@ -686,9 +686,7 @@ BEGIN
RTEXT "Current language:",IDC_STATIC,5,7,76,8
GROUPBOX "",IDC_LANGINFOFRAME,5,18,291,153,WS_GROUP
RTEXT "Author(s):",IDC_LANGAUTHORSLABEL,9,29,72,9,SS_NOPREFIX
- EDITTEXT IDC_LANGAUTHORS,86,27,206,61,ES_MULTILINE | ES_AUTOVSCROLL | ES_READONLY | WS_VSCROLL
- RTEXT "E-mail:",IDC_LANGEMAILLABEL,9,92,72,8,SS_NOPREFIX
- CONTROL "",IDC_LANGEMAIL,"Hyperlink",WS_TABSTOP,86,92,206,10
+ EDITTEXT IDC_LANGAUTHORS,86,27,206,71,ES_MULTILINE | ES_AUTOVSCROLL | ES_READONLY | WS_VSCROLL
RTEXT "Last modified using:",IDC_LANGMODUSINGLABEL,9,105,72,9,SS_NOPREFIX
EDITTEXT IDC_LANGMODUSING,86,105,206,12,ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER
RTEXT "Date:",IDC_LANGDATELABEL,9,118,72,9,SS_NOPREFIX
diff --git a/src/mir_app/src/langpack.h b/src/mir_app/src/langpack.h
index eb151d4b70..92d60c0fe8 100644
--- a/src/mir_app/src/langpack.h
+++ b/src/mir_app/src/langpack.h
@@ -40,7 +40,7 @@ struct LANGPACK_INFO
wchar_t tszLanguage[64];
LCID Locale;
WORD codepage;
- CMStringA szAuthors, szAuthorEmail, szLastModifiedUsing;
+ CMStringA szAuthors, szLastModifiedUsing;
FILETIME ftFileDate;
wchar_t tszFileName[MAX_PATH]; /* just the file name itself */
wchar_t tszFullPath[MAX_PATH]; /* full path to the langpack */
diff --git a/src/mir_app/src/lpopts.cpp b/src/mir_app/src/lpopts.cpp
index 2e9cc46566..c37af3109a 100644
--- a/src/mir_app/src/lpopts.cpp
+++ b/src/mir_app/src/lpopts.cpp
@@ -45,7 +45,6 @@ class CLangpackDlg : public CDlgBase
CCtrlCombo m_languages;
CCtrlBase m_infoFrame;
CCtrlBase m_authors;
- CCtrlButton m_email;
CCtrlBase m_lastModUsing;
CCtrlBase m_date;
CCtrlBase m_locale;
@@ -63,7 +62,6 @@ protected:
void OnDestroy();
void Languages_OnChange(CCtrlBase*);
- void Email_OnClick(CCtrlBase*);
void Reload_OnClick(CCtrlBase*);
public:
@@ -73,13 +71,12 @@ public:
CLangpackDlg::CLangpackDlg()
: CDlgBase(g_hInst, IDD_OPT_LANGUAGES),
m_languages(this, IDC_LANGUAGES), m_infoFrame(this, IDC_LANGINFOFRAME),
- m_authors(this, IDC_LANGAUTHORS), m_email(this, IDC_LANGEMAIL),
+ m_authors(this, IDC_LANGAUTHORS),
m_locale(this, IDC_LANGLOCALE), m_lastModUsing(this, IDC_LANGMODUSING),
m_date(this, IDC_LANGDATE), m_reload(this, IDC_RELOAD),
m_more(this, IDC_MORELANG, "https://wiki.miranda-ng.org/index.php?title=Langpacks/en#Download")
{
m_languages.OnChange = Callback(this, &CLangpackDlg::Languages_OnChange);
- m_email.OnClick = Callback(this, &CLangpackDlg::Email_OnClick);
m_reload.OnClick = Callback(this, &CLangpackDlg::Reload_OnClick);
}
@@ -126,7 +123,6 @@ void CLangpackDlg::LoadLangpacks()
pack.Locale = MAKELCID(MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US), SORT_DEFAULT);
mir_wstrcpy(pack.tszLanguage, L"English");
pack.szAuthors = "Miranda NG team";
- pack.szAuthorEmail = "project-info@miranda-ng.org";
DWORD v = Miranda_GetVersion();
pack.szLastModifiedUsing.Format("%d.%d.%d", ((v >> 24) & 0xFF), ((v >> 16) & 0xFF), ((v >> 8) & 0xFF));
@@ -198,7 +194,6 @@ void CLangpackDlg::DisplayPackInfo(const LANGPACK_INFO *pack)
m_lastModUsing.SetText(ptrW(mir_utf8decodeW(pack->szLastModifiedUsing)));
m_authors.SetText(ptrW(mir_utf8decodeW(pack->szAuthors)));
- m_email.SetText(ptrW(mir_utf8decodeW(pack->szAuthorEmail)));
m_infoFrame.SetText(TranslateW(pack->tszLanguage));
}
@@ -212,16 +207,6 @@ void CLangpackDlg::Languages_OnChange(CCtrlBase*)
m_reload.Enable((pack->flags & LPF_ENABLED) && !(pack->flags & LPF_DEFAULT));
}
-void CLangpackDlg::Email_OnClick(CCtrlBase*)
-{
- ptrA email(m_email.GetTextA());
- if (email) {
- char buf[512];
- mir_snprintf(buf, "mailto:%s", email);
- Utils_OpenUrl(buf);
- }
-}
-
void CLangpackDlg::Reload_OnClick(CCtrlBase*)
{
m_reload.Enable(FALSE);
diff --git a/src/mir_app/src/resource.h b/src/mir_app/src/resource.h
index ad127816eb..04055d5116 100644
--- a/src/mir_app/src/resource.h
+++ b/src/mir_app/src/resource.h
@@ -170,10 +170,8 @@
#define IDC_LANGAUTHORS 1004
#define IDC_FROM 1005
#define IDC_AUTOMIN 1005
-#define IDC_LANGEMAILLABEL 1005
#define IDC_DATE 1006
#define IDC_DUMPRECV 1006
-#define IDC_LANGEMAIL 1006
#define IDC_AUTOCLEAR 1007
#define IDC_LANGMODUSINGLABEL 1007
#define IDC_MSG 1008
diff --git a/src/mir_core/src/langpack.cpp b/src/mir_core/src/langpack.cpp
index 295edb9081..83885656fa 100644
--- a/src/mir_core/src/langpack.cpp
+++ b/src/mir_core/src/langpack.cpp
@@ -343,10 +343,6 @@ static int LoadLangDescr(LANGPACK_INFO &lpinfo, FILE *fp, char *line, int &start
szAuthors.AppendChar(' ');
szAuthors.Append(lrtrim(pszColon));
}
- else if (!mir_strcmp(line, "Author-email")) {
- lpinfo.szAuthorEmail = pszColon;
- lpinfo.szAuthorEmail.Trim();
- }
else if (!mir_strcmp(line, "Locale")) {
char szBuf[20], *stopped;