From 18a774ab4da31b40c357670ce0f545955fc8257e Mon Sep 17 00:00:00 2001 From: Valeria Fadeeva Date: Thu, 26 Sep 2024 12:36:43 +0500 Subject: [PATCH] Update --- .../contents/config/main.xml | 1 + .../plasma_applet_com.github.adhec.Menu11.mo | Bin 1429 -> 1478 bytes .../plasma_applet_com.github.adhec.Menu11.mo | Bin 1274 -> 1333 bytes .../plasma_applet_com.github.adhec.Menu11.mo | Bin 1448 -> 1493 bytes .../plasma_applet_com.github.adhec.Menu11.mo | Bin 2591 -> 2714 bytes .../contents/ui/Footer.qml | 47 +++++++++++++++++- com.github.adhec.Menu11/translate/ReadMe.md | 16 +++--- com.github.adhec.Menu11/translate/fr.po | 13 +++-- com.github.adhec.Menu11/translate/ko.po | 13 +++-- com.github.adhec.Menu11/translate/nl.po | 10 +++- com.github.adhec.Menu11/translate/pl.po | 10 +++- com.github.adhec.Menu11/translate/pt_BR.po | 13 +++-- com.github.adhec.Menu11/translate/ru.po | 15 ++++-- .../translate/template.pot | 10 +++- com.github.adhec.Menu11/translate/tr.po | 10 +++- 15 files changed, 128 insertions(+), 30 deletions(-) diff --git a/com.github.adhec.Menu11/contents/config/main.xml b/com.github.adhec.Menu11/contents/config/main.xml index 711584f..55eba58 100644 --- a/com.github.adhec.Menu11/contents/config/main.xml +++ b/com.github.adhec.Menu11/contents/config/main.xml @@ -91,5 +91,6 @@ true + diff --git a/com.github.adhec.Menu11/contents/locale/fr/LC_MESSAGES/plasma_applet_com.github.adhec.Menu11.mo b/com.github.adhec.Menu11/contents/locale/fr/LC_MESSAGES/plasma_applet_com.github.adhec.Menu11.mo index 1b116623fb06fa0e798b22cb24908479369b8646..fbe2911555e60da18820e398f42852ef8933d833 100644 GIT binary patch delta 517 zcmYk&KP&@b7{~GV&b8E)(w={bKOKq~h?T)2F^NTEMJ^W+muqqf9SmhK8%`ISLBb{> zkr)x1#AXv>G1|NM{3|8W;5_!@Ix>;jOFhCd>J!w&H>gY1UVT@Q)qx64uI?0_$)Q!6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e`bBbB=ZiZ)KyI4QjpFp9o>HhwcsYIbmy4DJ5&N* zjzu9%7cETF97U;C3rvir^>k`gKtYZs>TWna3)+%}sz=r8Izk&wDJztLLbXzmZS~9I pzW;?TSD_D77pdrWznxF_%Udcw_*NWG%uV@Eik`YNkNaAG^#^SyKzslI diff --git a/com.github.adhec.Menu11/contents/ui/Footer.qml b/com.github.adhec.Menu11/contents/ui/Footer.qml index 0e63d87..ca3d6b8 100644 --- a/com.github.adhec.Menu11/contents/ui/Footer.qml +++ b/com.github.adhec.Menu11/contents/ui/Footer.qml @@ -23,6 +23,11 @@ import org.kde.plasma.plasma5support 2.0 as P5Support import org.kde.plasma.private.sessions as Sessions +import org.kde.ksvg 1.0 as KSvg +import org.kde.kcmutils as KCM +import org.kde.plasma.plasmoid 2.0 + + RowLayout{ spacing: Kirigami.Units.largeSpacing @@ -41,7 +46,6 @@ RowLayout{ } } - Image { id: iconUser source: kuser.faceIconUrl.toString() || "user-identity" @@ -64,6 +68,27 @@ RowLayout{ visible: false } } + state: "hide" + states: [ + State { + name: "show" + when: parent.visible + PropertyChanges { target: iconUser; opacity: 1; } + }, + State { + name: "hide" + when: !parent.visible + PropertyChanges { target: iconUser; opacity: 0; } + } + ] + transitions: Transition { + PropertyAnimation { properties: "opacity"; easing.type: Easing.InOutQuad; } + } + MouseArea { + anchors.fill: parent + acceptedButtons: Qt.LeftButton + onClicked: KCM.KCMLauncher.openSystemSettings("kcm_users") + } } @@ -106,6 +131,26 @@ RowLayout{ ToolTip.text: i18n("System Preferences") } + PlasmaComponents3.ToolButton { + icon.name: "system-lock-screen" + //onClicked: pmEngine.performOperation("lockScreen") + //enabled: pmEngine.data["Sleep States"]["LockScreen"] + onClicked: sm.lock() + ToolTip.delay: 200 + ToolTip.timeout: 1000 + ToolTip.visible: hovered + ToolTip.text: i18n("Lock Screen") + } + + PlasmaComponents3.ToolButton { + icon.name: "system-switch-user" + onClicked: sm.switchUser() + ToolTip.delay: 200 + ToolTip.timeout: 1000 + ToolTip.visible: hovered + ToolTip.text: i18n("Switch User") + } + PlasmaComponents3.ToolButton { icon.name: "system-shutdown" // onClicked: sm.requestShutdown() diff --git a/com.github.adhec.Menu11/translate/ReadMe.md b/com.github.adhec.Menu11/translate/ReadMe.md index 2631e17..4693611 100644 --- a/com.github.adhec.Menu11/translate/ReadMe.md +++ b/com.github.adhec.Menu11/translate/ReadMe.md @@ -35,11 +35,11 @@ Or if you know how to make a pull request ## Status | Locale | Lines | % Done| |----------|---------|-------| -| Template | 32 | | -| fr | 19/32 | 59% | -| ko | 16/32 | 50% | -| nl | 13/32 | 40% | -| pl | 15/32 | 46% | -| pt_BR | 19/32 | 59% | -| ru | 32/32 | 100% | -| tr | 15/32 | 46% | +| Template | 34 | | +| fr | 20/34 | 58% | +| ko | 17/34 | 50% | +| nl | 13/34 | 38% | +| pl | 15/34 | 44% | +| pt_BR | 20/34 | 58% | +| ru | 34/34 | 100% | +| tr | 15/34 | 44% | diff --git a/com.github.adhec.Menu11/translate/fr.po b/com.github.adhec.Menu11/translate/fr.po index 5553f38..443b7d2 100644 --- a/com.github.adhec.Menu11/translate/fr.po +++ b/com.github.adhec.Menu11/translate/fr.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: dittomenu\n" "Report-Msgid-Bugs-To: https://github.com/prateekmedia/Menu11\n" -"POT-Creation-Date: 2024-09-23 12:45+0500\n" +"POT-Creation-Date: 2024-09-24 13:00+0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: omano\n" "Language-Team: LANGUAGE \n" @@ -123,6 +123,14 @@ msgstr "Dossier Personnel" msgid "System Preferences" msgstr "Préférences Système" +#: ../contents/ui/Footer.qml +msgid "Lock Screen" +msgstr "Verrouiller l'écran" + +#: ../contents/ui/Footer.qml +msgid "Switch User" +msgstr "" + #: ../contents/ui/Footer.qml msgid "Shutdown" msgstr "" @@ -166,9 +174,6 @@ msgstr "" #~ msgid "Show favorites first" #~ msgstr "Voir les Favoris en premier" -#~ msgid "Lock Screen" -#~ msgstr "Verrouiller l'écran" - #~ msgid "Leave ..." #~ msgstr "Quitter ..." diff --git a/com.github.adhec.Menu11/translate/ko.po b/com.github.adhec.Menu11/translate/ko.po index c7a7a53..d478209 100644 --- a/com.github.adhec.Menu11/translate/ko.po +++ b/com.github.adhec.Menu11/translate/ko.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://github.com/prateekmedia/Menu11\n" -"POT-Creation-Date: 2024-09-23 12:45+0500\n" +"POT-Creation-Date: 2024-09-24 13:00+0500\n" "PO-Revision-Date: 2021-09-29 09:43+0900\n" "Last-Translator: \n" "Language-Team: \n" @@ -120,6 +120,14 @@ msgstr "사용자 홈" msgid "System Preferences" msgstr "시스템 설정" +#: ../contents/ui/Footer.qml +msgid "Lock Screen" +msgstr "잠금" + +#: ../contents/ui/Footer.qml +msgid "Switch User" +msgstr "" + #: ../contents/ui/Footer.qml msgid "Shutdown" msgstr "" @@ -166,9 +174,6 @@ msgstr "" #~ msgid "Edit Applications..." #~ msgstr "프로그램 편집..." -#~ msgid "Lock Screen" -#~ msgstr "잠금" - #~ msgid "Leave ..." #~ msgstr "떠나기..." diff --git a/com.github.adhec.Menu11/translate/nl.po b/com.github.adhec.Menu11/translate/nl.po index 2217baf..65c5d14 100644 --- a/com.github.adhec.Menu11/translate/nl.po +++ b/com.github.adhec.Menu11/translate/nl.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: dittomenu\n" "Report-Msgid-Bugs-To: https://github.com/prateekmedia/Menu11\n" -"POT-Creation-Date: 2024-09-23 12:45+0500\n" +"POT-Creation-Date: 2024-09-24 13:00+0500\n" "PO-Revision-Date: 2022-01-01 20:09+0100\n" "Last-Translator: Heimen Stoffels \n" "Language-Team: \n" @@ -124,6 +124,14 @@ msgstr "" msgid "System Preferences" msgstr "Systeeminstellingen" +#: ../contents/ui/Footer.qml +msgid "Lock Screen" +msgstr "" + +#: ../contents/ui/Footer.qml +msgid "Switch User" +msgstr "" + #: ../contents/ui/Footer.qml msgid "Shutdown" msgstr "" diff --git a/com.github.adhec.Menu11/translate/pl.po b/com.github.adhec.Menu11/translate/pl.po index 32a2a90..164f618 100644 --- a/com.github.adhec.Menu11/translate/pl.po +++ b/com.github.adhec.Menu11/translate/pl.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: dittomenu\n" "Report-Msgid-Bugs-To: https://github.com/prateekmedia/Menu11\n" -"POT-Creation-Date: 2024-09-23 12:45+0500\n" +"POT-Creation-Date: 2024-09-24 13:00+0500\n" "PO-Revision-Date: 2022-04-05 10:40+0100\n" "Last-Translator: Krzysztof Korab \n" "Language-Team: \n" @@ -123,6 +123,14 @@ msgstr "Katalog domowy" msgid "System Preferences" msgstr "Ustawienia systemowe" +#: ../contents/ui/Footer.qml +msgid "Lock Screen" +msgstr "" + +#: ../contents/ui/Footer.qml +msgid "Switch User" +msgstr "" + #: ../contents/ui/Footer.qml msgid "Shutdown" msgstr "" diff --git a/com.github.adhec.Menu11/translate/pt_BR.po b/com.github.adhec.Menu11/translate/pt_BR.po index 28c2d00..90ff7f7 100644 --- a/com.github.adhec.Menu11/translate/pt_BR.po +++ b/com.github.adhec.Menu11/translate/pt_BR.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: dittomenu\n" "Report-Msgid-Bugs-To: https://github.com/prateekmedia/Menu11\n" -"POT-Creation-Date: 2024-09-23 12:45+0500\n" +"POT-Creation-Date: 2024-09-24 13:00+0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -123,6 +123,14 @@ msgstr "Diretório do Usuário" msgid "System Preferences" msgstr "Configurações do Sistema" +#: ../contents/ui/Footer.qml +msgid "Lock Screen" +msgstr "Tela de bloqueio" + +#: ../contents/ui/Footer.qml +msgid "Switch User" +msgstr "" + #: ../contents/ui/Footer.qml msgid "Shutdown" msgstr "" @@ -169,9 +177,6 @@ msgstr "" #~ msgid "Edit Applications..." #~ msgstr "Editar Programa" -#~ msgid "Lock Screen" -#~ msgstr "Tela de bloqueio" - #~ msgid "Leave ..." #~ msgstr "Sair ..." diff --git a/com.github.adhec.Menu11/translate/ru.po b/com.github.adhec.Menu11/translate/ru.po index 6a3834e..c008cea 100644 --- a/com.github.adhec.Menu11/translate/ru.po +++ b/com.github.adhec.Menu11/translate/ru.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: dittomenu\n" "Report-Msgid-Bugs-To: https://github.com/prateekmedia/Menu11\n" -"POT-Creation-Date: 2024-09-23 12:45+0500\n" +"POT-Creation-Date: 2024-09-24 13:00+0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Edward Karate \n" "Language-Team: LANGUAGE \n" @@ -85,7 +85,7 @@ msgstr "Положение меню" #: ../contents/ui/ConfigGeneral.qml msgid "Default" -msgstr "По умолчанию" +msgstr "По-умолчанию" #: ../contents/ui/ConfigGeneral.qml msgid "Center" @@ -123,6 +123,14 @@ msgstr "Домашняя папка" msgid "System Preferences" msgstr "Параметры системы" +#: ../contents/ui/Footer.qml +msgid "Lock Screen" +msgstr "Заблокировать" + +#: ../contents/ui/Footer.qml +msgid "Switch User" +msgstr "Сменить пользователя" + #: ../contents/ui/Footer.qml msgid "Shutdown" msgstr "Выключение" @@ -169,9 +177,6 @@ msgstr "Последние документы" #~ msgid "Edit Applications..." #~ msgstr "Редактировать меню..." -#~ msgid "Lock Screen" -#~ msgstr "Заблокировать" - #~ msgid "Leave ..." #~ msgstr "Выход ..." diff --git a/com.github.adhec.Menu11/translate/template.pot b/com.github.adhec.Menu11/translate/template.pot index 09a94b3..bbf6476 100644 --- a/com.github.adhec.Menu11/translate/template.pot +++ b/com.github.adhec.Menu11/translate/template.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Menu11\n" "Report-Msgid-Bugs-To: https://github.com/prateekmedia/Menu11\n" -"POT-Creation-Date: 2024-09-23 12:45+0500\n" +"POT-Creation-Date: 2024-09-24 13:00+0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -123,6 +123,14 @@ msgstr "" msgid "System Preferences" msgstr "" +#: ../contents/ui/Footer.qml +msgid "Lock Screen" +msgstr "" + +#: ../contents/ui/Footer.qml +msgid "Switch User" +msgstr "" + #: ../contents/ui/Footer.qml msgid "Shutdown" msgstr "" diff --git a/com.github.adhec.Menu11/translate/tr.po b/com.github.adhec.Menu11/translate/tr.po index 9443c0f..74c7bde 100644 --- a/com.github.adhec.Menu11/translate/tr.po +++ b/com.github.adhec.Menu11/translate/tr.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: dittomenu\n" "Report-Msgid-Bugs-To: https://github.com/prateekmedia/Menu11\n" -"POT-Creation-Date: 2024-09-23 12:45+0500\n" +"POT-Creation-Date: 2024-09-24 13:00+0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -126,6 +126,14 @@ msgstr "Kullanıcı Ana Sayfası" msgid "System Preferences" msgstr "Sistem Tercihleri" +#: ../contents/ui/Footer.qml +msgid "Lock Screen" +msgstr "" + +#: ../contents/ui/Footer.qml +msgid "Switch User" +msgstr "" + #: ../contents/ui/Footer.qml msgid "Shutdown" msgstr ""