From 70c938b678146fb3ae65be2173e3ff27a513889c Mon Sep 17 00:00:00 2001 From: Dart Raiden Date: Sun, 27 Oct 2013 22:41:05 +0000 Subject: WebView: so much capitalization git-svn-id: http://svn.miranda-ng.org/main/trunk@6654 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/WebView/src/main.cpp | 24 ++++++++++++------------ plugins/WebView/src/webview.cpp | 6 +++--- plugins/WebView/src/webview_alerts.cpp | 16 ++++++++-------- plugins/WebView/src/webview_datawnd.cpp | 12 ++++++------ plugins/WebView/src/webview_opts.cpp | 8 ++++---- plugins/WebView/src/webview_services.cpp | 2 +- 6 files changed, 34 insertions(+), 34 deletions(-) (limited to 'plugins/WebView/src') diff --git a/plugins/WebView/src/main.cpp b/plugins/WebView/src/main.cpp index 9f642e8b28..7b90f167b9 100644 --- a/plugins/WebView/src/main.cpp +++ b/plugins/WebView/src/main.cpp @@ -188,7 +188,7 @@ extern "C" int __declspec(dllexport) Load() InitServices(); //add sound event to options - SkinAddNewSoundExT("webviewalert", _T(MODULENAME), LPGENT("Alert Event")); + SkinAddNewSoundExT("webviewalert", _T(MODULENAME), LPGENT("Alert event")); //value is 1 if menu is disabled db_set_b(NULL, MODULENAME, MENU_IS_DISABLED_KEY, 1); @@ -206,9 +206,9 @@ extern "C" int __declspec(dllexport) Load() mi.ptszPopupName = _T(MODULENAME); mi.hIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_SITE)); if (db_get_b(NULL, MODULENAME, DISABLE_AUTOUPDATE_KEY, 0)) - mi.ptszName = LPGENT("Auto Update Disabled"); + mi.ptszName = LPGENT("Auto update disabled"); else - mi.ptszName = LPGENT("Auto Update Enabled"); + mi.ptszName = LPGENT("Auto update enabled"); mi.pszService = "DisableWebview"; hMenuItem1 = Menu_AddMainMenuItem(&mi); @@ -221,7 +221,7 @@ extern "C" int __declspec(dllexport) Load() mi.position = 500090002; mi.hIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_UPDATEALL)); - mi.ptszName = LPGENT("Update All Webview Sites"); + mi.ptszName = LPGENT("Update all Webview sites"); mi.pszService = "UpdateAll"; Menu_AddMainMenuItem(&mi); @@ -233,7 +233,7 @@ extern "C" int __declspec(dllexport) Load() mi.position = 500090099; mi.hIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_MARKALLREAD)); - mi.ptszName = LPGENT("Mark All Webview Sites Read"); + mi.ptszName = LPGENT("Mark all Webview sites read"); mi.pszService = "MarkAllSitesRead"; Menu_AddMainMenuItem(&mi); @@ -243,7 +243,7 @@ extern "C" int __declspec(dllexport) Load() CreateServiceFunction("OpenCacheFolder", OpenCacheDir); mi.position = 500090099; mi.hIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_FOLDER)); - mi.ptszName = LPGENT("Open Cache Folder"); + mi.ptszName = LPGENT("Open cache folder"); mi.pszService = "OpenCacheFolder"; Menu_AddMainMenuItem(&mi); @@ -255,7 +255,7 @@ extern "C" int __declspec(dllexport) Load() mi.flags |= CMIF_KEEPUNTRANSLATED; TCHAR countername[100]; - mir_sntprintf(countername, SIZEOF(countername), TranslateT("%d Minutes to Update"), db_get_dw(NULL, MODULENAME, COUNTDOWN_KEY, 0)); + mir_sntprintf(countername, SIZEOF(countername), TranslateT("%d minutes to update"), db_get_dw(NULL, MODULENAME, COUNTDOWN_KEY, 0)); mi.position = 600090099; mi.hIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_UPDATEALL)); mi.pszContactOwner = NULL; @@ -286,31 +286,31 @@ extern "C" int __declspec(dllexport) Load() mi.position = 2222220; mi.pszService = "UpdateData"; mi.hIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_UPDATE)); - mi.ptszName = LPGENT("Update Data"); + mi.ptszName = LPGENT("Update data"); Menu_AddContactMenuItem(&mi); CreateServiceFunction("ContactOptions", CntOptionsMenuCommand); mi.pszService = "ContactOptions"; mi.hIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_OPTIONS)); - mi.ptszName = LPGENT("Contact Options"); + mi.ptszName = LPGENT("Contact options"); Menu_AddContactMenuItem(&mi); CreateServiceFunction("ContactAlertOpts", CntAlertMenuCommand); mi.pszService = "ContactAlertOpts"; mi.hIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_ALERT)); - mi.ptszName = LPGENT("Contact Alert Options"); + mi.ptszName = LPGENT("Contact alert options"); Menu_AddContactMenuItem(&mi); CreateServiceFunction("PingWebsite", PingWebsiteMenuCommand); mi.pszService = "PingWebsite"; mi.hIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_PING)); - mi.ptszName = LPGENT("Ping Web Site"); + mi.ptszName = LPGENT("Ping web site"); Menu_AddContactMenuItem(&mi); CreateServiceFunction("StopDataProcessing", StpPrcssMenuCommand); mi.pszService = "StopDataProcessing"; mi.hIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_STOP)); - mi.ptszName = LPGENT("Stop Data Processing"); + mi.ptszName = LPGENT("Stop data processing"); Menu_AddContactMenuItem(&mi); hWindowList = (HANDLE) CallService(MS_UTILS_ALLOCWINDOWLIST, 0, 0); diff --git a/plugins/WebView/src/webview.cpp b/plugins/WebView/src/webview.cpp index b47f9a63d1..5ce833865b 100644 --- a/plugins/WebView/src/webview.cpp +++ b/plugins/WebView/src/webview.cpp @@ -55,9 +55,9 @@ void ChangeMenuItem1() mi.hIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_SITE)); if (!db_get_b(NULL, MODULENAME, DISABLE_AUTOUPDATE_KEY, 0)) - mi.ptszName = LPGENT("Auto Update Enabled"); + mi.ptszName = LPGENT("Auto update enabled"); else - mi.ptszName = LPGENT("Auto Update Disabled"); + mi.ptszName = LPGENT("Auto update disabled"); CallService(MS_CLIST_MODIFYMENUITEM, (WPARAM)hMenuItem1, (LPARAM)&mi); } @@ -73,7 +73,7 @@ void ChangeMenuItemCountdown() mi.hIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_UPDATEALL)); TCHAR countername[100]; - mir_sntprintf(countername,SIZEOF(countername), TranslateT("%d Minutes to Update"), db_get_dw(NULL, MODULENAME, COUNTDOWN_KEY, 0)); + mir_sntprintf(countername,SIZEOF(countername), TranslateT("%d minutes to update"), db_get_dw(NULL, MODULENAME, COUNTDOWN_KEY, 0)); mi.ptszName = countername; CallService(MS_CLIST_MODIFYMENUITEM, (WPARAM)hMenuItemCountdown, (LPARAM)&mi); diff --git a/plugins/WebView/src/webview_alerts.cpp b/plugins/WebView/src/webview_alerts.cpp index 05a9864b53..5da24a6c4d 100644 --- a/plugins/WebView/src/webview_alerts.cpp +++ b/plugins/WebView/src/webview_alerts.cpp @@ -460,7 +460,7 @@ int ProcessAlerts(HANDLE hContact, char *truncated, char *tstr, char *contactnam HWND hwndDlg = WindowList_Find(hWindowList, hContact); SetDlgItemText(hwndDlg, IDC_STATUSBAR, TranslateT("Download successful; about to process data...")); } - else MessageBox(NULL, TranslateT("Unknown Alert Type."), _T(MODULENAME), MB_OK); + else MessageBox(NULL, TranslateT("Unknown alert type."), _T(MODULENAME), MB_OK); } } } @@ -504,13 +504,13 @@ int ProcessAlerts(HANDLE hContact, char *truncated, char *tstr, char *contactnam if (!notpresent) { if (alertIndex == 0) { // popup - WAlertPopup(hContact, TranslateT("The Web Page Has Changed.")); + WAlertPopup(hContact, TranslateT("The web page has changed.")); // contactlist name// if ( db_get_b(hContact, MODULENAME, APND_DATE_NAME_KEY, 0)) db_set_s(hContact, "CList", "MyHandle", tstr); } else if (alertIndex == 3) { // osd - WAlertOSD(hContact, TranslateT("The Web Page Has Changed.")); + WAlertOSD(hContact, TranslateT("The web page has changed.")); // contactlist name// if ( db_get_b(hContact, MODULENAME, APND_DATE_NAME_KEY, 0)) db_set_s(hContact, "CList", "MyHandle", tstr); @@ -555,7 +555,7 @@ int ProcessAlerts(HANDLE hContact, char *truncated, char *tstr, char *contactnam if ( db_get_b(hContact, MODULENAME, APND_DATE_NAME_KEY, 0)) db_set_s(hContact, "CList", "MyHandle", tstr); } - else MessageBox(NULL, TranslateT("Unknown Alert Type."), _T(MODULENAME), MB_OK); + else MessageBox(NULL, TranslateT("Unknown alert type."), _T(MODULENAME), MB_OK); } } } @@ -715,13 +715,13 @@ int ProcessAlerts(HANDLE hContact, char *truncated, char *tstr, char *contactnam if (!notpresent) { if (alertIndex == 0) { // popup - WAlertPopup(hContact, TranslateT("Specific Part Of The Web Page Has Changed.")); + WAlertPopup(hContact, TranslateT("Specific part of the web page has changed.")); // contactlist name// if ( db_get_b(hContact, MODULENAME, APND_DATE_NAME_KEY, 0)) db_set_s(hContact, "CList", "MyHandle", tstr); } else if (alertIndex == 3) { // osd - WAlertOSD(hContact, TranslateT("Specific Part Of The Web Page Has Changed.")); + WAlertOSD(hContact, TranslateT("Specific part of the web page has changed.")); // contactlist name// if ( db_get_b(hContact, MODULENAME, APND_DATE_NAME_KEY, 0)) db_set_s(hContact, "CList", "MyHandle", tstr); @@ -765,7 +765,7 @@ int ProcessAlerts(HANDLE hContact, char *truncated, char *tstr, char *contactnam if ( db_get_b(hContact, MODULENAME, APND_DATE_NAME_KEY, 0)) db_set_s(hContact, "CList", "MyHandle", tstr); } - else MessageBox(NULL, TranslateT("Unknown Alert Type."), _T(MODULENAME), MB_OK); + else MessageBox(NULL, TranslateT("Unknown alert type."), _T(MODULENAME), MB_OK); } } } @@ -890,6 +890,6 @@ void ReadFromFile(HANDLE hContact) Removewhitespace(truncated); SendToRichEdit(hwndDlg, truncated, TextClr, BackgoundClr); - SetDlgItemText(hwndDlg, IDC_STATUSBAR, TranslateT("Loaded From Cache")); + SetDlgItemText(hwndDlg, IDC_STATUSBAR, TranslateT("Loaded from cache")); } } diff --git a/plugins/WebView/src/webview_datawnd.cpp b/plugins/WebView/src/webview_datawnd.cpp index cfaae10b78..2c166e17ae 100644 --- a/plugins/WebView/src/webview_datawnd.cpp +++ b/plugins/WebView/src/webview_datawnd.cpp @@ -183,19 +183,19 @@ INT_PTR CALLBACK DlgProcDisplayData(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA SendDlgItemMessage(hwndDlg, IDC_DATA, EM_SETBKGNDCOLOR, 0, colour); SendDlgItemMessage(hwndDlg, IDC_UPDATE_BUTTON, BM_SETIMAGE, IMAGE_ICON, (LPARAM) LoadImage(hInst, MAKEINTRESOURCE(IDI_UPDATE), IMAGE_ICON, GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), 0)); - SendDlgItemMessage(hwndDlg, IDC_UPDATE_BUTTON, BUTTONADDTOOLTIP, (WPARAM) TranslateT("Update Data"), BATF_TCHAR); + SendDlgItemMessage(hwndDlg, IDC_UPDATE_BUTTON, BUTTONADDTOOLTIP, (WPARAM) TranslateT("Update data"), BATF_TCHAR); SendDlgItemMessage(hwndDlg, IDC_FIND_BUTTON, BM_SETIMAGE, IMAGE_ICON, (LPARAM) LoadImage(hInst, MAKEINTRESOURCE(IDI_FIND), IMAGE_ICON, GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), 0)); SendDlgItemMessage(hwndDlg, IDC_FIND_BUTTON, BUTTONADDTOOLTIP, (WPARAM) TranslateT("Find"), BATF_TCHAR); SendDlgItemMessage(hwndDlg, IDC_OPTIONS_BUTTON, BM_SETIMAGE, IMAGE_ICON, (LPARAM) LoadImage(hInst, MAKEINTRESOURCE(IDI_OPTIONS), IMAGE_ICON, GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), 0)); - SendDlgItemMessage(hwndDlg, IDC_OPTIONS_BUTTON, BUTTONADDTOOLTIP, (WPARAM) TranslateT("Contact Options"), BATF_TCHAR); + SendDlgItemMessage(hwndDlg, IDC_OPTIONS_BUTTON, BUTTONADDTOOLTIP, (WPARAM) TranslateT("Contact options"), BATF_TCHAR); SendDlgItemMessage(hwndDlg, IDC_ALERT_BUTTON, BM_SETIMAGE, IMAGE_ICON, (LPARAM) LoadImage(hInst, MAKEINTRESOURCE(IDI_ALERT), IMAGE_ICON, GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), 0)); - SendDlgItemMessage(hwndDlg, IDC_ALERT_BUTTON, BUTTONADDTOOLTIP, (WPARAM) TranslateT("Alert Options"), BATF_TCHAR); + SendDlgItemMessage(hwndDlg, IDC_ALERT_BUTTON, BUTTONADDTOOLTIP, (WPARAM) TranslateT("Alert options"), BATF_TCHAR); SendDlgItemMessage(hwndDlg, IDC_STOP, BM_SETIMAGE, IMAGE_ICON, (LPARAM) LoadImage(hInst, MAKEINTRESOURCE(IDI_STOP), IMAGE_ICON, GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), 0)); - SendDlgItemMessage(hwndDlg, IDC_STOP, BUTTONADDTOOLTIP, (WPARAM) TranslateT("Stop Processing"), BATF_TCHAR); + SendDlgItemMessage(hwndDlg, IDC_STOP, BUTTONADDTOOLTIP, (WPARAM) TranslateT("Stop processing"), BATF_TCHAR); SendDlgItemMessage(hwndDlg, IDC_OPEN_URL, BUTTONADDTOOLTIP, (WPARAM) TranslateT("Click here to open this URL in a browser window."), BATF_TCHAR); @@ -205,7 +205,7 @@ INT_PTR CALLBACK DlgProcDisplayData(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA } else { SendDlgItemMessage(hwndDlg, IDC_STICK_BUTTON, BM_SETIMAGE, IMAGE_ICON, (LPARAM) LoadImage(hInst, MAKEINTRESOURCE(IDI_STICK), IMAGE_ICON, GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), 0)); - SendDlgItemMessage(hwndDlg, IDC_STICK_BUTTON, BUTTONADDTOOLTIP, (WPARAM) TranslateT("Disable Stick to the Front"), BATF_TCHAR); + SendDlgItemMessage(hwndDlg, IDC_STICK_BUTTON, BUTTONADDTOOLTIP, (WPARAM) TranslateT("Disable stick to the front"), BATF_TCHAR); } SendDlgItemMessage(hwndDlg, IDC_DATA, WM_SETFONT, (WPARAM) h_font, 1); @@ -366,7 +366,7 @@ INT_PTR CALLBACK DlgProcDisplayData(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA } else { hTopmost = HWND_TOPMOST; - ptszToolTip = TranslateT("Disable Stick to the front"); + ptszToolTip = TranslateT("Disable stick to the front"); } SendDlgItemMessage(hwndDlg, IDC_STICK_BUTTON, BM_SETIMAGE, IMAGE_ICON, (LPARAM) LoadImage(hInst, MAKEINTRESOURCE(IDI_UNSTICK), IMAGE_ICON, GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), 0)); SendMessage(GetDlgItem(hwndDlg, IDC_STICK_BUTTON), BUTTONADDTOOLTIP, (WPARAM)ptszToolTip, BATF_TCHAR); diff --git a/plugins/WebView/src/webview_opts.cpp b/plugins/WebView/src/webview_opts.cpp index 2c4cfdc053..d7606ecb12 100644 --- a/plugins/WebView/src/webview_opts.cpp +++ b/plugins/WebView/src/webview_opts.cpp @@ -32,8 +32,8 @@ const TCHAR *szTrackerBarDescr[] = { }; static char *fontSizes[] = {"8", "10", "14", "16", "18", "20", "24", "28"}; -static TCHAR *AlertTypes[] = { LPGENT("Popup Plugin"), LPGENT("Log To File"), LPGENT("Open Data Display Window"), LPGENT("Use OSD Plugin") }; -static TCHAR *EventTypes[] = { LPGENT("A String Is Present"), LPGENT("The Web Page Changes"), LPGENT("A Specific Part of Web Page Changes") }; +static TCHAR *AlertTypes[] = { LPGENT("Popup plugin"), LPGENT("Log to file"), LPGENT("Open data display window"), LPGENT("Use OSD plugin") }; +static TCHAR *EventTypes[] = { LPGENT("A string is present"), LPGENT("The web page changes"), LPGENT("A specific part of web page changes") }; #define M_FILLSCRIPTCOMBO (WM_USER+16) @@ -289,7 +289,7 @@ INT_PTR CALLBACK DlgProcAlertOpt(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM l SetWindowLong(hwndDlg, GWLP_USERDATA, (LONG) hContact); - SetWindowText(hwndDlg, TranslateT("Alert Options")); + SetWindowText(hwndDlg, TranslateT("Alert options")); SendMessage(hwndDlg, WM_SETICON, ICON_SMALL, (LPARAM) LoadIcon(hInst, MAKEINTRESOURCE(IDI_ALERT))); @@ -829,7 +829,7 @@ INT_PTR CALLBACK DlgProcContactOpt(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM SetWindowLong(hwndDlg, GWLP_USERDATA, (LONG) hContact); WindowList_Add(hWindowList, hwndDlg, hContact); - SetWindowText(hwndDlg, TranslateT("Contact Options")); + SetWindowText(hwndDlg, TranslateT("Contact options")); SendMessage(hwndDlg, WM_SETICON, ICON_SMALL, (LPARAM) LoadIcon(hInst, MAKEINTRESOURCE(IDI_OPTIONS))); diff --git a/plugins/WebView/src/webview_services.cpp b/plugins/WebView/src/webview_services.cpp index 3c73882553..776c5431e1 100644 --- a/plugins/WebView/src/webview_services.cpp +++ b/plugins/WebView/src/webview_services.cpp @@ -359,7 +359,7 @@ INT_PTR AddToList(WPARAM wParam, LPARAM lParam) } if (psr->nick == NULL) { - WErrorPopup("ERROR", TranslateT("Please select site in Find/Add Contacts...")); + WErrorPopup("ERROR", TranslateT("Please select site in Find/Add contacts...")); return 0; } -- cgit v1.2.3