public function addTextDomain($domain, $path): void
    {
        // check path
        if (!is_dir($path)) {
            throw new ConfigurationException("Translator configuration path `$path` not found");
        }

        bindtextdomain($domain, $path);

        // @todo: hardcoded codeset
        bind_textdomain_codeset($domain, 'UTF-8');
    }
public function addTextDomain($domain, $path): void
    {
        // check path
        if (!is_dir($path)) {
            throw new ConfigurationException("Translator configuration path `$path` not found");
        }

        bindtextdomain($domain, $path);

        // @todo: hardcoded codeset
        bind_textdomain_codeset($domain, 'UTF-8');
    }
public function addTextDomain ( $ domain , $ path ) : void { // check path if ( ! is_dir ( $ path ) ) { throw new ConfigurationException ( "Translator configuration path `$path` not found" ) ; } bindtextdomain ( $ domain , $ path ) ; // @todo: hardcoded codeset bind_textdomain_codeset ( $ domain , 'UTF-8' ) ; }
Add text domain for gettext

@param  string $domain of text for gettext setup
@param  string $path   on filesystem

@return void
@throws ConfigurationException
Add text domain for gettext