Skip to content
Snippets Groups Projects
Commit 21d4ce26 authored by AndreyL ProductEngine's avatar AndreyL ProductEngine
Browse files

INTL-324 added support for TLS failure dialog localization

parent c658e891
Branches
No related tags found
No related merge requests found
......@@ -483,42 +483,25 @@ void LLXMLRPCTransaction::Impl::setHttpStatus(const LLCore::HttpStatus &status)
{
CURLcode code = static_cast<CURLcode>(status.toULong());
std::string message;
std::string uri = "http://secondlife.com/community/support.php";
std::string uri = "http://support.secondlife.com";
LLURI failuri(mURI);
LLStringUtil::format_map_t args;
switch (code)
{
case CURLE_COULDNT_RESOLVE_HOST:
message =
std::string("DNS could not resolve the host name(") + failuri.hostName() + ").\n"
"Please verify that you can connect to the www.secondlife.com\n"
"web site. If you can, but continue to receive this error,\n"
"please go to the support section and report this problem.";
args["[HOSTNAME]"] = failuri.hostName();
message = LLTrans::getString("couldnt_resolve_host", args);
break;
case CURLE_SSL_PEER_CERTIFICATE:
message =
"The login server couldn't verify itself via SSL.\n"
"If you continue to receive this error, please go\n"
"to the Support section of the SecondLife.com web site\n"
"and report the problem.";
message = LLTrans::getString("ssl_peer_certificate");
break;
case CURLE_SSL_CACERT:
case CURLE_SSL_CONNECT_ERROR:
{
std::string uri_base = "https://community.secondlife.com/knowledgebase/english/error-messages-r520/#Section__3";
message =
"Often this means that your computer\'s clock is set incorrectly.\n"
"Please go to Control Panels and make sure the time and date\n"
"are set correctly.\n"
"Also check that your network and firewall are set up correctly.\n"
"If you continue to receive this error, please go\n"
"to the Support section of the SecondLife.com web site\n"
"and report the problem.\n\n[" + uri_base + " Knowledge Base]";
message = LLTrans::getString("ssl_connect_error");
break;
}
default:
break;
......
......@@ -4233,4 +4233,29 @@ Try enclosing path to the editor with double quotes.
The physics shape does not have correct version. Set the correct version for the physics model.
</string>
<!-- CURL error messages -->
<string name="couldnt_resolve_host">
DNS could not resolve the host name([HOSTNAME]).
Please verify that you can connect to the www.secondlife.com
web site. If you can, but continue to receive this error,
please go to the support section and report this problem.
</string>
<string name="ssl_peer_certificate">
The login server couldn't verify itself via SSL.
If you continue to receive this error, please go
to the Support section of the SecondLife.com web site
and report the problem.
</string>
<string name="ssl_connect_error">
Often this means that your computer's clock is set incorrectly.
Please go to Control Panels and make sure the time and date
are set correctly.
Also check that your network and firewall are set up correctly.
If you continue to receive this error, please go
to the Support section of the SecondLife.com web site
and report the problem.
[https://community.secondlife.com/knowledgebase/english/error-messages-r520/#Section__3 Knowledge Base]
</string>
</strings>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment