]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Clean up badly formatted strings in OembedAction
authorBrion Vibber <brion@pobox.com>
Fri, 9 Apr 2010 16:56:19 +0000 (09:56 -0700)
committerBrion Vibber <brion@pobox.com>
Fri, 9 Apr 2010 22:29:25 +0000 (15:29 -0700)
actions/oembed.php

index e287b6ae2a9563972ea2dac524bf379a8e789adb..4a11a85e097300866175f53c35fac1a7cd14d80f 100644 (file)
@@ -154,10 +154,12 @@ class OembedAction extends Action
                     $this->end_document('json');
                     break;
                 default:
-                    $this->serverError(_('content type ' . $apidata['content-type'] . ' not supported'), 501);
+                    // 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);
             }
         }else{
-            $this->serverError(_('Only ' . common_root_url() . ' urls over plain http please'), 404);
+            // 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);
         }
     }