[gnome-control-center] keyboard: Use gtk4 translations instead of gtk3 ones for shortcut search



commit b3a7a16d23e0dd18152c5b177e4b459c7afdb27d
Author: Sebastian Keller <skeller gnome org>
Date:   Fri Dec 17 18:57:03 2021 +0100

    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

 panels/keyboard/cc-keyboard-shortcut-dialog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/panels/keyboard/cc-keyboard-shortcut-dialog.c b/panels/keyboard/cc-keyboard-shortcut-dialog.c
index 18b5ac30c..0d07b5f15 100644
--- a/panels/keyboard/cc-keyboard-shortcut-dialog.c
+++ b/panels/keyboard/cc-keyboard-shortcut-dialog.c
@@ -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);
         }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]