Skip to content

Commit 274f4a0

Browse files
authored
Merge pull request #266 from fox0/mock
Add gettextrs::bindtextdomain mock
2 parents cfb0aa7 + 3e932bc commit 274f4a0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

gettext-rs/src/lib.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,17 @@ where
1313
Ok(None)
1414
}
1515

16+
pub fn bindtextdomain<T, U>(
17+
_domainname: T,
18+
dirname: U,
19+
) -> Result<std::path::PathBuf, std::io::Error>
20+
where
21+
T: Into<Vec<u8>>,
22+
U: Into<std::path::PathBuf>,
23+
{
24+
Ok(dirname.into())
25+
}
26+
1627
pub fn textdomain<T: Into<Vec<u8>>>(domainname: T) -> Result<Vec<u8>, std::io::Error> {
1728
Ok(domainname.into())
1829
}

0 commit comments

Comments
 (0)