From 881e3afbf2a31a23abd90870f6e64b5ae59d7788 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ren=C3=A9=20Sch=C3=BCmann?= <white06tiger@gmail.com>
Date: Thu, 25 Dec 2014 00:43:56 +0000
Subject: 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
---
 plugins/SendScreenshotPlus/src/Main.cpp      |  8 ++++----
 plugins/SendScreenshotPlus/src/UMainForm.cpp | 11 +++++------
 plugins/SendScreenshotPlus/src/version.h     |  2 +-
 3 files changed, 10 insertions(+), 11 deletions(-)

(limited to 'plugins')

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>
-- 
cgit v1.2.3