RR: Hopefully translated

This commit is contained in:
Ward from fusion-voyager-3 2024-02-19 00:21:54 +03:00
parent 6e7fb5723d
commit fe9e526d7b
5 changed files with 52 additions and 18 deletions

2
debian/changelog vendored
View File

@ -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 * First release

View File

@ -2,7 +2,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"POT-Creation-Date: 2024-02-09 17:48+0300\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" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
"Language: en_US\n" "Language: en_US\n"
@ -259,9 +259,6 @@ msgstr "I Agree and Accept the User license Agreement"
msgid "eula" msgid "eula"
msgstr "EULA" msgstr "EULA"
msgid "bad_boot_platfrom"
msgstr Unsupported boot platform
msgid "pika_nowork_csm" msgid "pika_nowork_csm"
msgstr "PikaOS Only works on GPT UEFI Systems, this machine is booted in CSM/LEGACY mode." msgstr "PikaOS Only works on GPT UEFI Systems, this machine is booted in CSM/LEGACY mode."
@ -284,7 +281,44 @@ msgid "reboot"
msgstr "Reboot" msgstr "Reboot"
msgid "pika_install_bad" 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" msgid "logs"
msgstr "Logs" 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"

View File

@ -31,7 +31,7 @@ pub fn automatic_partitioning(
// the header text for the partitioning page // the header text for the partitioning page
let partition_method_automatic_header_text = gtk::Label::builder() let partition_method_automatic_header_text = gtk::Label::builder()
.label("Automatic Partitioning Installer") .label(gettext("auto_part_installer"))
.halign(gtk::Align::End) .halign(gtk::Align::End)
.hexpand(true) .hexpand(true)
.margin_top(15) .margin_top(15)
@ -58,7 +58,7 @@ pub fn automatic_partitioning(
.build(); .build();
let partition_method_automatic_selection_text = gtk::Label::builder() 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) .justify(Justification::Center)
.halign(gtk::Align::Center) .halign(gtk::Align::Center)
.hexpand(true) .hexpand(true)
@ -70,7 +70,7 @@ pub fn automatic_partitioning(
partition_method_automatic_selection_text.add_css_class("medium_sized_text"); partition_method_automatic_selection_text.add_css_class("medium_sized_text");
let devices_selection_expander_row = adw::ExpanderRow::builder() let devices_selection_expander_row = adw::ExpanderRow::builder()
.title("No disk selected for selection") .title(gettext("no_drive_auto_selected"))
.build(); .build();
let null_checkbutton = gtk::CheckButton::builder().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() let partition_method_automatic_disk_error_label = gtk::Label::builder()
.label("No Disk specified.") .label(gettext("no_disk_specified"))
.halign(Align::Start) .halign(Align::Start)
.valign(Align::End) .valign(Align::End)
.vexpand(true) .vexpand(true)
@ -119,7 +119,7 @@ pub fn automatic_partitioning(
partition_method_automatic_disk_error_label.add_css_class("small_error_text"); partition_method_automatic_disk_error_label.add_css_class("small_error_text");
let partition_method_automatic_luks_error_label = gtk::Label::builder() 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) .halign(Align::Start)
.valign(Align::End) .valign(Align::End)
.vexpand(true) .vexpand(true)
@ -132,7 +132,7 @@ pub fn automatic_partitioning(
.build(); .build();
let partition_method_automatic_luks_checkbutton = gtk::CheckButton::builder() let partition_method_automatic_luks_checkbutton = gtk::CheckButton::builder()
.label("Enable LUKS2 Disk Encryption") .label(gettext("enable_luks2_enc"))
.margin_top(15) .margin_top(15)
.margin_bottom(15) .margin_bottom(15)
.margin_start(15) .margin_start(15)
@ -148,7 +148,7 @@ pub fn automatic_partitioning(
partition_method_automatic_luks_listbox.add_css_class("boxed-list"); partition_method_automatic_luks_listbox.add_css_class("boxed-list");
let partition_method_automatic_luks_password_entry = adw::PasswordEntryRow::builder() let partition_method_automatic_luks_password_entry = adw::PasswordEntryRow::builder()
.title("LUKS Password") .title(gettext("luks2_password"))
.hexpand(true) .hexpand(true)
.sensitive(false) .sensitive(false)
.build(); .build();
@ -200,7 +200,7 @@ pub fn automatic_partitioning(
} }
} else { } else {
partition_method_automatic_disk_error_label.set_visible(true); 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); bottom_next_button.set_sensitive(false);
} }
} }

View File

@ -128,10 +128,10 @@ pub fn build_ui(app: &adw::Application) {
partitioning_page(&done_main_box, &install_main_box, &content_stack, &window); partitioning_page(&done_main_box, &install_main_box, &content_stack, &window);
//// Add the install_main_box as page: install_page, Give it nice title //// 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 // 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 // glib maximization
if glib_settings.boolean("is-maximized") == true { if glib_settings.boolean("is-maximized") == true {

View File

@ -231,7 +231,7 @@ pub fn partitioning_page(
content_stack.add_titled( content_stack.add_titled(
&partitioning_main_box, &partitioning_main_box,
Some("partitioning_page"), 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"))); automatic_method_button.connect_clicked(clone!(@weak partitioning_stack => move |_| partitioning_stack.set_visible_child_name("partition_method_automatic_page")));