summaryrefslogtreecommitdiff
path: root/actions/oembed.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-04-09 09:56:19 -0700
committerBrion Vibber <brion@pobox.com>2010-04-09 15:29:25 -0700
commit58d5d7baeec6fae77ac5d3e82e6072725fe9bf1b (patch)
tree1d8a1da1115343e2a7710d98ce3bf0de93e0788f /actions/oembed.php
parent6fb60fb57f9ab604e1d77dc846eb48b978c31994 (diff)
Clean up badly formatted strings in OembedAction
Diffstat (limited to 'actions/oembed.php')
-rw-r--r--actions/oembed.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/actions/oembed.php b/actions/oembed.php
index e287b6ae2..4a11a85e0 100644
--- a/actions/oembed.php
+++ b/actions/oembed.php
@@ -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);
}
}