Skip to content

Commit

Permalink
Use getTranslationDomain() in trans/tranchoice
Browse files Browse the repository at this point in the history
Allows to override the getTranslationDomain() method in admins.
  • Loading branch information
EmmanuelVella committed Dec 20, 2013
1 parent 2d129ea commit 6db2f43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Admin/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -2102,7 +2102,7 @@ public function getCurrentChildAdmin()
*/
public function trans($id, array $parameters = array(), $domain = null, $locale = null)
{
$domain = $domain ?: $this->translationDomain;
$domain = $domain ?: $this->getTranslationDomain();

if (!$this->translator) {
return $id;
Expand All @@ -2124,7 +2124,7 @@ public function trans($id, array $parameters = array(), $domain = null, $locale
*/
public function transChoice($id, $count, array $parameters = array(), $domain = null, $locale = null)
{
$domain = $domain ?: $this->translationDomain;
$domain = $domain ?: $this->getTranslationDomain();

if (!$this->translator) {
return $id;
Expand Down

0 comments on commit 6db2f43

Please sign in to comment.