diff options
author | René Schümann <white06tiger@gmail.com> | 2014-12-25 00:43:56 +0000 |
---|---|---|
committer | René Schümann <white06tiger@gmail.com> | 2014-12-25 00:43:56 +0000 |
commit | 881e3afbf2a31a23abd90870f6e64b5ae59d7788 (patch) | |
tree | 09a88a42c37f8b5a08fce15b1b54a901677e7c49 /plugins/SendScreenshotPlus | |
parent | bccb121518429a0ef062b346d36551bd2ace5da2 (diff) |
SendSS:
* improved some user interaction messages and unified spelling ("Screenshot" now lowercase, "Send Screenshot" now called "SendSS")
* also updated version in case I won't be able to finish v0.9.0 with improved transparency capture support
Note: translations must be updated of course :P So LPGen required
git-svn-id: http://svn.miranda-ng.org/main/trunk@11620 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SendScreenshotPlus')
-rw-r--r-- | plugins/SendScreenshotPlus/src/Main.cpp | 8 | ||||
-rw-r--r-- | plugins/SendScreenshotPlus/src/UMainForm.cpp | 11 | ||||
-rw-r--r-- | plugins/SendScreenshotPlus/src/version.h | 2 |
3 files changed, 10 insertions, 11 deletions
diff --git a/plugins/SendScreenshotPlus/src/Main.cpp b/plugins/SendScreenshotPlus/src/Main.cpp index 23d5ac51ba..4088f562f1 100644 --- a/plugins/SendScreenshotPlus/src/Main.cpp +++ b/plugins/SendScreenshotPlus/src/Main.cpp @@ -73,14 +73,14 @@ TCHAR* GetCustomPath() { pszPath = mir_tstrdup(szPath); } if(!pszPath){ - MessageBox(NULL, _T("Can not retrieve Screenshot path."), _T("Send Screenshot"), MB_OK | MB_ICONERROR | MB_APPLMODAL); + MessageBox(NULL, _T("Can not retrieve screenshot path."), _T("SendSS"), MB_OK | MB_ICONERROR | MB_APPLMODAL); return 0; } int result = CreateDirectoryTreeT(pszPath); if(result){ TCHAR szError[MAX_PATH]; - mir_sntprintf(szError,MAX_PATH,TranslateT("Could not create Screenshot folder (error code: %d):\n%s\nDo you have write permissions?"),result,pszPath); - MessageBox(NULL, szError, _T("Send Screenshot"), MB_OK | MB_ICONERROR | MB_APPLMODAL); + mir_sntprintf(szError,MAX_PATH,TranslateT("Could not create screenshot folder (error code: %d):\n%s\nDo you have write permissions?"),result,pszPath); + MessageBox(NULL, szError, _T("SendSS"), MB_OK | MB_ICONERROR | MB_APPLMODAL); mir_free(pszPath); return 0; } @@ -255,7 +255,7 @@ DLL_EXPORT int Load(void) mir_getLP(&pluginInfo); INT_PTR result=CallService(MS_IMG_GETINTERFACE,FI_IF_VERSION,(LPARAM)&FIP); if(FIP==NULL || result!=S_OK) { - MessageBox(NULL, TranslateT("Fatal error, image services not found. SendScreenshot will be disabled."), TranslateT("Error"), MB_OK | MB_ICONERROR | MB_APPLMODAL); + MessageBox(NULL, TranslateT("Image services (AdvaImg) not found.\nSendSS disabled."), TranslateT("SendSS"), MB_OK | MB_ICONERROR | MB_APPLMODAL); return 1; } /// hook events diff --git a/plugins/SendScreenshotPlus/src/UMainForm.cpp b/plugins/SendScreenshotPlus/src/UMainForm.cpp index 184890fa96..b62ebb58d3 100644 --- a/plugins/SendScreenshotPlus/src/UMainForm.cpp +++ b/plugins/SendScreenshotPlus/src/UMainForm.cpp @@ -644,8 +644,8 @@ void TfrmMain::UMevent(WPARAM wParam, LPARAM lParam) { switch (lParam) { case EVT_CaptureDone: if (!m_Screenshot && m_opt_tabCapture!=2) { - TCHAR *err = TranslateT("Can't create a Screenshot"); - MessageBox(m_hWnd,err,ERROR_TITLE,MB_OK|MB_ICONWARNING); + TCHAR *err = TranslateT("Couldn't take a screenshot"); + MessageBox(NULL,err,ERROR_TITLE,MB_OK|MB_ICONWARNING); Show(); return; } @@ -654,14 +654,13 @@ void TfrmMain::UMevent(WPARAM wParam, LPARAM lParam) { case EVT_SendFileDone: break; case EVT_CheckOpenAgain: - if (m_opt_chkOpenAgain) { - if (m_Screenshot) { + if(m_opt_chkOpenAgain){ + if(m_Screenshot){ FIP->FI_Unload(m_Screenshot); m_Screenshot = NULL; } Show(); - }else{ - // Saving Options and close + }else{// Saving Options and close SaveOptions(); Close(); } diff --git a/plugins/SendScreenshotPlus/src/version.h b/plugins/SendScreenshotPlus/src/version.h index 5d0485b932..cea87e90ff 100644 --- a/plugins/SendScreenshotPlus/src/version.h +++ b/plugins/SendScreenshotPlus/src/version.h @@ -1,6 +1,6 @@ #define __MAJOR_VERSION 0 #define __MINOR_VERSION 8 -#define __RELEASE_NUM 7 +#define __RELEASE_NUM 9 #define __BUILD_NUM 0 #include <stdver.h> |