keyboard: Use gtk4 translations instead of gtk3 ones for shortcut search

Otherwise looking up shortcuts with "ctrl" in non-English locales would
fail without gtk3 installed.

Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1546
This commit is contained in:
Sebastian Keller 2021-12-17 18:57:03 +01:00
parent 14a2672e28
commit b3a7a16d23

View file

@ -531,7 +531,7 @@ strv_contains_prefix_or_match (gchar **strv,
const gchar *translated_label;
/* Steal GTK+'s translation */
translated_label = g_dpgettext2 ("gtk30", "keyboard label", key_aliases[i].untranslated);
translated_label = g_dpgettext2 ("gtk40", "keyboard label", key_aliases[i].untranslated);
alias = g_utf8_strdown (translated_label, -1);
}