-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It is not possible to assign keyboard shortcuts to switch keyboard layouts when using the Ukrainian interface language #55
Comments
Please describe the issue directly here to make easier to process it by Mate developers. This being said, I confirm it using another distribution (Slint64-14.2.1, Mate 1.22) EDIT: the author edited the first post of this thread after this comment, which thus appears out of sequence. |
Thanks. I tried to create a description of the problem here. If I make any mistakes, please point me to them. |
We ask for for a downstream report in our template for reports to be sure that it isn't a distro issue and that downstream maintainer is involved and can re-check that it isn't caused by distro. Thank you. |
I would very much ask you to take a look at this problem as it has been reproduced for a very long time on all distros which include accessibility support. |
I reply to raveit65:
I realize that, that's why I suggested to the authot to describe it in full here. Do you still miss information after that? At least I was able to reproduce this issue following the steps he described. |
Quoting bmivzkrp:
If this problem was not reported until today (or not in the right place), no wonder that it be still not solved... |
I suspect this is a communication problem. Many users do not know English at all ... |
I built LibMATEKBD from the source code. This problem also exists in the Master branch. |
Just checked. The problem is also relevant for Ubuntu 20.04. |
The problem is related with the translation of
mate-keyboard-properties backtrace
|
@rbuj: Thank you very much, it works. In my case (Ubuntu-MATE 20.04), the command was: sudo rm /usr/share/locale-langpack/uk/LC_MESSAGES/xkeyboard-config.mo |
Hi, I'm a maintainer of xkeyboard-config Ukrainian translation. Am I right that the problem is the dash (minus) in the translated string ("будь-якому")? How can I change the translation to make it work? Would it be enough to replace the dash with another Unicode symbol? Thanks in advance for your help. |
Dear MATE Developers. Please resolve this issue. Otherwise, with similar translation defects, users will not be able to configure keyboard shortcuts to change the keyboard layout. |
This is not in our hand. This needs to be fixed by translators at transifex first, for master and 1.24 branch. |
Sorry, but reporters and triagers point that it is not libmatekbd translation issue. It was shown that the xkeyboard-config translation triggers the issue. It was privately confirmed that it crashes the configuration widget for the Russian locale as well. |
ok .... |
@yurchor I detected an issue with xkeyboard-config Ukrainian translation. There is a duplicated translation.
The command line reports 4 Pango errors after expanding these groups (orca disabled):
Group options (radio buttons) are loaded from https://github.com/mate-desktop/mate-control-center/blob/caa7430542bac23ba0b13ed3325ad8b1732495f4/capplets/keyboard/mate-keyboard-properties-xkbot.c#L215 |
diff --git a/po/uk.po b/po/uk.po
index 33cae58..f026ab9 100644
--- a/po/uk.po
+++ b/po/uk.po
@@ -13,7 +13,7 @@ msgstr ""
"Project-Id-Version: xkeyboard-config-2.27.99\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2019-09-25 00:22+0100\n"
-"PO-Revision-Date: 2019-09-25 15:38+0300\n"
+"PO-Revision-Date: 2020-04-20 10:31+0200\n"
"Last-Translator: Yuri Chornoivan <[email protected]>\n"
"Language-Team: Ukrainian <[email protected]>\n"
"Language: uk\n"
@@ -21,8 +21,8 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Bugs: Report translation errors to the Language-Team address.\n"
-"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
-"X-Generator: Lokalize 19.11.70\n"
+"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
+"X-Generator: Poedit 2.3\n"
#: rules/base.xml:8
msgid "Generic 101-key PC"
@@ -2153,7 +2153,7 @@ msgstr "Угорська (QWERTY)"
#: rules/base.xml:3711
msgid "Hungarian (101/QWERTZ/comma/dead keys)"
-msgstr "Угорська (102/QWERTZ/кома/сліпі клавіші)"
+msgstr "Угорська (101/QWERTZ/кома/сліпі клавіші)"
#: rules/base.xml:3717
msgid "Hungarian (101/QWERTZ/comma/no dead keys)"
@@ -3805,7 +3805,7 @@ msgstr "Зворотна похила риска, одноразовий виб
#: rules/base.xml:6640
msgid "<Less/Greater>; acts as onetime lock when pressed together with another 3rd level chooser"
-msgstr "<Менше/Більше>, одноразовий вибір регістру, якщо натиснути разом зі іншою комбінацією вибору 3-го рівня"
+msgstr "<Менше/Більше>; одноразовий вибір регістру, якщо натиснути разом зі іншою комбінацією вибору 3-го рівня"
#: rules/base.xml:6648
msgid "Ctrl position"
@@ -3893,7 +3893,7 @@ msgstr "Клавіатура Wang 724 з доповненнями Unicode (ст
#: rules/base.xml:6786
msgid "Wang 724 keypad with Unicode additions (arrows and math operators; math operators on default level)"
-msgstr "Клавіатура Wang 724 з доповненнями Unicode (стрілки та математичні оператори). Математичні операції на типовому рівні"
+msgstr "Клавіатура Wang 724 з доповненнями Unicode (стрілки та математичні оператори; mатематичні операції на типовому рівні)"
#: rules/base.xml:6792
msgid "Hexadecimal"
@@ -3936,7 +3936,7 @@ msgstr "Клавіша четвертого рівня з momayyez"
#. The description needs to be rewritten
#: rules/base.xml:6852
msgid "Four-level key with abstract separators"
-msgstr "Клавіша четвертого рівня з абстрактним розділювачем "
+msgstr "Клавіша четвертого рівня з абстрактним розділювачем"
#: rules/base.xml:6858
msgid "Semicolon on third level"
@@ -4052,7 +4052,7 @@ msgstr "Hyper відповідає Win"
#: rules/base.xml:7030
msgid "Alt is mapped to Right Win, Super to Menu"
-msgstr "Клавіша Alt відповідає правій клавіші Win, а Super - клавіші Menu."
+msgstr "Клавіша Alt відповідає правій клавіші Win, а Super - клавіші Menu"
#: rules/base.xml:7036
msgid "Left Alt is swapped with Left Win"
@@ -4264,7 +4264,7 @@ msgstr "Незв’язувальний символ нульової ширин
#: rules/base.xml:7443
msgid "Zero-width non-joiner at the 2nd level, zero-width joiner at the 3rd level, non-breaking space at the 4th level"
-msgstr "Незв’язувальний символ нульової ширини на 2-му рівні, зв’язувальний символ нульової ширини на 3-му рівні, символ нерозривного пробілу на 4-му рівні"
+msgstr ""
#: rules/base.xml:7449
msgid "Zero-width non-joiner at the 2nd level, non-breaking space at the 3rd level"
@@ -4272,15 +4272,15 @@ msgstr "Незв’язувальний символ нульової ширин
#: rules/base.xml:7455
msgid "Zero-width non-joiner at the 2nd level, non-breaking space at the 3rd level, nothing at the 4th level"
-msgstr "Незв’язувальний символ нульової ширини на 2-му рівні, нерозривний пробіл на 3-му рівні, нічого на 4-му рівні"
+msgstr ""
#: rules/base.xml:7461
msgid "Zero-width non-joiner at the 2nd level, non-breaking space at the 3rd level, zero-width joiner at the 4th level"
-msgstr "Незв’язувальний символ нульової ширини на 2-му рівні, символ нерозривного пробілу на 3-му рівні, зв’язувальний символ нульової ширини на 4-му"
+msgstr ""
#: rules/base.xml:7467
msgid "Zero-width non-joiner at the 2nd level, non-breaking space at the 3rd level, thin non-breaking space at the 4th level"
-msgstr "Незв’язувальний нульової ширини на 2-му рівні, нерозривний пробіл на 3-му рівні, вузький нерозривний пробіл на 4-му рівні"
+msgstr ""
#: rules/base.xml:7473
msgid "Zero-width non-joiner at the 3rd level, zero-width joiner at the 4th level" |
Fixed and sent upstream through TP. Many thanks. |
@yurchor I'm sorry I couldn't help you with the translations starting with "Zero-width non-joiner at the 2nd level..." I'm not used to read Ukrainian alphabet. |
Nevermind. I have shortened them to be shorter than English ones. Many thanks for your help. So I'm waiting for the confirmation from the reporter that it solves the issue to close this bug report. |
@yurchor: Unfortunately, the problem has not disappeared. ( |
@rbuj: Thank you very much. Now - everything works. Previously, I was checking this situation using already compiled files. $ wget -c https://github.com/mate-desktop/libmatekbd/files/4502410/uk.po.gz $ gunzip uk.po.gz $ sudo msgfmt uk.po -o /usr/share/locale-langpack/uk/LC_MESSAGES/xkeyboard-config.mo |
However, I believe that MATE settings should not fall due to translation defects. |
diff --git a/po/ru.po b/po/ru.po
index 639440b..436935a 100644
--- a/po/ru.po
+++ b/po/ru.po
@@ -147,7 +147,7 @@ msgstr "Cherry Blue Line CyBo@rd"
#: rules/base.xml:216
msgid "Cherry CyMotion Master XPress"
-msgstr " Cherry CyMotion Master Linux"
+msgstr "Cherry CyMotion Master XPress"
#: rules/base.xml:223
msgid "Cherry Blue Line CyBo@rd (alt.)"
@@ -3806,7 +3806,7 @@ msgstr "Backslash; действует как разовая блокировка
#: rules/base.xml:6640
msgid "<Less/Greater>; acts as onetime lock when pressed together with another 3rd level chooser"
-msgstr "<Меньше чем/Больше чем>; действует как разовая блокировка при нажатии вместе с другим выборщиком 3-го ряда"
+msgstr ""
#: rules/base.xml:6648
msgid "Ctrl position"
@@ -4005,7 +4005,7 @@ msgstr "Использовать Caps Lock как дополнительную
#: rules/base.xml:6957
msgid "Caps Lock is also a Ctrl"
-msgstr "Caps Lock как Ctrl"
+msgstr ""
#: rules/base.xml:6963
msgid "Caps Lock is disabled"
@@ -4209,15 +4209,15 @@ msgstr "<Меньше чем/Больше чем> выбирается 5-
#: rules/base.xml:7320
msgid "Right Alt chooses 5th level; acts as onetime lock when pressed together with another 5th level chooser"
-msgstr "Правая Alt выбирает 5-й ряд; действует как разовая блокировка при нажатии вместе с другим выборщиком 5-го ряда"
+msgstr ""
#: rules/base.xml:7326
msgid "Left Win chooses 5th level; acts as onetime lock when pressed together with another 5th level chooser"
-msgstr "Левая Win выбирает 5-й ряд; действует как разовая блокировка при нажатии вместе с другим выборщиком 5-го ряда"
+msgstr ""
#: rules/base.xml:7332
msgid "Right Win chooses 5th level; acts as onetime lock when pressed together with another 5th level chooser"
-msgstr "Правая Win выбирает 5-й ряд; действует как разовая блокировка при нажатии вместе с другим выборщиком 5-го ряда"
+msgstr ""
#: rules/base.xml:7378
msgid "Using space key to input non-breaking space"
@@ -4265,7 +4265,7 @@ msgstr "Несвязывающий символ нулевой ширины во
#: rules/base.xml:7443
msgid "Zero-width non-joiner at the 2nd level, zero-width joiner at the 3rd level, non-breaking space at the 4th level"
-msgstr "Несвязывающий символ нулевой ширины во 2-м ряду, связывающий символ нулевой ширины в 3-м ряду, неразрывный пробел в 4-м ряду"
+msgstr ""
#: rules/base.xml:7449
msgid "Zero-width non-joiner at the 2nd level, non-breaking space at the 3rd level"
@@ -4277,7 +4277,7 @@ msgstr "Несвязывающий символ нулевой ширины во
#: rules/base.xml:7461
msgid "Zero-width non-joiner at the 2nd level, non-breaking space at the 3rd level, zero-width joiner at the 4th level"
-msgstr "Несвязывающий символ нулевой ширины во 2-м ряду, неразрывный пробел в 3-м ряду, связывающий символ нулевой ширины в 4-м ряду"
+msgstr ""
#: rules/base.xml:7467
msgid "Zero-width non-joiner at the 2nd level, non-breaking space at the 3rd level, thin non-breaking space at the 4th level" Test: ru.po.gz
|
For Russian it's ok. I corrected the file, updated in launchpad and sent to upstream to the maintainer of xkeyboard-config Russian translation. |
Information for Ukrainian MATE users: the modified translation file is included in the Ubuntu 20.04 and Ubuntu 20.10 updates. https://bugs.launchpad.net/ubuntu/+source/language-pack-uk/+bug/1875020 Dear MATE developers, please fix this problem so that mate-keyboard-properties is stable regardless of the contents of the translation files. |
MATE 1.26, session Xorg. The problem still exists ... |
The root cause of this bug is that libxklavier truncates long strings and inadvertently creates invalid UTF-8 strings: https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/-/issues/435 libxklavier is no longer maintained, so the above ticket documents some potential paths forward for consumers of the library. |
Expected behaviour
A user using the Ukrainian interface language can assign a keyboard shortcut to switch between keyboard layouts.
Actual behaviour
After pressing the Options ... button, the settings utility closes and the focus hits the desktop.
Steps to reproduce the behaviour
Environment: Ukrainian interface language; Assistive technologies are enabled because the Orca screen reader is used.
Steps to reproduce:
Press the ALT + F1 key combination to enter the main menu;
Submenu System (Система);
Submenu Preferences (Параметри);
Submenu Hardware (Обладнання). In MATE from branch 1.22, this menu item is translated into Ukrainian otherwise: Апаратне забезпечення;
Activate the item Keyboard (Набірниця);
Select a tab Layouts (Розкладки);
Press the button Options... (Параметри...).
When you click this button, the keyboard setup utility closes and the focus falls onto the desktop. As a result, the user can not configure the keyboard shortcuts to switch between keyboard layouts.
MATE general version
1.22.2
This problem is also relevant for all MATE versions from branch 1.20.
Package version
1.22.0
Linux Distribution
Ubuntu (18.04 and later, including 19.10). Fedora (30, 31).
Link to downstream report of your Distribution
https://bugs.launchpad.net/ubuntu-mate/+bug/1813758
Many thanks for fixing this issue. Sorry for my bad English.
The text was updated successfully, but these errors were encountered: