From kde-i18n-doc Fri Jan 08 22:40:53 2016 From: Albert Astals Cid Date: Fri, 08 Jan 2016 22:40:53 +0000 To: kde-i18n-doc Subject: Re: Translating keyboard shortcut for =?UTF-8?B?4oCYU3BhY2XigJk=?= Message-Id: <2613060.XaJ4z59LC7 () xps> X-MARC-Message: https://marc.info/?l=kde-i18n-doc&m=145229287123808 El Friday 08 January 2016, a les 21:29:28, Karl Ove Hufthammer va escriure: > In the KDE game Killbots it is possible to translate the various default > keyboard shortcuts: >=20 > https://quickgit.kde.org/?p=3Dkillbots.git&a=3Dblob&f=3DREADME.translator= s&o=3Dplain >=20 > However, I can=E2=80=99t manage to get the translation to use the keyboard > shortcut =E2=80=98Space=E2=80=99. This is used for the =E2=80=98teleport = safely=E2=80=99 action. It=E2=80=99s > possible to translate the string, but the translation doesn=E2=80=99t wor= k. I > have tried the following: >=20 > =E2=80=93 Using the English name =E2=80=98Space=E2=80=99, like in the ori= ginal string. =E2=80=93 Using > the translated name (=E2=80=98Mellomrom=E2=80=99 in the =E2=80=98nn=E2=80= =99 translation). >=20 > Both cases result in the keyboard shortcut being listed as empty. So > which string should I use to make the shortcut key be the space key? Works fine here, it's translated to "Espai" in Catalan and works fine. What is the text that appears if you go to killbots->settings->configure=20 shortcuts and try to set the space key for any shortcut? Cheers, Albert >=20 > Using single-letters keys (e.g. M) in the translations works fine, so > the translatable string seems to correctly associated with the teleport > safely=E2=80=99 action. It=E2=80=99s just using the =E2=80=98Space=E2=80= =99 string that doesn=E2=80=99t work. >=20 > Note that the keyboard shortcuts are listed in the file > ~/.local/share/kxmlgui5/killbots/killbotsui.rc When testing, I updated > the translation (place the .mo file where it belongs), deleted the > killbotsui.rc file and then started the game. >=20 > -- Karl Ove Hufthammer