tdeio: minor improvement of translatability of a message

* added plural forms

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
pull/119/head
Alexander Golubev 4 years ago committed by TDE Gitea
parent 7ade45484d
commit d3d85b6550

@ -1144,22 +1144,34 @@ TDEIO_EXPORT TQByteArray TDEIO::rawErrorDetail(int errorCode, const TQString &er
break; break;
case TDEIO::ERR_SERVER_TIMEOUT: case TDEIO::ERR_SERVER_TIMEOUT:
{
int connTimeout = KProtocolManager::connectTimeout();
int respTimeout = KProtocolManager::responseTimeout();
int prConnTimeout = KProtocolManager::proxyConnectTimeout();
errorName = i18n( "Timeout Error" ); errorName = i18n( "Timeout Error" );
description = i18n( "Although contact was made with the server, a " description = i18n("Although contact was made with the server, a "
"response was not received within the amount of time allocated for " "response was not received within the amount of time allocated for "
"the request as follows:<ul>" "the request as follows:")
"<li>Timeout for establishing a connection: %1 seconds</li>" .append(TQString::fromLatin1("<ul><li>"))
"<li>Timeout for receiving a response: %2 seconds</li>" .append(i18n("Timeout for establishing a connection: %1 second",
"<li>Timeout for accessing proxy servers: %3 seconds</li></ul>" "Timeout for establishing a connection: %1 seconds",
"Please note that you can alter these timeout settings in the TDE " connTimeout).arg(connTimeout))
"Control Center, by selecting Network -> Preferences." ) .append(TQString::fromLatin1("</li><li>"))
.arg( KProtocolManager::connectTimeout() ) .append(i18n("Timeout for receiving a response: %1 second",
.arg( KProtocolManager::responseTimeout() ) "Timeout for receiving a response: %1 seconds",
.arg( KProtocolManager::proxyConnectTimeout() ); respTimeout).arg(respTimeout))
.append(TQString::fromLatin1("</li><li>"))
.append(i18n("Timeout for accessing proxy servers: %1 second",
"Timeout for accessing proxy servers: %1 seconds",
prConnTimeout).arg(prConnTimeout))
.append(TQString::fromLatin1("</li></ul>"))
.append(i18n("Please note that you can alter these timeout settings in the TDE "
"Control Center, by selecting Network -> Preferences." ));
causes << cNetpath << i18n( "The server was too busy responding to other " causes << cNetpath << i18n( "The server was too busy responding to other "
"requests to respond." ); "requests to respond." );
solutions << sTryagain << sServeradmin; solutions << sTryagain << sServeradmin;
break; break;
}
case TDEIO::ERR_UNKNOWN: case TDEIO::ERR_UNKNOWN:
errorName = i18n( "Unknown Error" ); errorName = i18n( "Unknown Error" );

Loading…
Cancel
Save