From fe9e526d7b645bf0df5ad3691e32b5e1d05f5575 Mon Sep 17 00:00:00 2001 From: Ward from fusion-voyager-3 Date: Mon, 19 Feb 2024 00:21:54 +0300 Subject: [PATCH] RR: Hopefully translated --- debian/changelog | 2 +- po/en_US.po | 46 +++++++++++++++++++++++++++---- src/automatic_partitioning/mod.rs | 16 +++++------ src/build_ui.rs | 4 +-- src/partitioning_page/mod.rs | 2 +- 5 files changed, 52 insertions(+), 18 deletions(-) diff --git a/debian/changelog b/debian/changelog index d34bb64..c7c6f1a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -pika-installer-gtk4 (1.0.0-100pika14) pikauwu; urgency=low +pika-installer-gtk4 (1.0.0-100pika15) pikauwu; urgency=low * First release diff --git a/po/en_US.po b/po/en_US.po index ef7203b..6e2f429 100644 --- a/po/en_US.po +++ b/po/en_US.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: 2024-02-09 17:48+0300\n" -"PO-Revision-Date: 2024-02-18 23:53+0300\n" +"PO-Revision-Date: 2024-02-19 00:21+0300\n" "Last-Translator: \n" "Language-Team: \n" "Language: en_US\n" @@ -259,9 +259,6 @@ msgstr "I Agree and Accept the User license Agreement" msgid "eula" msgstr "EULA" -msgid "bad_boot_platfrom" -msgstr Unsupported boot platform - msgid "pika_nowork_csm" msgstr "PikaOS Only works on GPT UEFI Systems, this machine is booted in CSM/LEGACY mode." @@ -284,7 +281,44 @@ msgid "reboot" msgstr "Reboot" msgid "pika_install_bad" -msgstr "PikaOS has Failed!\nCheck logs for further info." +msgstr "" +"PikaOS has Failed!\n" +"Check logs for further info." msgid "logs" -msgstr "Logs" \ No newline at end of file +msgstr "Log" + +msgid "auto_part_installer" +msgstr "Automatic Partitioning Installer" + +msgid "choose_drive_auto" +msgstr "" +"Choose the Drive you want to install PikaOS on\n" +"Note: This will erase the entire drive backup your data!" + +msgid "no_drive_auto_selected" +msgstr "No disk selected for installation" + +msgid "no_disk_specified" +msgstr "No Disk specified." + +msgid "luks_yes_but_empty" +msgstr "LUKS Encryption Enabled but no password provided." + +msgid "enable_luks2_enc" +msgstr "Enable LUKS2 Disk Encryption" + +msgid "luks2_password" +msgstr "LUKS Password" + +msgid "disk_auto_target_small" +msgstr "Disk Size too small, PikaOS needs 40GB Disk" + +msgid "installation" +msgstr "Installation" + +msgid "done" +msgstr "Done" + +msgid "partitioning" +msgstr "Partitioning" diff --git a/src/automatic_partitioning/mod.rs b/src/automatic_partitioning/mod.rs index b50da21..ba157a5 100644 --- a/src/automatic_partitioning/mod.rs +++ b/src/automatic_partitioning/mod.rs @@ -31,7 +31,7 @@ pub fn automatic_partitioning( // the header text for the partitioning page let partition_method_automatic_header_text = gtk::Label::builder() - .label("Automatic Partitioning Installer") + .label(gettext("auto_part_installer")) .halign(gtk::Align::End) .hexpand(true) .margin_top(15) @@ -58,7 +58,7 @@ pub fn automatic_partitioning( .build(); let partition_method_automatic_selection_text = gtk::Label::builder() - .label("Choose the Drive you want to install PikaOS on\nNote: This will erase the entire drive backup your data!") + .label(gettext("choose_drive_auto")) .justify(Justification::Center) .halign(gtk::Align::Center) .hexpand(true) @@ -70,7 +70,7 @@ pub fn automatic_partitioning( partition_method_automatic_selection_text.add_css_class("medium_sized_text"); let devices_selection_expander_row = adw::ExpanderRow::builder() - .title("No disk selected for selection") + .title(gettext("no_drive_auto_selected")) .build(); let null_checkbutton = gtk::CheckButton::builder().build(); @@ -111,7 +111,7 @@ pub fn automatic_partitioning( ); let partition_method_automatic_disk_error_label = gtk::Label::builder() - .label("No Disk specified.") + .label(gettext("no_disk_specified")) .halign(Align::Start) .valign(Align::End) .vexpand(true) @@ -119,7 +119,7 @@ pub fn automatic_partitioning( partition_method_automatic_disk_error_label.add_css_class("small_error_text"); let partition_method_automatic_luks_error_label = gtk::Label::builder() - .label("LUKS Encryption Enabled but no password provided.") + .label(gettext("luks_yes_but_empty")) .halign(Align::Start) .valign(Align::End) .vexpand(true) @@ -132,7 +132,7 @@ pub fn automatic_partitioning( .build(); let partition_method_automatic_luks_checkbutton = gtk::CheckButton::builder() - .label("Enable LUKS2 Disk Encryption") + .label(gettext("enable_luks2_enc")) .margin_top(15) .margin_bottom(15) .margin_start(15) @@ -148,7 +148,7 @@ pub fn automatic_partitioning( partition_method_automatic_luks_listbox.add_css_class("boxed-list"); let partition_method_automatic_luks_password_entry = adw::PasswordEntryRow::builder() - .title("LUKS Password") + .title(gettext("luks2_password")) .hexpand(true) .sensitive(false) .build(); @@ -200,7 +200,7 @@ pub fn automatic_partitioning( } } else { partition_method_automatic_disk_error_label.set_visible(true); - partition_method_automatic_disk_error_label.set_label("Disk Size too small, PikaOS needs 40GB Disk"); + partition_method_automatic_disk_error_label.set_label(&gettext("disk_auto_target_small")); bottom_next_button.set_sensitive(false); } } diff --git a/src/build_ui.rs b/src/build_ui.rs index e7279cd..f113d2d 100644 --- a/src/build_ui.rs +++ b/src/build_ui.rs @@ -128,10 +128,10 @@ pub fn build_ui(app: &adw::Application) { partitioning_page(&done_main_box, &install_main_box, &content_stack, &window); //// Add the install_main_box as page: install_page, Give it nice title - content_stack.add_titled(&install_main_box, Some("install_page"), "Installation"); + content_stack.add_titled(&install_main_box, Some("install_page"), &gettext("installation")); // Add done_page.rs as a page for content_stack - content_stack.add_titled(&done_main_box, Some("done_page"), "Done"); + content_stack.add_titled(&done_main_box, Some("done_page"), &gettext("done")); // glib maximization if glib_settings.boolean("is-maximized") == true { diff --git a/src/partitioning_page/mod.rs b/src/partitioning_page/mod.rs index 0f525a2..eb54920 100644 --- a/src/partitioning_page/mod.rs +++ b/src/partitioning_page/mod.rs @@ -231,7 +231,7 @@ pub fn partitioning_page( content_stack.add_titled( &partitioning_main_box, Some("partitioning_page"), - "Partitioning", + &gettext("partitioning"), ); automatic_method_button.connect_clicked(clone!(@weak partitioning_stack => move |_| partitioning_stack.set_visible_child_name("partition_method_automatic_page")));