From d06286cae3dab0e512c2885e4500c573de72dcf6 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Wed, 3 Aug 2022 10:21:16 +0200 Subject: Translate layout names fixes https://github.com/AyatanaIndicators/ayatana-indicator-keyboard/issues/35 --- src/keyboard-lomiri.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/keyboard-lomiri.c') diff --git a/src/keyboard-lomiri.c b/src/keyboard-lomiri.c index b421fe5c..c6496e87 100644 --- a/src/keyboard-lomiri.c +++ b/src/keyboard-lomiri.c @@ -336,7 +336,8 @@ static void keyboard_init(Keyboard *self) const gchar *sLayout = rxkb_layout_get_name(pRxkbLayout); const gchar *sVariant = rxkb_layout_get_variant(pRxkbLayout); const gchar *sDescription = rxkb_layout_get_description(pRxkbLayout); - + const gchar *sTranslated = g_dgettext("xkeyboard-config", sDescription); + sDescription = sTranslated; Layout *pLayout = g_slice_new0(Layout); if (sVariant != NULL && strlen(sVariant) > 0) -- cgit v1.2.3