Skip to content
Snippets Groups Projects
Commit 68a7c4cb authored by Oz Linden's avatar Oz Linden
Browse files

merge changes for vwr-25654

parents a98c22e9 20a48876
No related branches found
No related tags found
No related merge requests found
...@@ -76,6 +76,7 @@ Aleric Inglewood ...@@ -76,6 +76,7 @@ Aleric Inglewood
VWR-13996 VWR-13996
VWR-14426 VWR-14426
VWR-24247 VWR-24247
VWR-25654
VWR-24251 VWR-24251
VWR-24252 VWR-24252
VWR-24254 VWR-24254
...@@ -209,6 +210,7 @@ Boroondas Gupte ...@@ -209,6 +210,7 @@ Boroondas Gupte
STORM-1182 STORM-1182
VWR-233 VWR-233
VWR-20583 VWR-20583
VWR-25654
VWR-20891 VWR-20891
VWR-23455 VWR-23455
VWR-24487 VWR-24487
......
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
#include "lltranslate.h" #include "lltranslate.h"
#include <curl/curl.h>
#include "llbufferstream.h" #include "llbufferstream.h"
#include "llui.h" #include "llui.h"
#include "llversioninfo.h" #include "llversioninfo.h"
...@@ -76,7 +78,9 @@ void LLTranslate::translateMessage(LLHTTPClient::ResponderPtr &result, const std ...@@ -76,7 +78,9 @@ void LLTranslate::translateMessage(LLHTTPClient::ResponderPtr &result, const std
//static //static
void LLTranslate::getTranslateUrl(std::string &translate_url, const std::string &from_lang, const std::string &to_lang, const std::string &mesg) void LLTranslate::getTranslateUrl(std::string &translate_url, const std::string &from_lang, const std::string &to_lang, const std::string &mesg)
{ {
std::string escaped_mesg = curl_escape(mesg.c_str(), mesg.size()); char * curl_str = curl_escape(mesg.c_str(), mesg.size());
std::string const escaped_mesg(curl_str);
curl_free(curl_str);
translate_url = m_GoogleURL translate_url = m_GoogleURL
+ escaped_mesg + m_GoogleLangSpec + escaped_mesg + m_GoogleLangSpec
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment