Add dedicated setting for description change activities

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2018-11-16 14:53:45 +01:00
parent e1080ffd98
commit 43a11327a6
4 changed files with 63 additions and 3 deletions

View File

@@ -24,8 +24,20 @@
namespace OCA\Deck\Activity;
use OCP\IL10N;
class Setting implements \OCP\Activity\ISetting {
/** @var IL10N */
protected $l;
/**
* @param IL10N $l
*/
public function __construct(IL10N $l) {
$this->l = $l;
}
/**
* @return string Lowercase a-z and underscore only identifier
* @since 11.0.0
@@ -39,7 +51,7 @@ class Setting implements \OCP\Activity\ISetting {
* @since 11.0.0
*/
public function getName() {
return 'Deck';
return $this->l->t('Changes in the <strong>Deck app</strong>');
}
/**