diff --git a/czkawka_gui/src/connect_about_buttons.rs b/czkawka_gui/src/connect_about_buttons.rs index e533e80..378c2ad 100644 --- a/czkawka_gui/src/connect_about_buttons.rs +++ b/czkawka_gui/src/connect_about_buttons.rs @@ -5,6 +5,7 @@ use crate::gui_data::GuiData; const SPONSOR_SITE: &str = "https://github.com/sponsors/qarmin"; const REPOSITORY_SITE: &str = "https://github.com/qarmin/czkawka"; const INSTRUCTION_SITE: &str = "https://github.com/qarmin/czkawka/blob/master/instructions/Instruction.md"; +const TRANSLATION_SITE: &str = "https://crwd.in/czkawka"; pub fn connect_about_buttons(gui_data: &GuiData) { let button_donation = gui_data.about.button_donation.clone(); @@ -31,4 +32,12 @@ pub fn connect_about_buttons(gui_data: &GuiData) { // println!("Failed to open repository site: {}, reason {}", REPOSITORY_SITE, e) // }; }); + + let button_translation = gui_data.about.button_translation.clone(); + button_translation.connect_clicked(move |_| { + open::that_in_background(TRANSLATION_SITE); + // if let Err(e) = open::that(TRANSLATION_SITE) { + // println!("Failed to open repository site: {}, reason {}", TRANSLATION_SITE, e) + // }; + }); } diff --git a/czkawka_gui/src/gui_about.rs b/czkawka_gui/src/gui_about.rs index ab274fe..ce99b8f 100644 --- a/czkawka_gui/src/gui_about.rs +++ b/czkawka_gui/src/gui_about.rs @@ -10,6 +10,7 @@ pub struct GuiAbout { pub button_repository: gtk::Button, pub button_donation: gtk::Button, pub button_instruction: gtk::Button, + pub button_translation: gtk::Button, } impl GuiAbout { @@ -24,12 +25,14 @@ impl GuiAbout { let button_repository: gtk::Button = builder.object("button_repository").unwrap(); let button_donation: gtk::Button = builder.object("button_donation").unwrap(); let button_instruction: gtk::Button = builder.object("button_instruction").unwrap(); + let button_translation: gtk::Button = builder.object("button_translation").unwrap(); Self { about_dialog, button_repository, button_donation, button_instruction, + button_translation, } } pub fn update_language(&self) { @@ -40,9 +43,11 @@ impl GuiAbout { self.button_repository.set_tooltip_text(Some(&fl!("about_repository_button_tooltip"))); self.button_donation.set_tooltip_text(Some(&fl!("about_donation_button_tooltip"))); self.button_instruction.set_tooltip_text(Some(&fl!("about_instruction_button_tooltip"))); + self.button_translation.set_tooltip_text(Some(&fl!("about_translation_button_tooltip"))); self.button_repository.set_label(&fl!("about_repository_button")); self.button_donation.set_label(&fl!("about_donation_button")); self.button_instruction.set_label(&fl!("about_instruction_button")); + self.button_translation.set_label(&fl!("about_translation_button")); } } diff --git a/czkawka_gui/src/help_combo_box.rs b/czkawka_gui/src/help_combo_box.rs index a6ae739..1e0375e 100644 --- a/czkawka_gui/src/help_combo_box.rs +++ b/czkawka_gui/src/help_combo_box.rs @@ -87,7 +87,7 @@ pub const IMAGES_HASH_TYPE_COMBO_BOX: [ImageHashTypeStruct; 5] = [ hash_alg: HashAlg::VertGradient, }, ImageHashTypeStruct { - eng_name: "Blackhash", + eng_name: "Blockhash", hash_alg: HashAlg::Blockhash, }, ImageHashTypeStruct { diff --git a/czkawka_gui/ui/about_dialog.glade b/czkawka_gui/ui/about_dialog.glade index 6df6446..33c8d3a 100644 --- a/czkawka_gui/ui/about_dialog.glade +++ b/czkawka_gui/ui/about_dialog.glade @@ -1,5 +1,5 @@ -