fix lang
This commit is contained in:
parent
ce2a2841a7
commit
6fe0e8c819
@ -71,10 +71,12 @@ struct KernelBranch {
|
||||
|
||||
fn main() -> glib::ExitCode {
|
||||
let current_locale = match env::var_os("LANG") {
|
||||
Some(v) => v.into_string().unwrap(),
|
||||
Some(v) => v.into_string().unwrap().chars()
|
||||
.take_while(|&ch| ch != '.')
|
||||
.collect::<String>(),
|
||||
None => panic!("$LANG is not set"),
|
||||
};
|
||||
rust_i18n::set_locale(current_locale.strip_suffix(".UTF-8").unwrap());
|
||||
rust_i18n::set_locale(¤t_locale);
|
||||
|
||||
let app = adw::Application::builder().application_id(APP_ID).build();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user