Skip to content

Commit

Permalink
IMPROVEMENT: wrap the getDrupalText() method in t() to ensure that we…
Browse files Browse the repository at this point in the history
… will get translated textual selectors
  • Loading branch information
BR0kEN- committed Jan 20, 2016
1 parent f9afaec commit e8d24bb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Context/RawTqContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,14 @@ public function getDrupalSelector($name)
return $selectors[$name];
}

/**
* {@inheritdoc}
*/
public function getDrupalText($name)
{
// Make text selectors translatable.
return t(parent::getDrupalText($name));
}

/**
* @param string $site
Expand Down

0 comments on commit e8d24bb

Please sign in to comment.