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 1b11662..fbe2911 100644 Binary files a/com.github.adhec.Menu11/contents/locale/fr/LC_MESSAGES/plasma_applet_com.github.adhec.Menu11.mo and b/com.github.adhec.Menu11/contents/locale/fr/LC_MESSAGES/plasma_applet_com.github.adhec.Menu11.mo differ diff --git a/com.github.adhec.Menu11/contents/locale/ko/LC_MESSAGES/plasma_applet_com.github.adhec.Menu11.mo b/com.github.adhec.Menu11/contents/locale/ko/LC_MESSAGES/plasma_applet_com.github.adhec.Menu11.mo index 17ccc0e..f165b2e 100644 Binary files a/com.github.adhec.Menu11/contents/locale/ko/LC_MESSAGES/plasma_applet_com.github.adhec.Menu11.mo and b/com.github.adhec.Menu11/contents/locale/ko/LC_MESSAGES/plasma_applet_com.github.adhec.Menu11.mo differ diff --git a/com.github.adhec.Menu11/contents/locale/pt_BR/LC_MESSAGES/plasma_applet_com.github.adhec.Menu11.mo b/com.github.adhec.Menu11/contents/locale/pt_BR/LC_MESSAGES/plasma_applet_com.github.adhec.Menu11.mo index db052da..cfa6038 100644 Binary files a/com.github.adhec.Menu11/contents/locale/pt_BR/LC_MESSAGES/plasma_applet_com.github.adhec.Menu11.mo and b/com.github.adhec.Menu11/contents/locale/pt_BR/LC_MESSAGES/plasma_applet_com.github.adhec.Menu11.mo differ diff --git a/com.github.adhec.Menu11/contents/locale/ru/LC_MESSAGES/plasma_applet_com.github.adhec.Menu11.mo b/com.github.adhec.Menu11/contents/locale/ru/LC_MESSAGES/plasma_applet_com.github.adhec.Menu11.mo index d84ff36..06d9cdc 100644 Binary files a/com.github.adhec.Menu11/contents/locale/ru/LC_MESSAGES/plasma_applet_com.github.adhec.Menu11.mo and b/com.github.adhec.Menu11/contents/locale/ru/LC_MESSAGES/plasma_applet_com.github.adhec.Menu11.mo differ 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 ""