[kde-russian] plasma-desktop

2022-10-06 Пенетрантность Виктор
Добрый вечер!Это пакет, разрабатываемой версии 5.26. уже переведён.Но осталась проблема с переводом файла kcm_tablet.po.Сам файл полностью переведён ещё две недели назад.Но там проблема с опечаткой в коде.Файл локализации называется kcm_tablet, и он так и должен называться,но в файлеhttps://invent.kde.org/plasma/plasma-desktop/-/blob/master/kcms/tablet/CMakeLists.txtуказаноadd_definitions(-DTRANSLATION_DOMAIN=\"kcmtablet\")Правда этот параметр не особо влияет, так как основной текст лежит в qml файлах.Но в qml файлах эта же  ошибка, и вызывается domaini18nd("kcmtablet",Можно при сборке применить этот патч.Перевод начинает отображаться. -- С Уважением,Виктор victorr2...@yandex.ru 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.0 +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.0 +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)
  

[kde-russian] plasma-nm

2022-10-06 Пенетрантность Виктор
Добрый вечер!В этом пакете есть проблема, которая не позволяет отображать переводв одном месте.В файле https://invent.kde.org/plasma/plasma-nm/-/blob/master/mobile/wifi/CMakeLists.txtне указан -DTRANSLATION_DOMAIN, и отсюда не отображается перевод сторкиi18n("Wi-Fi networks")в файле https://invent.kde.org/plasma/plasma-nm/-/blob/master/mobile/wifi/wifisettings.cppПеревод остальных строк вроде не попадается на глаза при использовании.Можно при сборке исправить приложенным патчем. -- С Уважением,Виктор victorr2...@yandex.ru diff -urN plasma-nm-5.25.90/mobile/wifi/CMakeLists.txt plasma-nm-5.25.90-patched/mobile/wifi/CMakeLists.txt
--- plasma-nm-5.25.90/mobile/wifi/CMakeLists.txt	2022-10-06 10:49:11.0 +0300
+++ plasma-nm-5.25.90-patched/mobile/wifi/CMakeLists.txt	2022-10-06 14:00:17.590689604 +0300
@@ -1,4 +1,6 @@
 project (kcm_mobile_wifi)
+#KI18N Translation Domain for this library
+add_definitions(-DTRANSLATION_DOMAIN=\"kcm_mobile_wifi\")
 
 set (wifisettings_SRCS wifisettings.cpp)
 
___
kde-russian mailing list
kde-russian@lists.kde.ru
https://lists.kde.ru/mailman/listinfo/kde-russian