summaryrefslogtreecommitdiffstats
path: root/tdeio
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2021-01-12 16:54:59 +0300
committerSlávek Banko <slavek.banko@axis.cz>2021-01-20 15:39:01 +0100
commitc9ecae160734067474d683e73848f1ac1a55f0f5 (patch)
tree870298e346e8ecc1877c3f03184449d28d6585f3 /tdeio
parent33bea5751035eca183b5b85f2da0c8348b94e393 (diff)
downloadtdelibs-c9ecae160734067474d683e73848f1ac1a55f0f5.tar.gz
tdelibs-c9ecae160734067474d683e73848f1ac1a55f0f5.zip
tdeio: minor improvement of translatability of a message
* added plural forms Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit d3d85b655031a5998b8c9ff0ac2f191e2773a403)
Diffstat (limited to 'tdeio')
-rw-r--r--tdeio/tdeio/global.cpp34
1 files 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:<ul>"
- "<li>Timeout for establishing a connection: %1 seconds</li>"
- "<li>Timeout for receiving a response: %2 seconds</li>"
- "<li>Timeout for accessing proxy servers: %3 seconds</li></ul>"
- "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("<ul><li>"))
+ .append(i18n("Timeout for establishing a connection: %1 second",
+ "Timeout for establishing a connection: %1 seconds",
+ connTimeout).arg(connTimeout))
+ .append(TQString::fromLatin1("</li><li>"))
+ .append(i18n("Timeout for receiving a response: %1 second",
+ "Timeout for receiving a response: %1 seconds",
+ 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 "
"requests to respond." );
solutions << sTryagain << sServeradmin;
break;
+ }
case TDEIO::ERR_UNKNOWN:
errorName = i18n( "Unknown Error" );