gettextrs

Function bindtextdomain

source
pub fn bindtextdomain<T, U>(domainname: T, dirname: U) -> Result<PathBuf, Error>
where T: Into<Vec<u8>>, U: Into<PathBuf>,
Expand description

Specify the directory that contains MO files for the given domain.

Returns the current directory for given domain, after possibly changing it.

If you want to get domain directory, rather than set it, use getters::domain_directory.

For more information, see bindtextdomain(3).

§Panics

Panics if domainname or dirname contain an internal 0 byte, as such values can’t be passed to the underlying C API.