summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-04-24 07:12:08 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-04-24 07:12:08 +0000
commit66a56e980af1a828d1fb5af2377c4c7610076b5b (patch)
tree7a7cfbbe961f56660cbccd9793d95d68fc8bf57b /protocols
parent7e1477be3298984527610a8b433f7115f97da9f1 (diff)
added messagebox text
git-svn-id: http://svn.miranda-ng.org/main/trunk@4522 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Skype/src/skype.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/protocols/Skype/src/skype.cpp b/protocols/Skype/src/skype.cpp
index 9f080883bb..a385020a33 100644
--- a/protocols/Skype/src/skype.cpp
+++ b/protocols/Skype/src/skype.cpp
@@ -257,19 +257,22 @@ int StartSkypeRuntime(HINSTANCE hInstance, const wchar_t *profileName, int &port
extern "C" int __declspec(dllexport) Load(void)
{
+ mir_getTMI(&tmi);
+ mir_getLP(&pluginInfo);
+
int port = 8963;
VARST profilename( _T("%miranda_profilename%"));
if ( !StartSkypeRuntime(g_hInstance, (TCHAR*)profilename, port))
{
- ::MessageBoxA(NULL, "", MODULE, MB_OK | MB_ICONERROR);
+ ::MessageBox(NULL, TranslateT("Proccess SkypeKit.exe did not start."), _T(MODULE), MB_OK | MB_ICONERROR);
return 1;
}
char *keyPair = LoadKeyPair(g_hInstance);
if ( !keyPair)
{
- ::MessageBoxA(NULL, "", MODULE, MB_OK | MB_ICONERROR);
+ ::MessageBox(NULL, TranslateT("Initialization key corrupted or not valid."), _T(MODULE), MB_OK | MB_ICONERROR);
return 1;
}
@@ -277,13 +280,13 @@ extern "C" int __declspec(dllexport) Load(void)
TransportInterface::Status status = g_skype->init(keyPair, "127.0.0.1", port);
if (status != TransportInterface::OK)
{
- ::MessageBoxA(NULL, "", MODULE, MB_OK | MB_ICONERROR);
+ ::MessageBox(NULL, TranslateT("SkypeKit did not initialize."), _T(MODULE), MB_OK | MB_ICONERROR);
return 1;
}
if ( !g_skype->start())
{
- ::MessageBoxA(NULL, "", MODULE, MB_OK | MB_ICONERROR);
+ ::MessageBox(NULL, TranslateT("SkypeKit did not start."), _T(MODULE), MB_OK | MB_ICONERROR);
return 1;
}
@@ -291,9 +294,6 @@ extern "C" int __declspec(dllexport) Load(void)
// ---
- mir_getTMI(&tmi);
- mir_getLP(&pluginInfo);
-
PROTOCOLDESCRIPTOR pd = { sizeof(pd) };
pd.szName = "SKYPE";
pd.type = PROTOTYPE_PROTOCOL;