diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-02-18 18:52:42 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-02-18 18:52:42 +0000 |
commit | 69840e65d8714972186c0cb70f13006a440bd739 (patch) | |
tree | a06713b0e2a1b292127951ca2cf13fc33a3384b3 /plugins | |
parent | 78b61b8fbd46d1689267a1d8e7ca0f315cf73543 (diff) |
changed message with file link
git-svn-id: http://svn.miranda-ng.org/main/trunk@8168 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/DropBox/src/dropBox_proto.cpp | 10 | ||||
-rw-r--r-- | plugins/DropBox/src/version.h | 2 |
2 files changed, 9 insertions, 3 deletions
diff --git a/plugins/DropBox/src/dropBox_proto.cpp b/plugins/DropBox/src/dropBox_proto.cpp index a9b9d08edb..ece6097cf3 100644 --- a/plugins/DropBox/src/dropBox_proto.cpp +++ b/plugins/DropBox/src/dropBox_proto.cpp @@ -162,7 +162,13 @@ bool DropBoxSendFileChunkedEnd(const char *fileName, const char *uploadId, MCONT if (root != NULL)
{
JSONNODE *node = json_get(root, "url");
- char *message = mir_utf8encodeW(json_as_string(node));
+ char message[1024];
+ mir_snprintf(
+ message,
+ SIZEOF(message),
+ Translate("Link to download file \"%s\": %s"),
+ fileName,
+ mir_utf8encodeW(json_as_string(node)));
DBEVENTINFO dbei = { sizeof(dbei) };
dbei.szModule = MODULE;
@@ -254,7 +260,7 @@ INT_PTR DropBoxSendFile(WPARAM wParam, LPARAM lParam) ftp->pfts.hContact = pccsd->hContact;
char **files = (char**)pccsd->lParam;
-
+
for (ftp->pfts.totalFiles = 0; files[ftp->pfts.totalFiles]; ftp->pfts.totalFiles++);
ftp->pfts.pszFiles = new char*[ftp->pfts.totalFiles + 1];
ftp->pfts.pszFiles[ftp->pfts.totalFiles] = NULL;
diff --git a/plugins/DropBox/src/version.h b/plugins/DropBox/src/version.h index dc8892c2de..65107a26a2 100644 --- a/plugins/DropBox/src/version.h +++ b/plugins/DropBox/src/version.h @@ -8,7 +8,7 @@ #define __PLUGIN_NAME "DropBox"
#define __INTERNAL_NAME "DropBox"
#define __FILENAME "DropBox.dll"
-#define __DESCRIPTION "Provide ability to load file on DropBox."
+#define __DESCRIPTION "Provides ability to upload files on DropBox."
#define __AUTHOR "unsane"
#define __AUTHOREMAIL ""
#define __AUTHORWEB "http://miranda-ng.org/p/DropBox/"
|