commit 577a2c1d785e56726c8177a5e2a865295baf219e Author: Joel Pittet Date: Tue Sep 2 19:56:00 2014 -0700 translate trait diff --git a/core/lib/Drupal/Core/Render/Element/MoreLink.php b/core/lib/Drupal/Core/Render/Element/MoreLink.php index a8db83b..4f7e90c 100644 --- a/core/lib/Drupal/Core/Render/Element/MoreLink.php +++ b/core/lib/Drupal/Core/Render/Element/MoreLink.php @@ -21,7 +21,7 @@ public function getInfo() { $class = get_class($this); $info = parent::getInfo(); return array( - '#title' => t('More'), + '#title' => $this->t('More'), '#theme_wrappers' => array( 'container' => array( '#attributes' => array('class' => 'more-link'), diff --git a/core/modules/forum/src/Plugin/Block/ForumBlockBase.php b/core/modules/forum/src/Plugin/Block/ForumBlockBase.php index 88d4780..f480892 100644 --- a/core/modules/forum/src/Plugin/Block/ForumBlockBase.php +++ b/core/modules/forum/src/Plugin/Block/ForumBlockBase.php @@ -28,7 +28,7 @@ public function build() { $elements['forum_more'] = array( '#type' => 'more_link', '#href' => 'forum', - '#attributes' => array('title' => t('Read the latest forum topics.')), + '#attributes' => array('title' => $this->t('Read the latest forum topics.')), ); } return $elements;