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, "");
|
||||
bindtextdomain(
|
||||
"blue-recorder",
|
||||
std::fs::canonicalize(Path::new("po"))
|
||||
.unwrap()
|
||||
.to_str()
|
||||
.unwrap(),
|
||||
{
|
||||
let mut current_exec_dir = std::env::current_exe().unwrap();
|
||||
current_exec_dir.pop();
|
||||
current_exec_dir
|
||||
}
|
||||
.join(Path::new("po")).to_str().unwrap(),
|
||||
);
|
||||
textdomain("blue-recorder");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user