mirror of
https://github.com/xlmnxp/blue-recorder.git
synced 2024-11-23 17:13:11 +03:00
absolute path for po
This commit is contained in:
parent
368e206c50
commit
10c0e2f7ef
10
src/main.rs
10
src/main.rs
@ -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");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user