From: Siebrand Mazeland Date: Sat, 10 Apr 2010 23:08:51 +0000 (+0200) Subject: * DB -> Database in message X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=af06c554a0d8c4eeab801a9550d951845d40350a;p=quix0rs-gnu-social.git * DB -> Database in message * some translator documentation added --- diff --git a/classes/Notice.php b/classes/Notice.php index 998e9c92ba..dccc3685aa 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -172,7 +172,8 @@ class Notice extends Memcached_DataObject $id = $tag->insert(); if (!$id) { - throw new ServerException(sprintf(_('DB error inserting hashtag: %s'), + // TRANS: Server exception. %s are the error details. + throw new ServerException(sprintf(_('Database error inserting hashtag: %s'), $last_error->message)); return; } @@ -1507,6 +1508,8 @@ class Notice extends Memcached_DataObject { $author = Profile::staticGet('id', $this->profile_id); + // TRANS: Message used to repeat a notice. RT is the abbreviation of 'retweet'. + // TRANS: %1$s is the repeated user's name, %2$s is the repeated notice. $content = sprintf(_('RT @%1$s %2$s'), $author->nickname, $this->content);