Skip to content

Commit 861db5e

Browse files
rbujraveit65
authored andcommitted
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 e4f88d7 commit 861db5e

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

pluma.pot

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: MATE Desktop Environment\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2019-02-16 11:41+0100\n"
11+
"POT-Creation-Date: 2019-02-16 22:22+0100\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -1127,7 +1127,11 @@ msgid ""
11271127
"Street, Fifth Floor, Boston, MA 02110-1301 USA"
11281128
msgstr ""
11291129

1130-
#: ../pluma/pluma-commands-help.c:102
1130+
#: ../pluma/pluma-commands-help.c:100
1131+
msgid "About Pluma"
1132+
msgstr ""
1133+
1134+
#: ../pluma/pluma-commands-help.c:103
11311135
msgid ""
11321136
"Copyright © 1998-2000 Evan Lawrence, Alex Robert\n"
11331137
"Copyright © 2000-2002 Chema Celorio, Paolo Maggi\n"
@@ -1138,7 +1142,7 @@ msgid ""
11381142
"Copyright © 2012-2019 MATE developers"
11391143
msgstr ""
11401144

1141-
#: ../pluma/pluma-commands-help.c:112
1145+
#: ../pluma/pluma-commands-help.c:113
11421146
msgid "translator-credits"
11431147
msgstr ""
11441148

pluma/pluma-commands-help.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ void _pluma_cmd_help_about(GtkAction* action, PlumaWindow* window)
9797

9898
gtk_show_about_dialog(GTK_WINDOW(window),
9999
"program-name", "Pluma",
100+
"title", _("About Pluma"),
100101
"authors", authors,
101102
"comments", _(comments),
102103
"copyright", _("Copyright \xc2\xa9 1998-2000 Evan Lawrence, Alex Robert\n"

0 commit comments

Comments
 (0)