RR: Translate Language page

This commit is contained in:
Ward from fusion-voyager-3 2024-02-18 22:44:49 +03:00
parent 00cadafc29
commit c05bb7cc82
2 changed files with 20 additions and 8 deletions

View File

@ -137,3 +137,15 @@ msgstr "Filesystem Table Error: Invalid mountpoint: ("
msgid "fstab_bad_mountpoint_msg"
msgstr ") Is not a valid mountpoint!"
msgid "select_a_language"
msgstr "Select a language"
msgid "please_select_locale"
msgstr "Please select a locale for the system to use"
msgid "no_locale_selected"
msgstr "No locale selected"
msgid "language"
msgid "Language"

View File

@ -27,7 +27,7 @@ pub fn language_page(content_stack: &gtk::Stack) {
// Next and back button
let bottom_back_button = gtk::Button::builder()
.label("Back")
.label(gettext("back"))
.margin_top(15)
.margin_bottom(15)
.margin_start(15)
@ -36,7 +36,7 @@ pub fn language_page(content_stack: &gtk::Stack) {
.hexpand(true)
.build();
let bottom_next_button = gtk::Button::builder()
.label("Next")
.label(gettext("next"))
.margin_top(15)
.margin_bottom(15)
.margin_start(15)
@ -66,7 +66,7 @@ pub fn language_page(content_stack: &gtk::Stack) {
// the header text for the language page
let language_header_text = gtk::Label::builder()
.label("Select a language")
.label(gettext("select_a_language"))
.halign(gtk::Align::End)
.hexpand(true)
.margin_top(15)
@ -106,7 +106,7 @@ pub fn language_page(content_stack: &gtk::Stack) {
// text above language selection box
let language_selection_text = gtk::Label::builder()
.label("Please select a locale for the system to use")
.label(gettext("please_select_locale"))
.halign(gtk::Align::Center)
.hexpand(true)
.margin_top(15)
@ -117,11 +117,11 @@ pub fn language_page(content_stack: &gtk::Stack) {
language_selection_text.add_css_class("medium_sized_text");
let language_selection_expander_row = adw::ExpanderRow::builder()
.title("No locale selected")
.title(gettext("no_locale_selected"))
.build();
let null_checkbutton = gtk::CheckButton::builder()
.label("No locale selected")
.label(gettext("no_locale_selected"))
.build();
let language_selection_expander_row_viewport =
@ -213,7 +213,7 @@ pub fn language_page(content_stack: &gtk::Stack) {
// / Content stack appends
//// Add the language_main_box as page: language_page, Give it nice title
content_stack.add_titled(&language_main_box, Some("language_page"), "Language");
content_stack.add_titled(&language_main_box, Some("language_page"), &gettext("language"));
let lang_data_buffer_clone = lang_data_buffer.clone();