From kde-commits Wed Nov 07 21:51:22 2007 From: Thomas Reitelbach Date: Wed, 07 Nov 2007 21:51:22 +0000 To: kde-commits Subject: KDE/kdelibs/kioslave/http Message-Id: <1194472282.021284.25741.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=119447229324072 SVN commit 734035 by reitelbach: Add many i18n comments - they are needed because of string-puzzles :-/ A final solution would be to avoid the string puzzle somehow. BUG:151993 M +21 -21 http.cpp --- trunk/KDE/kdelibs/kioslave/http/http.cpp #734034:734035 @@ -1462,37 +1462,37 @@ switch ( m_request.method ) { case DAV_PROPFIND: - action = i18n( "retrieve property values" ); + action = i18nc( "request type", "retrieve property values" ); break; case DAV_PROPPATCH: - action = i18n( "set property values" ); + action = i18nc( "request type", "set property values" ); break; case DAV_MKCOL: - action = i18n( "create the requested folder" ); + action = i18nc( "request type", "create the requested folder" ); break; case DAV_COPY: - action = i18n( "copy the specified file or folder" ); + action = i18nc( "request type", "copy the specified file or folder" ); break; case DAV_MOVE: - action = i18n( "move the specified file or folder" ); + action = i18nc( "request type", "move the specified file or folder" ); break; case DAV_SEARCH: - action = i18n( "search in the specified folder" ); + action = i18nc( "request type", "search in the specified folder" ); break; case DAV_LOCK: - action = i18n( "lock the specified file or folder" ); + action = i18nc( "request type", "lock the specified file or folder" ); break; case DAV_UNLOCK: - action = i18n( "unlock the specified file or folder" ); + action = i18nc( "request type", "unlock the specified file or folder" ); break; case HTTP_DELETE: - action = i18n( "delete the specified file or folder" ); + action = i18nc( "request type", "delete the specified file or folder" ); break; case HTTP_OPTIONS: - action = i18n( "query the server's capabilities" ); + action = i18nc( "request type", "query the server's capabilities" ); break; case HTTP_GET: - action = i18n( "retrieve the contents of the specified file or folder" ); + action = i18nc( "request type", "retrieve the contents of the specified file or folder" ); break; case HTTP_PUT: case HTTP_POST: @@ -1504,7 +1504,7 @@ // default error message if the following code fails kError = ERR_INTERNAL; - errorString = i18n("An unexpected error (%1) occurred while attempting to %2.", + errorString = i18nc( "%1: code, %2: request type", "An unexpected error (%1) occurred while attempting to %2.", code , action ); switch ( code ) @@ -1553,7 +1553,7 @@ } //kError = ERR_SLAVE_DEFINED; - errorString = i18n("An error occurred while attempting to %1, %2. A " + errorString = i18nc( "%1: request type, %2: url", "An error occurred while attempting to %1, %2. A " "summary of the reasons is below.