Explorar o código

Add trans to the AdminInterface

Thomas Rabaix %!s(int64=13) %!d(string=hai) anos
pai
achega
4e48e9efde
Modificáronse 1 ficheiros con 11 adicións e 0 borrados
  1. 11 0
      Admin/AdminInterface.php

+ 11 - 0
Admin/AdminInterface.php

@@ -145,4 +145,15 @@ interface AdminInterface
      * @return void
      */
     function setParentFieldDescription(FieldDescriptionInterface $parentFieldDescription);
+
+    /**
+     * translate a message id
+     *
+     * @param string $id
+     * @param array $parameters
+     * @param null $domain
+     * @param null $locale
+     * @return string the translated string
+     */
+    function trans($id, array $parameters = array(), $domain = null, $locale = null);
 }