Improve translatability and understanding for non-geeks.

This commit is contained in:
Andrew McMillan 2006-12-28 13:07:39 +13:00
parent f8aecfc746
commit 9102509d1a
2 changed files with 4 additions and 4 deletions

View File

@ -58,7 +58,7 @@ if ( $request->IsCollection() ) {
} }
} }
else { else {
$request->DoResponse( 404, ""); $request->DoResponse( 404 );
} }
} }
else { else {
@ -69,7 +69,7 @@ else {
if ( $qry->Exec("DELETE") && $qry->rows == 1 ) { if ( $qry->Exec("DELETE") && $qry->rows == 1 ) {
$delete_row = $qry->Fetch(); $delete_row = $qry->Fetch();
if ( (isset($request->etag_if_match) && $request->etag_if_match != $delete_row->dav_etag) ) { if ( (isset($request->etag_if_match) && $request->etag_if_match != $delete_row->dav_etag) ) {
$request->DoResponse( 412, translate("Resource does not match 'If-Match' header - not deleted") ); $request->DoResponse( 412, translate("Resource has changed on server - not deleted") );
} }
$qry = new PgQuery( "DELETE FROM caldav_data WHERE user_no = ? AND dav_name = ?;", $request->user_no, $request->path ); $qry = new PgQuery( "DELETE FROM caldav_data WHERE user_no = ? AND dav_name = ?;", $request->user_no, $request->path );
if ( $qry->Exec("DELETE") ) { if ( $qry->Exec("DELETE") ) {
@ -81,7 +81,7 @@ else {
} }
} }
else { else {
$request->DoResponse( 404, ""); $request->DoResponse( 404 );
} }
} }

View File

@ -77,7 +77,7 @@ elseif ( $qry->rows < 1 ) {
* entity exists, the server MUST NOT perform the requested method, and * entity exists, the server MUST NOT perform the requested method, and
* MUST return a 412 (Precondition Failed) response. * MUST return a 412 (Precondition Failed) response.
*/ */
$request->DoResponse( 412, translate("No existing resource matching 'If-Match' header - not accepted.") ); $request->DoResponse( 412, translate("Resource changed on server - not changed.") );
} }
$put_action_type = 'INSERT'; $put_action_type = 'INSERT';