addTextDomain() public method

Add text domain for gettext
public addTextDomain ( string $domain, string $path ) : self
$domain string of text for gettext setup
$path string on filesystem
return self
Example #1
0
 /**
  * Test Translator initialization
  *
  * @expectedException \Bluz\Common\Exception\ConfigurationException
  */
 public function testInvalidConfigurationThrowException()
 {
     $translator = new Translator();
     $translator->addTextDomain('any', '/this/directory/is/not/exists');
 }