Skip to content

Commit 2eec5c4

Browse files
rbujraveit65
authored and
raveit65
committed
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
1 parent acd6123 commit 2eec5c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/callbacks.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ cb_about (GtkAction *action, gpointer data)
201201
gtk_show_about_dialog (
202202
GTK_WINDOW (procdata->app),
203203
"name", _("System Monitor"),
204+
"title", _("About System Monitor"),
204205
"comments", _("View current processes and monitor system state"),
205206
"version", VERSION,
206207
"copyright", _("Copyright \xc2\xa9 2001-2004 Kevin Vandersloot\n"

0 commit comments

Comments
 (0)