app: Translate the app name
This commit is contained in:
parent
a01cf21f2c
commit
c33d0836eb
@ -25,6 +25,8 @@ use std::env;
|
|||||||
use std::rc::Rc;
|
use std::rc::Rc;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
|
use i18n::i18n;
|
||||||
|
|
||||||
pub(crate) const APP_ID: &str = "org.gnome.Podcasts";
|
pub(crate) const APP_ID: &str = "org.gnome.Podcasts";
|
||||||
|
|
||||||
include!(concat!(env!("OUT_DIR"), "/build_globals.rs"));
|
include!(concat!(env!("OUT_DIR"), "/build_globals.rs"));
|
||||||
@ -84,7 +86,7 @@ impl App {
|
|||||||
let (sender, receiver) = unbounded();
|
let (sender, receiver) = unbounded();
|
||||||
|
|
||||||
let window = gtk::ApplicationWindow::new(application);
|
let window = gtk::ApplicationWindow::new(application);
|
||||||
window.set_title("Podcasts");
|
window.set_title(&i18n("Podcasts"));
|
||||||
|
|
||||||
let weak_s = settings.downgrade();
|
let weak_s = settings.downgrade();
|
||||||
let weak_app = application.downgrade();
|
let weak_app = application.downgrade();
|
||||||
@ -349,7 +351,7 @@ impl App {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Weird magic I copy-pasted that sets the Application Name in the Shell.
|
// Weird magic I copy-pasted that sets the Application Name in the Shell.
|
||||||
glib::set_application_name("Podcasts");
|
glib::set_application_name(&i18n("Podcasts"));
|
||||||
glib::set_prgname(Some("gnome-podcasts"));
|
glib::set_prgname(Some("gnome-podcasts"));
|
||||||
gtk::Window::set_default_icon_name(APP_ID);
|
gtk::Window::set_default_icon_name(APP_ID);
|
||||||
let args: Vec<String> = env::args().collect();
|
let args: Vec<String> = env::args().collect();
|
||||||
|
|||||||
@ -30,7 +30,7 @@ pub(crate) fn about_dialog(window: >k::ApplicationWindow) {
|
|||||||
// TODO: make it show it fetches the commit hash from which it was built
|
// TODO: make it show it fetches the commit hash from which it was built
|
||||||
// and the version number is kept in sync automaticly
|
// and the version number is kept in sync automaticly
|
||||||
dialog.set_version("0.4.4");
|
dialog.set_version("0.4.4");
|
||||||
dialog.set_program_name("Podcasts");
|
dialog.set_program_name(&i18n("Podcasts"));
|
||||||
// TODO: Need a wiki page first.
|
// TODO: Need a wiki page first.
|
||||||
// dialog.set_website("https://wiki.gnome.org/Design/Apps/Potential/Podcasts");
|
// dialog.set_website("https://wiki.gnome.org/Design/Apps/Potential/Podcasts");
|
||||||
// dialog.set_website_label("Learn more about GNOME Podcasts");
|
// dialog.set_website_label("Learn more about GNOME Podcasts");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user