Bug 343198 - Alphabetic keys can no longer be used for filling in messages from TM
Summary: Alphabetic keys can no longer be used for filling in messages from TM
Status: REOPENED
Alias: None
Product: lokalize
Classification: Applications
Component: general (show other bugs)
Version: 2.0
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Nick Shaforostoff
URL:
Keywords:
: 343083 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-01-23 14:13 UTC by Vit Pelcak
Modified: 2019-10-26 14:12 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vit Pelcak 2015-01-23 14:13:17 UTC
I have Czech and English keyboard layouts.

In English layout there is line of keys with numbers above regular keys which switches in Czech layout to Czech specific diacritics symbols.

In Lokalize 1.5 I was able to use these keys to selecting messages from TM in translation while Czech layout was used. In Git version this is no longer possible.

As a consequence I have to switch to English layout whenever I want to select something from TM and then back to Czech to be able to type in Czech. That is very inconvenient and even might cause typos when I forget to switch layouts.

Reproducible: Always
Comment 1 Nick Shaforostoff 2015-01-24 15:51:31 UTC
using kde4 + lokalize kf5 i switched to czech layout but only ctrl+1 didn't work.

you can change defaults for cs_CZ locale: in editortab.cpp on line 292 to the ones that correspond to number keys in your layout and send the patch to me
Comment 2 Vit Pelcak 2015-01-24 15:53:38 UTC
I'll check that. Well I used Ctrl+1 so far.
Comment 3 Vit Pelcak 2015-01-26 10:17:02 UTC
Well, in Czech pressing Ctrl+1 writes "+". Other numbers don't add anything.

Please note, Lokalize 1.5 in KDE4 of KF5 works well. Also Lokalize 1.5 in KF5 works well.

The only issue seems to be in KF5+Lokalize Git combination.
Comment 4 Nick Shaforostoff 2015-01-26 10:33:40 UTC
so I will just set an additional shortcut of ctrl++  if system locale is cs_CZ
Comment 5 Vit Pelcak 2015-01-26 11:36:57 UTC
Problem is, that other keys don't do anything at all.
Comment 6 Vit Pelcak 2015-03-20 13:05:23 UTC
*** Bug 343083 has been marked as a duplicate of this bug. ***
Comment 7 Vit Pelcak 2015-03-20 13:06:32 UTC
Hello.

What is the progress with this? I'm pretty happy with using latest Lokalize ATM, but this thing really annoys me a lot.
Comment 8 Nick Shaforostoff 2015-03-20 16:37:52 UTC
i'll answer later today...
Comment 9 Nick Shaforostoff 2015-03-20 23:29:36 UTC
Git commit 96c16c31ad0beb3b8b3823e3035d22785029ed1a by Nick Shaforostoff.
Committed on 21/03/2015 at 01:27.
Pushed by shaforo into branch 'Applications/15.04'.

add additional default shortcut ctrl++ (ctrl and plus) to insert first tm suggestion if running under Czech locale
if nothing is changed for you try removing lokalizerc file

M  +7    -4    src/editortab.cpp

http://commits.kde.org/lokalize/96c16c31ad0beb3b8b3823e3035d22785029ed1a
Comment 10 Vit Pelcak 2015-03-23 07:48:56 UTC
Hello.

This doesn't seem to solve the issue for me.
Whenever I switch to Czech QWERTY layout and press Ctrl+1, "+" sign is always entered at the beginning of the string.
Comment 11 Vit Pelcak 2015-03-23 09:00:57 UTC
To sum it up:

When US keyboard is enabled and you press Ctrl+ numbers on alphanumeric keyboard, everything works as expected.

When CS (QWERTY) keyboard is enabled and you press Ctrl+ numbers on alphanumeric keyboard, pressing Ctrl+1 you'll get "+", for Ctrl+9 you'll get "9", for Ctrl+0 you'll get "0". For other numbers, nothing happens.

When either US or CS (QWERTY) is enabled and you press Ctrl+ numbers on numeric keyboard, pressing Ctrl+1 you'll get "1", for Ctrl+9 you'll get "9", for Ctrl+0 you'll get "0". For other numbers, nothing happens.
Comment 12 Nick Shaforostoff 2015-03-23 10:08:37 UTC
which locale do you use?
echo $LANG $LOCALE
Comment 13 Vit Pelcak 2015-03-24 08:43:00 UTC
> echo $LANG $LOCALE
en_US.UTF-8

I use English for base system and Czech for KDE.
Comment 14 Vit Pelcak 2015-03-25 09:48:56 UTC
In KF5:
echo $LANG $LOCALE
cs_CZ.UTF-8

Ctrl+1 works but other keys don't.
Comment 15 Nick Shaforostoff 2015-03-25 10:48:07 UTC
can you think of any possible reasons why ctrl+2 and others do not work? i cannot reproduce this: only ctrl+1 didn't work when i used Czech layout. i'll try on another computer with ubuntu vivid today
Comment 16 Vit Pelcak 2015-03-31 14:15:06 UTC
No clue at all. Sorry.
Comment 17 Adrián Chaves (Gallaecio) 2019-10-26 14:12:08 UTC
Is this still happening?