[gnome-tour: 1/2] main: translate application name
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tour: 1/2] main: translate application name
- Date: Thu, 11 Feb 2021 17:35:14 +0000 (UTC)
commit 4b86d7d0c738bd5bb2d116e58fb22a6a861b324a
Author: Rasmus Thomsen <oss cogitri dev>
Date: Thu Feb 11 14:37:30 2021 +0000
main: translate application name
As per glib docs: `set_application_name`: Sets a human-readable name for the application.
This name should be localized if possible, and is intended for display to the user.
po/POTFILES.in | 1 +
src/main.rs | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 227be00..03e3797 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,5 +1,6 @@
data/org.gnome.Tour.desktop.in.in
data/org.gnome.Tour.metainfo.xml.in.in
+src/main.rs
src/widgets/pages/welcome.rs
src/widgets/paginator.rs
src/widgets/window.rs
diff --git a/src/main.rs b/src/main.rs
index 867c685..e236bf1 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -16,7 +16,7 @@ fn main() {
bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
textdomain(GETTEXT_PACKAGE);
- glib::set_application_name("Tour");
+ glib::set_application_name(&gettext("Tour"));
glib::set_prgname(Some("Tour"));
gtk::init().expect("Unable to start GTK3");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]