diff --git a/src/gui/components/radio.rs b/src/gui/components/radio.rs index 0835e261..538cdea2 100644 --- a/src/gui/components/radio.rs +++ b/src/gui/components/radio.rs @@ -79,7 +79,7 @@ pub fn language_radios( Row::new().align_items(Alignment::Center).push( Row::new() .align_items(Alignment::Center) - .width(Length::Fixed(180.0)) + .width(Length::Fixed(200.0)) .push( Radio::new( format!("{} ({:?})", option.get_radio_label(), option), @@ -91,7 +91,7 @@ pub fn language_radios( .font(font) .size(15), ) - .push(horizontal_space(Length::Fixed(8.0))) + .push(horizontal_space(Length::Fixed(15.0))) .push(option.get_flag()), ), ); diff --git a/src/gui/pages/settings_language_page.rs b/src/gui/pages/settings_language_page.rs index 25606238..72b3c0db 100644 --- a/src/gui/pages/settings_language_page.rs +++ b/src/gui/pages/settings_language_page.rs @@ -24,15 +24,16 @@ pub fn settings_language_page(sniffer: &Sniffer) -> Container Container format!("選択されたアダプターが有効なアドレスを持っていないため、トラフィックを観測できていません...\n\n\ ネットワーク アダプター: {adapter}\n\n\ インターネットに接続しているか確認し、別のネットワーク アダプターを試してください。"), - Language::UZ => format!("Trafik kuzatilmaydi, chunki siz tanlagan adapterda faol manzillar yo‘q...\n\n\ + Language::UZ => format!("Trafik kuzatilmaydi, chunki siz tanlagan adapterda faol manzillar yo'q...\n\n\ Tarmoq adapteri: {adapter}\n\n\ Internetga ulanganingizga ishonchingiz komil bo'lsa, boshqa adapterni tanlashga harakat qiling"), }) @@ -765,7 +765,7 @@ pub fn of_total_translation(language: Language, percentage: &str) -> String { // برای افزودن یک پیوند به پسندیده های خود، روی نشان ستاره کنار پیوند کلیک کنید.", // Language::SE => "Inget att visa för tillfälet.\n\ // För att lägga till anslutningar till dina favoriter, klicka på stjärnsymbolen nära anslutningen.", -// Language::UZ => "Ayni paytda ko‘rsatiladigan hech narsa yo‘q.\n\ +// Language::UZ => "Ayni paytda ko'rsatiladigan hech narsa yo'q.\n\ // Ulanishni sevimlilar ro'yhatiga qo'shish uchun ulanish yaqinidagi yulduzcha belgisini bosing." // }) // } diff --git a/src/translations/types/language.rs b/src/translations/types/language.rs index 28a3b71e..7eaf6d4f 100644 --- a/src/translations/types/language.rs +++ b/src/translations/types/language.rs @@ -47,7 +47,7 @@ pub enum Language { FI, /// Japanese JA, - /// O'zbek tili + /// Uzbek UZ, } @@ -58,11 +58,12 @@ impl Default for Language { } impl Language { - pub(crate) const ROW1: [Language; 2] = [Language::EN, Language::UZ]; - pub(crate) const ROW2: [Language; 4] = [Language::DE, Language::EL, Language::ES, Language::FI]; - pub(crate) const ROW3: [Language; 4] = [Language::FR, Language::IT, Language::JA, Language::KO]; - pub(crate) const ROW4: [Language; 4] = [Language::PL, Language::PT, Language::RO, Language::RU]; - pub(crate) const ROW5: [Language; 4] = [Language::SV, Language::TR, Language::UK, Language::ZH]; + pub(crate) const ROW1: [Language; 3] = [Language::EN, Language::DE, Language::EL]; + pub(crate) const ROW2: [Language; 3] = [Language::ES, Language::FI, Language::FR]; + pub(crate) const ROW3: [Language; 3] = [Language::IT, Language::JA, Language::KO]; + pub(crate) const ROW4: [Language; 3] = [Language::PL, Language::PT, Language::RO]; + pub(crate) const ROW5: [Language; 3] = [Language::RU, Language::SV, Language::TR]; + pub(crate) const ROW6: [Language; 3] = [Language::UK, Language::UZ, Language::ZH]; pub fn get_radio_label(&self) -> &str { match self { @@ -84,7 +85,7 @@ impl Language { Language::SV => "Svenska", Language::FI => "Suomi", Language::JA => "日本語", - Language::UZ => "O'zbek tili", + Language::UZ => "O'zbekcha", } }