From 2eec5c431f638c99e3d4a6dd13d085c72b781316 Mon Sep 17 00:00:00 2001 From: rbuj Date: Sat, 16 Feb 2019 09:43:13 +0100 Subject: 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/callbacks.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/callbacks.cpp b/src/callbacks.cpp index ee297ba..1cf0ede 100644 --- a/src/callbacks.cpp +++ b/src/callbacks.cpp @@ -201,6 +201,7 @@ cb_about (GtkAction *action, gpointer data) gtk_show_about_dialog ( GTK_WINDOW (procdata->app), "name", _("System Monitor"), + "title", _("About System Monitor"), "comments", _("View current processes and monitor system state"), "version", VERSION, "copyright", _("Copyright \xc2\xa9 2001-2004 Kevin Vandersloot\n" -- cgit v1.2.1