Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
ximper-welcome
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
ximper-welcome
Commits
db2b6fe4
Commit
db2b6fe4
authored
Feb 11, 2021
by
Bilal Elmoussaoui
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bilelmoussaoui/string-changes' into 'master'
ui: update strings per 40 Closes #31 See merge request GNOME/gnome-tour!37
parents
666a0f20
9c0b1d1d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
9 deletions
+15
-9
welcome.rs
src/widgets/pages/welcome.rs
+7
-6
paginator.rs
src/widgets/paginator.rs
+1
-0
window.rs
src/widgets/window.rs
+7
-3
No files found.
src/widgets/pages/welcome.rs
View file @
db2b6fe4
...
@@ -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
);
...
...
src/widgets/paginator.rs
View file @
db2b6fe4
...
@@ -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
);
...
...
src/widgets/window.rs
View file @
db2b6fe4
...
@@ -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"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment