diff options
author | Robert Tari <robert@tari.in> | 2022-08-03 10:21:16 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2022-08-15 17:10:19 +0200 |
commit | d06286cae3dab0e512c2885e4500c573de72dcf6 (patch) | |
tree | a1670ab3ff670afc5b2f2581d062caeccf17496c /src/keyboard-x11.c | |
parent | 8c6e2b033b9aa42c05e578edd459f2d00c019d40 (diff) | |
download | ayatana-indicator-keyboard-d06286cae3dab0e512c2885e4500c573de72dcf6.tar.gz ayatana-indicator-keyboard-d06286cae3dab0e512c2885e4500c573de72dcf6.tar.bz2 ayatana-indicator-keyboard-d06286cae3dab0e512c2885e4500c573de72dcf6.zip |
Translate layout names
fixes https://github.com/AyatanaIndicators/ayatana-indicator-keyboard/issues/35
Diffstat (limited to 'src/keyboard-x11.c')
-rw-r--r-- | src/keyboard-x11.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/keyboard-x11.c b/src/keyboard-x11.c index 86449c7d..d841e348 100644 --- a/src/keyboard-x11.c +++ b/src/keyboard-x11.c @@ -482,7 +482,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) |