From d3d85b655031a5998b8c9ff0ac2f191e2773a403 Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Tue, 12 Jan 2021 16:54:59 +0300 Subject: tdeio: minor improvement of translatability of a message * added plural forms Signed-off-by: Alexander Golubev --- tdeio/tdeio/global.cpp | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/tdeio/tdeio/global.cpp b/tdeio/tdeio/global.cpp index ff51ac19c..2b66b7576 100644 --- a/tdeio/tdeio/global.cpp +++ b/tdeio/tdeio/global.cpp @@ -1144,22 +1144,34 @@ TDEIO_EXPORT TQByteArray TDEIO::rawErrorDetail(int errorCode, const TQString &er break; case TDEIO::ERR_SERVER_TIMEOUT: + { + int connTimeout = KProtocolManager::connectTimeout(); + int respTimeout = KProtocolManager::responseTimeout(); + int prConnTimeout = KProtocolManager::proxyConnectTimeout(); errorName = i18n( "Timeout Error" ); - description = i18n( "Although contact was made with the server, a " - "response was not received within the amount of time allocated for " - "the request as follows:" - "Please note that you can alter these timeout settings in the TDE " - "Control Center, by selecting Network -> Preferences." ) - .arg( KProtocolManager::connectTimeout() ) - .arg( KProtocolManager::responseTimeout() ) - .arg( KProtocolManager::proxyConnectTimeout() ); + description = i18n("Although contact was made with the server, a " + "response was not received within the amount of time allocated for " + "the request as follows:") + .append(TQString::fromLatin1("")) + .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 " "requests to respond." ); solutions << sTryagain << sServeradmin; break; + } case TDEIO::ERR_UNKNOWN: errorName = i18n( "Unknown Error" ); -- cgit v1.2.1