absolute path for po

This commit is contained in:
Salem Yaslem 2021-02-22 18:11:16 +03:00
parent 368e206c50
commit 10c0e2f7ef

View File

@ -47,10 +47,12 @@ fn main() {
setlocale(LocaleCategory::LcAll, ""); setlocale(LocaleCategory::LcAll, "");
bindtextdomain( bindtextdomain(
"blue-recorder", "blue-recorder",
std::fs::canonicalize(Path::new("po")) {
.unwrap() let mut current_exec_dir = std::env::current_exe().unwrap();
.to_str() current_exec_dir.pop();
.unwrap(), current_exec_dir
}
.join(Path::new("po")).to_str().unwrap(),
); );
textdomain("blue-recorder"); textdomain("blue-recorder");