From 6fe0e8c819747d89a49eb934458eed424def4b87 Mon Sep 17 00:00:00 2001 From: Ward from fusion-voyager-3 Date: Sun, 23 Jun 2024 17:41:37 +0300 Subject: [PATCH] fix lang --- Makefile | 26 +++++++++++++------------- core | Bin 10530816 -> 10530816 bytes src/main.rs | 6 ++++-- 3 files changed, 17 insertions(+), 15 deletions(-) diff --git a/Makefile b/Makefile index e5ef72d..1d3557f 100644 --- a/Makefile +++ b/Makefile @@ -25,16 +25,16 @@ install: mkdir -p $(DESTDIR)/usr/bin/ cargo fetch cargo build --release - cp -vf target/release/fedora-kernel-manager $(DESTDIR)/usr/bin/ - chmod 755 $(DESTDIR)/usr/bin/fedora-kernel-manager - mkdir -p $(DESTDIR)/usr/lib/fedora-kernel-manager/ - cp -rvf data/scripts $(DESTDIR)/usr/lib/fedora-kernel-manager/ - chmod 755 $(DESTDIR)/usr/lib/fedora-kernel-manager/scripts/*.sh - cp -rvf data/locales $(DESTDIR)/usr/lib/fedora-kernel-manager/ - cp -rvf data/kernel_branches $(DESTDIR)/usr/lib/fedora-kernel-manager/ - cp -vf data/scx_scheds.json $(DESTDIR)/usr/lib/fedora-kernel-manager/ - mkdir -p $(DESTDIR)/usr/share/applications - mkdir -p $(DESTDIR)/usr/share/icons/hicolor/scalable/apps - cp -vf data/com.github.cosmicfusion.fedora-kernel-manager.svg $(DESTDIR)/usr/share/icons/hicolor/scalable/apps/ - cp -vf data/com.github.cosmicfusion.fedora-kernel-manager.desktop $(DESTDIR)/usr/share/applications/ - cp -rvf data/polkit-1 $(DESTDIR)/usr/share/ \ No newline at end of file + cp -vf target/release/fedora-kernel-manager $(DESTDIR)/usr/bin/ + chmod 755 $(DESTDIR)/usr/bin/fedora-kernel-manager + mkdir -p $(DESTDIR)/usr/lib/fedora-kernel-manager/ + cp -rvf data/scripts $(DESTDIR)/usr/lib/fedora-kernel-manager/ + chmod 755 $(DESTDIR)/usr/lib/fedora-kernel-manager/scripts/*.sh + cp -rvf data/locales $(DESTDIR)/usr/lib/fedora-kernel-manager/ + cp -rvf data/kernel_branches $(DESTDIR)/usr/lib/fedora-kernel-manager/ + cp -vf data/scx_scheds.json $(DESTDIR)/usr/lib/fedora-kernel-manager/ + mkdir -p $(DESTDIR)/usr/share/applications + mkdir -p $(DESTDIR)/usr/share/icons/hicolor/scalable/apps + cp -vf data/com.github.cosmicfusion.fedora-kernel-manager.svg $(DESTDIR)/usr/share/icons/hicolor/scalable/apps/ + cp -vf data/com.github.cosmicfusion.fedora-kernel-manager.desktop $(DESTDIR)/usr/share/applications/ + cp -rvf data/polkit-1 $(DESTDIR)/usr/share/ \ No newline at end of file diff --git a/core b/core index cc7a3d70c01674426dd01d60e70321259173b285..5e4a085572cdc1b56d15b19bbf84587199bb3e6b 100644 GIT binary patch delta 16796 zcmeHOYj{&ty532e5@^BDmeNWKDNrerLJBREOEm>5;BX00pvWz4p-D%C%EhT#OrkV^ zq6Uhtia@s`I3PF%Mbm>0lZ+h(BSO6)jHp3pMrO`9(*bA1^B|mcc~`rMbNPAxoIKB$ zcYojdZtJqw-h1t}y|IUlUP{3NoguhH-&CmEXEax~eYl=PzH_EN{n~C5rEc5xy^R(o zZA#aVGS*eIqnY%`yqsxPS{J91@Gs|?n$GEynhxoE8f`z2XP6vJrYH(I{9!}iCbJ>a z7_4D_h8sp1Ee-6bh91@Vn8$6i7N<64CZ?t&QUk@lll?17keA&U?W&CvX+|XSr$smG{z5JsZ5Wajd~2zmH${V}bNFvhQhP} z|HN){H*4yZ7lfl>FbcOWX}XY_Pr{cMn3}G3v)*)LQo2{im{N2Gntjvs?pG6@`G$s{ z-XlBprT|apCU`l(ksu2AL6fF$NXoJt^m7lKR6K{7B0A5M**T(iGZ5 z@+Uip4?!uU*vYeDqiG2~9BDZpe~My|Cg2r5`ZRLz3Lk!olEC%N^dAC6<>PYK7`6P> zKO~rm<<(OuDLP_KSzvoQZ$ZNLl(&WWky9y~PNnE5=_wf~B~UU_N~F|{l8I7x zNP?CHNu`uVsSl-eN_{D1P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;_L<@PA$DnukuwqB z5#KZ5*7e88JI5QLHHi;`;MCY{Gi-^A&x^}j@wGOq7;Cf+q1BG}jD`LE>H5`dq0PvO z<9fEuW>mnpUS$FPt(S;k?L6{!$zXADa{c#03ooWrdj~t5yfRIGVf%u{P6vR1*Rft~1rx9rg#u0;GOHBj0tzyuB{JAgi z9egGaO5KSQoj!1DE||VsfWWej4e7_Gt(G(_tZ_>w{5H2l2iR) z%|jb&HgBlezO7;Eyn8BEx$?9{ORAR6FRoa$bji9!B}Ms;`nvVC8)`Qc)YdqrUaH-_v~u~9;<9xs zDwdZPmlqYx%A20+$Ynzcja6}Z1qHcmW1%rYat8~IwW)d29W%5=ADrA6_u`a zC5u+L%8FMN&C1nQEG(-kE3&h!nTCTk%rbTj#9m^b%`zr?dHO3#SFGS21RYjdgr!utaRPds?z1l7nPJ2-S_R9&D*wb(pDC)Dl1-6(pMik=h#KJP~7=t#Vb}6 zZQokAMO#;N=k~2z?&Qt!Y`%X}-N2l!bz7lx+0r6o;&ALgN~lPfu#!23(_UbAI2=5a z;`#G=y7Ly5Evi^ml&dYcdj<6SyvhaZmR44{Dl3Y%Zrf0|WefY=9Ak3WJJ;|x{SQe} B&^Q19 diff --git a/src/main.rs b/src/main.rs index 7692e42..49f4f42 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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::(), 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();