Commit db2b6fe4 authored by Bilal Elmoussaoui's avatar Bilal Elmoussaoui

Merge branch 'bilelmoussaoui/string-changes' into 'master'

ui: update strings per 40 Closes #31 See merge request GNOME/gnome-tour!37
parents 666a0f20 9c0b1d1d
...@@ -148,17 +148,18 @@ impl WelcomePageWidget { ...@@ -148,17 +148,18 @@ impl WelcomePageWidget {
); );
}; };
let name = glib::get_os_info("NAME").unwrap_or_else(|| "GNOME".into()); let title = gtk::Label::new(Some(&gettext("Start the Tour")));
let version = glib::get_os_info("VERSION").unwrap_or_else(|| "".into());
// Translators: The following string is formated as "Welcome to GNOME 3.36" for example
let title = gtk::Label::new(Some(&i18n_f("Welcome to {} {}", &[&name, &version])));
title.set_margin_top(36); title.set_margin_top(36);
title.get_style_context().add_class("large-title"); title.get_style_context().add_class("large-title");
title.show(); title.show();
container.add(&title); container.add(&title);
let text = gtk::Label::new(Some(&gettext( let name = glib::get_os_info("NAME").unwrap_or_else(|| "GNOME".into());
"Learn about new and essential features in GNOME 40.", let version = glib::get_os_info("VERSION").unwrap_or_else(|| "".into());
// Translators: The following string is formated as "Learn about new and essential features in GNOME 3.36" for example
let text = gtk::Label::new(Some(&i18n_f(
"Learn about new and essential features in {} {}.",
&[&name, &version],
))); )));
text.get_style_context().add_class("body"); text.get_style_context().add_class("body");
text.set_margin_top(12); text.set_margin_top(12);
......
...@@ -151,6 +151,7 @@ impl PaginatorWidget { ...@@ -151,6 +151,7 @@ impl PaginatorWidget {
let start_overlay = gtk::Overlay::new(); let start_overlay = gtk::Overlay::new();
start_overlay.add(&self.start_btn); start_overlay.add(&self.start_btn);
start_overlay.add_overlay(&next_overlay); start_overlay.add_overlay(&next_overlay);
start_overlay.set_overlay_pass_through(&next_overlay, true);
start_overlay.show(); start_overlay.show();
let btn_size_group = gtk::SizeGroup::new(gtk::SizeGroupMode::Horizontal); let btn_size_group = gtk::SizeGroup::new(gtk::SizeGroupMode::Horizontal);
......
...@@ -59,7 +59,7 @@ impl Window { ...@@ -59,7 +59,7 @@ impl Window {
ImagePageWidget::new( ImagePageWidget::new(
"/org/gnome/Tour/makeyourown.svg", "/org/gnome/Tour/makeyourown.svg",
gettext("Make Apps Your Own"), gettext("Make Apps Your Own"),
gettext("Arrange your apps so they make sense for you."), gettext("Arrange the app grid so it makes sense for you."),
) )
.widget .widget
.upcast::<gtk::Widget>(), .upcast::<gtk::Widget>(),
...@@ -96,10 +96,14 @@ impl Window { ...@@ -96,10 +96,14 @@ impl Window {
); );
let name = glib::get_os_info("NAME").unwrap_or_else(|| "GNOME".into()); let name = glib::get_os_info("NAME").unwrap_or_else(|| "GNOME".into());
let version = glib::get_os_info("VERSION").unwrap_or_else(|| "".into());
let last_page = ImagePageWidget::new( let last_page = ImagePageWidget::new(
"/org/gnome/Tour/ready-to-go.svg", "/org/gnome/Tour/ready-to-go.svg",
// Translators: The following string is formated as "We hope that you enjoy GNOME" // Translators: The following string is formatted as "We hope that you enjoy GNOME 40"
i18n_f("That's it! We hope that you enjoy {}.", &[&name]), i18n_f(
"That's it! We hope that you enjoy {} {}.",
&[&name, &version],
),
gettext("To get more advice and tips, see the Help app."), gettext("To get more advice and tips, see the Help app."),
); );
last_page.widget.get_style_context().add_class("last-page"); last_page.widget.get_style_context().add_class("last-page");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment