public function u($string, $locale = null)
 {
     return Multilang::u($string, $locale);
 }
예제 #2
0
 /**
  * @dataProvider providerTestU
  */
 public function testU($string, $locale, $expected)
 {
     $this->assertSame($expected, Multilang::u($string, $locale));
 }
 protected function getEntityName($entity)
 {
     return is_callable([$entity, "getName"]) ? Multilang::u($entity->getName()) : $entity->getId();
 }