Всем доброй ночи!Уже писал здесь, что не работает перевод для мыши и сенсорной панели для движка libinput.Совсем случайно удалось это исправить.Вчера решил упаковать в пакеты модули обоев Video playlist и Video wallpaper отсюда https://store.kde.org/browse/cat/419/Пришлось прописывать вызовы локализации и делать к ним перевод и CMakeLists.txt.Если короче, то по такому же принципу решил подправит вызовы локализации и в данном случае.В итоге, перевод везде начал работать.И для мыши в иксах, так как у нас в последней Росе используется libinput вместо xinput.Так же перевод начал работать для сенсорной панели в сеансе wayland, где тоже используется движок libinput.Фотка настройки мыши http://rgho.st/8p69cBPQNА тут сенсорной панели http://rgho.st/6rdMzNNC2Правда с ней ещё нужно разбираться.Такие строки не могу понятьRight-click (three-finger tap to middle-click)Middle-click (three-finger tap right-click) Приложу на всякий случай патчи, вдруг кому-то будут полезны. -- С Уважением,Виктор victorr2...@yandex.ru diff -urN plasma-desktop/kcms/mouse/kcm/libinput/main_deviceless.qml plasma-desktop-patched/kcms/mouse/kcm/libinput/main_deviceless.qml
--- plasma-desktop/kcms/mouse/kcm/libinput/main_deviceless.qml 2018-11-07 03:18:21.0 +0300
+++ plasma-desktop-patched/kcms/mouse/kcm/libinput/main_deviceless.qml 2018-11-10 01:26:30.491021312 +0300
@@ -62,9 +62,9 @@
// General
Controls.CheckBox {
-Kirigami.FormData.label: i18n("General:")
+Kirigami.FormData.label: i18nd("kcmmouse", "General:")
id: leftHanded
-text: i18n("Left handed mode")
+text: i18nd("kcmmouse", "Left handed mode")
function load() {
if (!formLayout.enabled) {
@@ -83,13 +83,13 @@
}
ToolTip {
-text: i18n("Swap left and right buttons.")
+text: i18nd("kcmmouse", "Swap left and right buttons.")
}
}
Controls.CheckBox {
id: middleEmulation
-text: i18n("Press left and right buttons for middle-click")
+text: i18nd("kcmmouse", "Press left and right buttons for middle-click")
function load() {
if (!formLayout.enabled) {
@@ -108,7 +108,7 @@
}
ToolTip {
-text: i18n("Clicking left and right button simultaneously sends middle button click.")
+text: i18nd("kcmmouse", "Clicking left and right button simultaneously sends middle button click.")
}
}
@@ -118,7 +118,7 @@
// Acceleration
Controls.Slider {
-Kirigami.FormData.label: i18n("Pointer speed:")
+Kirigami.FormData.label: i18nd("kcmmouse", "Pointer speed:")
id: accelSpeed
from: 1
@@ -150,7 +150,7 @@
Layouts.ColumnLayout {
id: accelProfile
spacing: Kirigami.Units.smallSpacing
-Kirigami.FormData.label: i18n("Acceleration profile:")
+Kirigami.FormData.label: i18nd("kcmmouse", "Acceleration profile:")
Kirigami.FormData.buddyFor: accelProfileFlat
function load() {
@@ -181,20 +181,20 @@
Controls.RadioButton {
id: accelProfileFlat
-text: i18n("Flat")
+text: i18nd("kcmmouse", "Flat")
ToolTip {
-text: i18n("Cursor moves the same distance as the mouse movement.")
+text: i18nd("kcmmouse", "Cursor moves the same distance as the mouse movement.")
}
onCheckedChanged: accelProfile.syncCurrent()
}
Controls.RadioButton {
id: accelProfileAdaptive
-text: i18n("Adaptive")
+text: i18nd("kcmmouse", "Adaptive")
ToolTip {
-text: i18n("Cursor travel distance depends on the mouse movement speed.")
+text: i18nd("kcmmouse", "Cursor travel distance depends on the mouse movement speed.")
}
onCheckedChanged: accelProfile.syncCurrent()
}
@@ -206,9 +206,9 @@
// Scrolling
Controls.CheckBox {
-Kirigami.FormData.label: i18n("Scrolling:")
+Kirigami.FormData.label: i18nd("kcmmouse", "Scrolling:")
id: naturalScroll
-text: i18n("Invert scroll direction")
+text: i18nd("kcmmouse", "Invert scroll direction")
function load() {
enabled = device.supportsNaturalScroll
@@ -223,7 +223,7 @@
}
ToolTip {
-text: i18n("Touchscreen like scrolling.")
+text: i18nd("kcmmouse", "Touchscreen like scrolling.")
}
}
}
diff -urN plasma-desktop/kcms/mouse/kcm/libinput/main.qml plasma-desktop-patched/kcms/mouse/kcm/libinput/main.qml
---