]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Update message formatting for serverError to use a starting capital and a leading...
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Fri, 9 Apr 2010 22:07:20 +0000 (00:07 +0200)
committerBrion Vibber <brion@pobox.com>
Fri, 9 Apr 2010 22:29:41 +0000 (15:29 -0700)
actions/all.php
actions/apitimelineretweetedbyme.php
actions/avatarsettings.php
actions/confirmaddress.php
actions/finishremotesubscribe.php
actions/oembed.php
actions/public.php
actions/remotesubscribe.php
actions/replies.php
actions/showfavorites.php
actions/tag.php

index 8c22e6f5f076337b5829a791129369beaef2b9db..a977fce95425f41383e5e209fb4a7145613cc234 100644 (file)
@@ -61,7 +61,7 @@ class AllAction extends ProfileAction
 
         if ($this->page > 1 && $this->notice->N == 0) {
             // TRANS: Server error when page not found (404)
-            $this->serverError(_('No such page'), $code = 404);
+            $this->serverError(_('No such page.'), $code = 404);
         }
 
         return true;
index 564e98619a8321f1f12f56de57786aa45e09a3bb..af05623cdf484144ab5ef3a58bd41c2209ba3bdb 100644 (file)
@@ -69,7 +69,7 @@ class ApiTimelineRetweetedByMeAction extends ApiAuthAction
     {
         parent::prepare($args);
 
-        $this->serverError('Unimplemented', 503);
+        $this->serverError('Unimplemented.', 503);
 
         return false;
     }
index d4ea11cb7e9deb03b3857e4abff3ee4608d5cd76..52dc2e42496aa1b8c27ef47bc232b76a6dcf279d 100644 (file)
@@ -103,7 +103,7 @@ class AvatarsettingsAction extends AccountSettingsAction
 
         if (!$profile) {
             common_log_db_error($user, 'SELECT', __FILE__);
-            $this->serverError(_('User without matching profile'));
+            $this->serverError(_('User without matching profile.'));
             return;
         }
 
@@ -182,7 +182,7 @@ class AvatarsettingsAction extends AccountSettingsAction
 
         if (!$profile) {
             common_log_db_error($user, 'SELECT', __FILE__);
-            $this->serverError(_('User without matching profile'));
+            $this->serverError(_('User without matching profile.'));
             return;
         }
 
index cc8351d8dcc0309ae593b77e120688fb571602c9..dc17499f551161b6f1f936daa862d7f158cd3ba5 100644 (file)
@@ -87,7 +87,7 @@ class ConfirmaddressAction extends Action
         }
         $type = $confirm->address_type;
         if (!in_array($type, array('email', 'jabber', 'sms'))) {
-            $this->serverError(sprintf(_('Unrecognized address type %s'), $type));
+            $this->serverError(sprintf(_('Unrecognized address type %s.'), $type));
             return;
         }
         if ($cur->$type == $confirm->address) {
index deee70f360625400b88f3c4047023597f31d7f12..ac51ddec3fbc825a2ad4f824d11d480406b7a239 100644 (file)
@@ -135,7 +135,7 @@ class FinishremotesubscribeAction extends Action
                             $service->getServiceURI(OMB_ENDPOINT_UPDATEPROFILE);
 
         if (!$remote->update($orig_remote)) {
-                $this->serverError(_('Error updating remote profile'));
+                $this->serverError(_('Error updating remote profile.'));
                 return;
         }
 
index 4a11a85e097300866175f53c35fac1a7cd14d80f..1503aa9c2b93718f182686fbca8710714449c559 100644 (file)
@@ -60,7 +60,7 @@ class OembedAction extends Action
             $proxy_args = $r->map($path);
 
             if (!$proxy_args) {
-                $this->serverError(_("$path not found"), 404);
+                $this->serverError(_("$path not found."), 404);
             }
             $oembed=array();
             $oembed['version']='1.0';
@@ -72,11 +72,11 @@ class OembedAction extends Action
                     $id = $proxy_args['notice'];
                     $notice = Notice::staticGet($id);
                     if(empty($notice)){
-                        $this->serverError(_("notice $id not found"), 404);
+                        $this->serverError(_("Notice $id not found."), 404);
                     }
                     $profile = $notice->getProfile();
                     if (empty($profile)) {
-                        $this->serverError(_('Notice has no profile'), 500);
+                        $this->serverError(_('Notice has no profile.'), 500);
                     }
                     if (!empty($profile->fullname)) {
                         $authorname = $profile->fullname . ' (' . $profile->nickname . ')';
@@ -95,7 +95,7 @@ class OembedAction extends Action
                     $id = $proxy_args['attachment'];
                     $attachment = File::staticGet($id);
                     if(empty($attachment)){
-                        $this->serverError(_("attachment $id not found"), 404);
+                        $this->serverError(_("Attachment $id not found."), 404);
                     }
                     if(empty($attachment->filename) && $file_oembed = File_oembed::staticGet('file_id', $attachment->id)){
                         // Proxy the existing oembed information
@@ -123,7 +123,7 @@ class OembedAction extends Action
                     if($attachment->title) $oembed['title']=$attachment->title;
                     break;
                 default:
-                    $this->serverError(_("$path not supported for oembed requests"), 501);
+                    $this->serverError(_("$path not supported for oembed requests."), 501);
             }
             switch($args['format']){
                 case 'xml':
@@ -155,11 +155,11 @@ class OembedAction extends Action
                     break;
                 default:
                     // TRANS: Error message displaying attachments. %s is a raw MIME type (eg 'image/png')
-                    $this->serverError(sprintf(_('content type %s not supported'), $apidata['content-type']), 501);
+                    $this->serverError(sprintf(_('Content type %s not supported.'), $apidata['content-type']), 501);
             }
         }else{
             // TRANS: Error message displaying attachments. %s is the site's base URL.
-            $this->serverError(sprintf(_('Only %s urls over plain http please'), common_root_url()), 404);
+            $this->serverError(sprintf(_('Only %s URLs over plain HTTP please.'), common_root_url()), 404);
         }
     }
 
index 0b3b5fde846fd23b2cbb4aedcce78e25f71363a8..8e9db10cafc421562ecb440440893299a965629b 100644 (file)
@@ -95,7 +95,7 @@ class PublicAction extends Action
 
         if($this->page > 1 && $this->notice->N == 0){
             // TRANS: Server error when page not found (404)
-            $this->serverError(_('No such page'),$code=404);
+            $this->serverError(_('No such page.'),$code=404);
         }
 
         return true;
index c723d53a1c3170d92be92d35966f6f57336aad80..9fc235e743a8deba34f2321e05b3254412f62dda 100644 (file)
@@ -188,7 +188,7 @@ class RemotesubscribeAction extends Action
         $profile = $user->getProfile();
         if (!$profile) {
             common_log_db_error($user, 'SELECT', __FILE__);
-            $this->serverError(_('User without matching profile'));
+            $this->serverError(_('User without matching profile.'));
             return;
         }
 
index 4ff1b7a8d20e7e8549d095ba838cfe82760b4760..608f71d6e0f4a011d1156e1ceaaa815c2a5a7018 100644 (file)
@@ -90,7 +90,7 @@ class RepliesAction extends OwnerDesignAction
 
         if($this->page > 1 && $this->notice->N == 0){
             // TRANS: Server error when page not found (404)
-            $this->serverError(_('No such page'),$code=404);
+            $this->serverError(_('No such page.'),$code=404);
         }
 
         return true;
index 5b85de6835d704c610a0dfc0e20b24f606569da7..4d776ef04cec23fce077c9e58b6c849a34757a89 100644 (file)
@@ -135,7 +135,7 @@ class ShowfavoritesAction extends OwnerDesignAction
 
         if($this->page > 1 && $this->notice->N == 0){
             // TRANS: Server error when page not found (404)
-            $this->serverError(_('No such page'),$code=404);
+            $this->serverError(_('No such page.'),$code=404);
         }
 
         return true;
index ee9617b662cd1d4185a00c2c6f142e511ff94042..9532404041597f44e94fe50fce2ac9725c37fca3 100644 (file)
@@ -49,7 +49,7 @@ class TagAction extends Action
 
         if($this->page > 1 && $this->notice->N == 0){
             // TRANS: Server error when page not found (404)
-            $this->serverError(_('No such page'),$code=404);
+            $this->serverError(_('No such page.'),$code=404);
         }
 
         return true;