Re: [kde-russian] purpose

2019-10-01 Пенетрантность Yuri Chornoivan
вівторок, 1 жовтня 2019 р. 15:13:42 EEST Виктор написано:
> Добрый день.
> У кого-нибудь отображается перевод строк в контекстном меню dolphin
> «Поделиться»? Или это я неправильно собираю пакет purpose?
> А то у меня что-то действия в этом меню без перевода.
> Совсем непонятно назначение строки в
> add_definitions(-DTRANSLATION_DOMAIN=\"purpose5\")
> в файле /purpose/CMakeLists.txt
> Нет ни файла локализации, ни Messages.sh с таким именем, а используются
> add_definitions(-DTRANSLATION_DOMAIN=
> для отдельных модулей.
> Ещё в приложении полно файлов qml, и для них не работают строки
> add_definitions(-DTRANSLATION_DOMAIN=
> в файлах CMakeLists.txt для этих модулей.
> Видимо правильнее использовать вызов i18nd.
> Вообще в паре модулей как раз и используется i18nd, и в них перевод
> работает. Например в файле
> /purpose/src/plugins/twitter/contents/config/config.qml Если наложить
> приложенный патч, то будет отображаться перевод и в остальных модулях. 

Добрый день,

Исправлено. Спасибо.

С уважением,
Юрий
___
kde-russian mailing list
kde-russian@lists.kde.ru
https://lists.kde.ru/mailman/listinfo/kde-russian

[kde-russian] purpose

2019-10-01 Пенетрантность Виктор
Добрый день.У кого-нибудь отображается перевод строк в контекстном меню dolphin «Поделиться»?Или это я неправильно собираю пакет purpose?А то у меня что-то действия в этом меню без перевода.Совсем непонятно назначение строки вadd_definitions(-DTRANSLATION_DOMAIN=\"purpose5\")в файле /purpose/CMakeLists.txtНет ни файла локализации, ни Messages.sh с таким именем, а используютсяadd_definitions(-DTRANSLATION_DOMAIN=для отдельных модулей.Ещё в приложении полно файлов qml, и для них не работают строкиadd_definitions(-DTRANSLATION_DOMAIN=в файлах CMakeLists.txt для этих модулей.Видимо правильнее использовать вызов i18nd.Вообще в паре модулей как раз и используется i18nd, и в них перевод работает.Например в файле /purpose/src/plugins/twitter/contents/config/config.qmlЕсли наложить приложенный патч, то будет отображаться перевод и в остальных модулях. -- С Уважением,Виктор victorr2...@yandex.ru diff -urN purpose-5.62.0/src/plugins/bluetooth/bluetoothplugin_config.qml purpose-5.62.0-patched/src/plugins/bluetooth/bluetoothplugin_config.qml
--- purpose-5.62.0/src/plugins/bluetooth/bluetoothplugin_config.qml	2019-09-26 04:44:34.0 +0300
+++ purpose-5.62.0-patched/src/plugins/bluetooth/bluetoothplugin_config.qml	2019-10-01 14:01:02.874308013 +0300
@@ -31,7 +31,7 @@
 anchors.bottomMargin: Kirigami.Units.smallSpacing
 
 Kirigami.Heading {
-text: i18n("Choose a device to send to:")
+text: i18nd("purpose_bluetooth", "Choose a device to send to:")
 visible: list.count !== 0
 level: 1
 }
@@ -65,7 +65,7 @@
 verticalAlignment: Qt.AlignVCenter
 horizontalAlignment: Qt.AlignHCenter
 visible: list.count === 0
-text: i18n("No devices found")
+text: i18nd("purpose_bluetooth", "No devices found")
 }
 }
 }
diff -urN purpose-5.62.0/src/plugins/nextcloud/nextcloudplugin_config.qml purpose-5.62.0-patched/src/plugins/nextcloud/nextcloudplugin_config.qml
--- purpose-5.62.0/src/plugins/nextcloud/nextcloudplugin_config.qml	2019-09-26 04:44:34.0 +0300
+++ purpose-5.62.0-patched/src/plugins/nextcloud/nextcloudplugin_config.qml	2019-10-01 14:19:30.807617753 +0300
@@ -46,7 +46,7 @@
 configuration.data = jobData;
 }
 
-Label { text: i18n("Account:") }
+Label { text: i18nd("purpose_nextcloud", "Account:") }
 RowLayout {
 Layout.fillWidth: true
 ComboBox {
@@ -67,7 +67,7 @@
 onClicked: KQCA.KCMShell.open("kcm_kaccounts");
 }
 }
-Label { text: i18n("Upload to folder:") }
+Label { text: i18nd("purpose_nextcloud", "Upload to folder:") }
 TextField {
 id: folderField
 Layout.fillWidth: true
diff -urN purpose-5.62.0/src/plugins/phabricator/phabricatorplugin_config.qml purpose-5.62.0-patched/src/plugins/phabricator/phabricatorplugin_config.qml
--- purpose-5.62.0/src/plugins/phabricator/phabricatorplugin_config.qml	2019-09-26 04:44:34.0 +0300
+++ purpose-5.62.0-patched/src/plugins/phabricator/phabricatorplugin_config.qml	2019-10-01 14:16:29.857621601 +0300
@@ -36,11 +36,11 @@
 function labelText()
 {
 if (updateDRCombo.currentIndex>=0 && updateOld.checked) {
-return updateDR.length > 0 ? i18n("Update differential revision %1", updateDR) : i18n("Update differential revision")
+return updateDR.length > 0 ? i18nd("purpose_phabricator", "Update differential revision %1", updateDR) : i18nd("purpose_phabricator", "Update differential revision")
 } else if (createNew.checked) {
-return i18n("Create new \"differential diff\"")
+return i18nd("purpose_phabricator", "Create new \"differential diff\"")
 } else {
-return i18n("Create or update?")
+return i18nd("purpose_phabricator", "Create or update?")
 }
 }
 Label {
@@ -63,7 +63,7 @@
 root.updateDR = ""
 root.drTitle = ""
 } else {
-root.updateDR = i18n("unknown")
+root.updateDR = i18nd("purpose_phabricator", "unknown")
 root.drTitle = ""
 }
 }
@@ -77,8 +77,8 @@
 RadioButton {
 id: createNew
 exclusiveGroup: updateGroup
-text: i18n("New Diff")
-tooltip: i18n("tick this to create a new \"differential diff\" which can\nbe converted online to a new differential revision")
+text: i18nd("purpose_phabricator", "New Diff")
+tooltip: i18nd("purpose_phabricator", "tick this to create a new \"differential diff\" which can\nbe converted online to a new differential revision")
 onCheckedChanged: {
 root.refreshUpdateDR();
 }
@@ -86,8 +86,8 @@
 RadioButton {
 id: updateOld
 exclusiveGroup: updateGroup
-text: i18n("Update Diff")
-tooltip: i18n("tick this to update an exis

[kde-russian] purpose

2018-10-11 Пенетрантность Виктор
Добрый вечер.В контекстном меню dolphin, в свойствах файла, есть слово «Share».Перевод этого слова в файле purpose-fileitemaction.po,но в исходниках purpose этого файла нет, только Messages.sh для него.В этом файле всего одно слово.В Росе пока добавили такой патч.  -- С Уважением,Виктор victorr2...@yandex.ru diff -urN purpose-5.50.0/po/ru/purpose-fileitemaction.po purpose-5.50.0-patched/po/ru/purpose-fileitemaction.po
--- purpose-5.50.0/po/ru/purpose-fileitemaction.po	1970-01-01 10:00:00.0 +1000
+++ purpose-5.50.0-patched/po/ru/purpose-fileitemaction.po	2018-10-11 22:56:33.550735591 +1000
@@ -0,0 +1,25 @@
+# Translation of purpose-fileitemaction.po to Ukrainian
+# Copyright (C) 2018 This_file_is_part_of_KDE
+# This file is distributed under the license LGPL version 2.1 or
+# version 3 or later versions approved by the membership of KDE e.V.
+#
+# Andrey Bondrov , 2018.
+msgid ""
+msgstr ""
+"Project-Id-Version: purpose-fileitemaction\n"
+"Report-Msgid-Bugs-To: http://bugs.kde.org\n";
+"POT-Creation-Date: 2018-08-16 09:06+0200\n"
+"PO-Revision-Date: 2018-10-11 17:49+0200\n"
+"Last-Translator: Andrey Bondrov \n"
+"Language: ru\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=4; plural=n==1 ? 3 : 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 2.0\n"
+
+#: sharefileitemaction.cpp:47
+#, kde-format
+msgid "Share"
+msgstr "Поделиться"
___
kde-russian mailing list
kde-russian@lists.kde.ru
https://lists.kde.ru/mailman/listinfo/kde-russian