Browse Source

Add trans to the AdminInterface

Thomas Rabaix 13 years ago
parent
commit
4e48e9efde
1 changed files with 11 additions and 0 deletions
  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);
 }