shell: Add translator-credits string to About dialog

This mechanism will allow for translations to propagate their
credits to the UI.
This commit is contained in:
Felipe Borges 2023-11-29 17:39:28 +01:00
parent 24435a6178
commit ff9dc202a7

View file

@ -110,6 +110,8 @@ about_activated (GSimpleAction *action,
GtkWidget *about_window;
about_window = adw_about_window_new_from_appdata ("/org/gnome/Settings/appdata", VERSION);
/* Translators should localize the following string which will be displayed in the About dialog giving credit to the translator(s). */
adw_about_window_set_translator_credits (ADW_ABOUT_WINDOW (about_window), _("translator-credits"));
gtk_window_set_transient_for (GTK_WINDOW (about_window), GTK_WINDOW (self->window));
gtk_window_present (GTK_WINDOW (about_window));