From kde-i18n-doc Wed Nov 27 22:18:01 2019 From: Albert Astals Cid Date: Wed, 27 Nov 2019 22:18:01 +0000 To: kde-i18n-doc Subject: Re: Translating keyboard shortcut for =?UTF-8?B?4oCYU3BhY2XigJk=?= Message-Id: <1825728.2KyLneiraZ () xps> X-MARC-Message: https://marc.info/?l=kde-i18n-doc&m=157489309318914 El dijous, 7 de novembre de 2019, a les 23:11:11 CET, Alexander Potashev va= escriure: > =D1=81=D0=B1, 9 =D1=8F=D0=BD=D0=B2. 2016 =D0=B3. =D0=B2 01:41, Albert Ast= als Cid : > > > > El Friday 08 January 2016, a les 21:29:28, Karl Ove Hufthammer va escri= ure: > > > In the KDE game Killbots it is possible to translate the various defa= ult > > > keyboard shortcuts: > > > > > > https://quickgit.kde.org/?p=3Dkillbots.git&a=3Dblob&f=3DREADME.transl= ators&o=3Dplain > > > > > > However, I can=E2=80=99t manage to get the translation to use the key= board > > > shortcut =E2=80=98Space=E2=80=99. This is used for the =E2=80=98telep= ort safely=E2=80=99 action. It=E2=80=99s > > > possible to translate the string, but the translation doesn=E2=80=99t= work. I > > > have tried the following: > > > > > > =E2=80=93 Using the English name =E2=80=98Space=E2=80=99, like in the= original string. =E2=80=93 Using > > > the translated name (=E2=80=98Mellomrom=E2=80=99 in the =E2=80=98nn= =E2=80=99 translation). > > > > > > 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 > > shortcuts and try to set the space key for any shortcut? >=20 > Hi Albert, >=20 > I switched Killbots to Catalan language, and it displays "Space" if I > choose the Space key as shortcut for an action. I don't know what to say other than "it works for me" https://i.imgur.com/EuhfetI.png Are you sure you have the qt translations installed? In ArchLinux is the qt= 5-translations package, and without it indeed the text shows as Space inste= ad of as Espai. Cheers, Albert >=20 > There is the same problem when I use Russian language system-wide. The > class QShortcut is 100% translated into Russian in Qt 5.12. >=20 >=20 > Tested with: > 1. Fedora 31, Qt 5.12.5, killbots 1.2.1 (aka 19.04.3) > 2. Archlinux, Qt 5.14.0, killbots 1.2.1 (aka 19.08.3) >=20 >=20