Jelajahi Sumber

Use getTranslationDomain() in trans/tranchoice

Allows to override the getTranslationDomain() method in admins.
Emmanuel Vella 11 tahun lalu
induk
melakukan
6db2f43324
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      Admin/Admin.php

+ 2 - 2
Admin/Admin.php

@@ -2102,7 +2102,7 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
      */
     public function trans($id, array $parameters = array(), $domain = null, $locale = null)
     {
-        $domain = $domain ?: $this->translationDomain;
+        $domain = $domain ?: $this->getTranslationDomain();
 
         if (!$this->translator) {
             return $id;
@@ -2124,7 +2124,7 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
      */
     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;