Добрый вечер!
Это пакет, разрабатываемой версии 5.26. уже переведён.
Но осталась проблема с переводом файла kcm_tablet.po.
Сам файл полностью переведён ещё две недели назад.
Но там проблема с опечаткой в коде.
Файл локализации называется kcm_tablet, и он так и должен называться,
но в файле
указано
add_definitions(-DTRANSLATION_DOMAIN=\"kcmtablet\")Правда этот параметр не особо влияет, так как основной текст лежит в qml файлах.Но в qml файлах эта же ошибка, и вызывается domain
i18nd("kcmtablet",Можно при сборке применить этот патч.
Перевод начинает отображаться.
--
С Уважением,
С Уважением,
Виктор
diff -urN plasma-desktop-5.25.90/kcms/tablet/CMakeLists.txt plasma-desktop-5.25.90-patched/kcms/tablet/CMakeLists.txt
--- plasma-desktop-5.25.90/kcms/tablet/CMakeLists.txt 2022-10-03 23:59:06.000000000 +0300
+++ plasma-desktop-5.25.90-patched/kcms/tablet/CMakeLists.txt 2022-10-06 18:46:51.755174029 +0300
@@ -1,4 +1,4 @@
-add_definitions(-DTRANSLATION_DOMAIN=\"kcmtablet\")
+add_definitions(-DTRANSLATION_DOMAIN=\"kcm_tablet\")
include(ECMQtDeclareLoggingCategory)
ecm_qt_declare_logging_category(common_SRCS
diff -urN plasma-desktop-5.25.90/kcms/tablet/package/contents/ui/main.qml plasma-desktop-5.25.90-patched/kcms/tablet/package/contents/ui/main.qml
--- plasma-desktop-5.25.90/kcms/tablet/package/contents/ui/main.qml 2022-10-03 23:59:06.000000000 +0300
+++ plasma-desktop-5.25.90-patched/kcms/tablet/package/contents/ui/main.qml 2022-10-06 14:31:07.964869084 +0300
@@ -24,7 +24,7 @@
type: Kirigami.MessageType.Information
visible: combo.count === 0
- text: i18nd("kcmtablet", "No drawing tablets found.")
+ text: i18nd("kcm_tablet", "No drawing tablets found.")
}
Kirigami.FormLayout {
@@ -32,7 +32,7 @@
enabled: combo.count > 0
QQC2.ComboBox {
id: combo
- Kirigami.FormData.label: i18ndc("kcmtablet", "@label:listbox The device we are configuring", "Device:")
+ Kirigami.FormData.label: i18ndc("kcm_tablet", "@label:listbox The device we are configuring", "Device:")
model: kcm.toolsModel
onCountChanged: if (count > 0 && currentIndex < 0) {
@@ -59,7 +59,7 @@
QQC2.ComboBox {
id: outputsCombo
- Kirigami.FormData.label: i18nd("kcmtablet", "Target display:")
+ Kirigami.FormData.label: i18nd("kcm_tablet", "Target display:")
model: OutputsModel {
id: outputsModel
}
@@ -71,7 +71,7 @@
}
}
QQC2.ComboBox {
- Kirigami.FormData.label: i18nd("kcmtablet", "Orientation:")
+ Kirigami.FormData.label: i18nd("kcm_tablet", "Orientation:")
model: OrientationsModel {
id: orientationsModel
}
@@ -83,7 +83,7 @@
}
}
QQC2.CheckBox {
- Kirigami.FormData.label: i18nd("kcmtablet", "Left-handed mode:")
+ Kirigami.FormData.label: i18nd("kcm_tablet", "Left-handed mode:")
enabled: parent.device && parent.device.supportsLeftHanded
checked: parent.device && parent.device.leftHanded
onCheckedChanged: {
@@ -93,7 +93,7 @@
QQC2.ComboBox {
id: outputAreaCombo
Layout.fillWidth: true
- Kirigami.FormData.label: i18nd("kcmtablet", "Area:")
+ Kirigami.FormData.label: i18nd("kcm_tablet", "Area:")
model: OutputsFittingModel {}
onActivated: {
outputAreaView.changed = true
@@ -172,7 +172,7 @@
visible: outputAreaCombo.currentIndex >= 2
icon.name: "transform-move"
display: QQC2.AbstractButton.IconOnly
- text: i18nd("kcmtablet", "Resize the tablet area")
+ text: i18nd("kcm_tablet", "Resize the tablet area")
QQC2.ToolTip {
text: tabletSizeHandle.text
visible: parent.hovered
@@ -196,12 +196,12 @@
QQC2.CheckBox {
id: keepAspectRatio
- text: i18ndc("kcmtablet", "@option:check", "Lock aspect ratio")
+ text: i18ndc("kcm_tablet", "@option:check", "Lock aspect ratio")
visible: outputAreaCombo.currentIndex >= 2
checked: true
}
QQC2.Label {
- text: i18ndc("kcmtablet", "tablet area position - size", "%1,%2 - %3Ã%4", Math.floor(outputAreaView.outputAreaSetting.x * outputItem.outputSize.width)
+ text: i18ndc("kcm_tablet", "tablet area position - size", "%1,%2 - %3Ã%4", Math.floor(outputAreaView.outputAreaSetting.x * outputItem.outputSize.width)
, Math.floor(outputAreaView.outputAreaSetting.y * outputItem.outputSize.height)
, Math.floor(outputAreaView.outputAreaSetting.width * outputItem.outputSize.width)
, Math.floor(outputAreaView.outputAreaSetting.height * outputItem.outputSize.height))
@@ -213,7 +213,7 @@
property QtObject padDevice: null
QQC2.ComboBox {
- Kirigami.FormData.label: i18ndc("kcmtablet", "@label:listbox The pad we are configuring", "Pad:")
+ Kirigami.FormData.label: i18ndc("kcm_tablet", "@label:listbox The pad we are configuring", "Pad:")
model: kcm.padsModel
onCurrentIndexChanged: {
diff -urN plasma-desktop-5.25.90/kcms/tablet/package/contents/ui/RebindButtons.qml plasma-desktop-5.25.90-patched/kcms/tablet/package/contents/ui/RebindButtons.qml
--- plasma-desktop-5.25.90/kcms/tablet/package/contents/ui/RebindButtons.qml 2022-10-03 23:59:06.000000000 +0300
+++ plasma-desktop-5.25.90-patched/kcms/tablet/package/contents/ui/RebindButtons.qml 2022-10-06 14:31:59.016283250 +0300
@@ -40,7 +40,7 @@
Layout.fillWidth: true
QQC2.Label {
id: buttonLabel
- text: i18nd("kcmtablet", "Button %1:", modelData + 1)
+ text: i18nd("kcm_tablet", "Button %1:", modelData + 1)
}
Connections {
_______________________________________________ kde-russian mailing list [email protected] https://lists.kde.ru/mailman/listinfo/kde-russian
