Sets the language directory path for a specific domain and locale.
Description
Also sets the ‘current’ property for direct access to the path for the current (most recent) locale.
Parameters
$domain
stringrequired- Text domain.
$locale
stringrequired- Locale.
$path
string|falserequired- Language directory path or false if there is none available.
Source
public function set( $domain, $locale, $path ) {
$this->all[ $domain ][ $locale ] = $path ? rtrim( $path, '/' ) . '/' : false;
$this->current[ $domain ] = $this->all[ $domain ][ $locale ];
}
Changelog
Version | Description |
---|---|
6.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.