From 2a46f460b54a90c1c27c17f29558a6482b4354e9 Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 11 Apr 2019 13:28:50 +0200 Subject: [PATCH] Ensure proper translation of the about dialog title Note that GTK+ sets a default title of _("About %s") on the dialog window (where %s is replaced by the name of the application, but in order to ensure proper translation of the title, applications should set the title property explicitly when constructing a GtkAboutDialog https://developer.gnome.org/gtk3/stable/GtkAboutDialog.html --- src/terminal-window.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/terminal-window.c b/src/terminal-window.c index 93f62a1..4e268e5 100644 --- a/src/terminal-window.c +++ b/src/terminal-window.c @@ -4384,6 +4384,8 @@ help_about_callback (GtkAction *action, gtk_show_about_dialog (GTK_WINDOW (window), "program-name", _("MATE Terminal"), + "version", VERSION, + "title", _("About MATE Terminal"), "copyright", _("Copyright \xc2\xa9 2002–2004 Havoc Pennington\n" "Copyright \xc2\xa9 2003–2004, 2007 Mariano Suárez-Alvarez\n" "Copyright \xc2\xa9 2006 Guilherme de S. Pastore\n" @@ -4391,7 +4393,6 @@ help_about_callback (GtkAction *action, "Copyright \xc2\xa9 2011 Perberos\n" "Copyright \xc2\xa9 2012-2019 MATE developers"), "comments", _("A terminal emulator for the MATE desktop"), - "version", VERSION, "authors", array_strv, "artists", artists, "documenters", documenters,