From 01c702df4ef7b06abc400501471400369f303450 Mon Sep 17 00:00:00 2001 From: fuleyi Date: Thu, 9 Jan 2025 10:56:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=E7=AA=97=E5=8F=A3?= =?UTF-8?q?=E9=93=BA=E8=87=B3=E5=B7=A6=E5=8F=B3=E4=BE=A7=E5=BF=AB=E6=8D=B7?= =?UTF-8?q?=E9=94=AE=E7=9A=84=E7=BF=BB=E8=AF=91=EF=BC=8C=E6=9B=B4=E6=96=B0?= =?UTF-8?q?go.mod?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加窗口铺至左右侧快捷键的翻译,更新go.mod Log: 添加窗口铺至左右侧快捷键的翻译,更新go.mod pms: BUG-299025 --- go.mod | 2 +- go.sum | 6 ++---- keybinding1/shortcuts/id_name_map.go | 2 ++ misc/po/dde-daemon.pot | 10 +++++++++- misc/po/en_US.po | 8 ++++++++ misc/po/zh_CN.po | 8 ++++++++ 6 files changed, 30 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 938ef96bf..411aba6e2 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,7 @@ require ( github.com/godbus/dbus/v5 v5.1.0 github.com/gosexy/gettext v0.0.0-20160830220431-74466a0a0c4a github.com/jouyouyun/hardware v0.1.8 - github.com/linuxdeepin/dde-api v0.0.0-20241226054448-2620c0f1575c + github.com/linuxdeepin/dde-api v0.0.0-20250109021416-9ed771fda2cb github.com/linuxdeepin/go-dbus-factory v0.0.0-20241205055755-b43db97ea584 github.com/linuxdeepin/go-gir v0.0.0-20230710064042-bd15f0549c87 github.com/linuxdeepin/go-lib v0.0.0-20241205060835-186e3626ee51 diff --git a/go.sum b/go.sum index ae740ee4d..8095ca41d 100644 --- a/go.sum +++ b/go.sum @@ -32,10 +32,8 @@ github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfn github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/linuxdeepin/dde-api v0.0.0-20241128100002-d1fb4aa471f5 h1:0OFQ7rwwGOAo45rluOYH7cOMBoBdXis4h1oFNyLteO4= -github.com/linuxdeepin/dde-api v0.0.0-20241128100002-d1fb4aa471f5/go.mod h1:Ms92CRDOjzkDmX1x0x6+b0vQSYHJ7Ab9jQMY2JYWiio= -github.com/linuxdeepin/dde-api v0.0.0-20241226054448-2620c0f1575c h1:WU/DqCX032cwgU+/HE5dLfcsEq/fxLPIAkI6KYqjq68= -github.com/linuxdeepin/dde-api v0.0.0-20241226054448-2620c0f1575c/go.mod h1:Ms92CRDOjzkDmX1x0x6+b0vQSYHJ7Ab9jQMY2JYWiio= +github.com/linuxdeepin/dde-api v0.0.0-20250109021416-9ed771fda2cb h1:XnElAirUf9DInKFgT0lW1T6x46QP1qPASJInb4doWlI= +github.com/linuxdeepin/dde-api v0.0.0-20250109021416-9ed771fda2cb/go.mod h1:Ms92CRDOjzkDmX1x0x6+b0vQSYHJ7Ab9jQMY2JYWiio= github.com/linuxdeepin/go-dbus-factory v0.0.0-20241205055755-b43db97ea584 h1:LA2Nnk+rFgw1cSTpFLVpZk1o9VxYjLz9w8pVXGgDwVU= github.com/linuxdeepin/go-dbus-factory v0.0.0-20241205055755-b43db97ea584/go.mod h1:iIlTR50SA8MJ9ORPyMOpKWMF4g+AUorbER5AX0RD9Jk= github.com/linuxdeepin/go-gir v0.0.0-20230331033513-a8d7a9e89f9b/go.mod h1:a0tox5vepTQu5iO6rdKc4diGT+fkyXZlRROM8ULEvaI= diff --git a/keybinding1/shortcuts/id_name_map.go b/keybinding1/shortcuts/id_name_map.go index 86829f73e..e987b298b 100644 --- a/keybinding1/shortcuts/id_name_map.go +++ b/keybinding1/shortcuts/id_name_map.go @@ -143,6 +143,8 @@ func getWMIdNameMap() map[string]string { "view-zoom-in": gettext.Tr("Zoom In"), "view-zoom-out": gettext.Tr("Zoom Out"), "view-actual-size": gettext.Tr("Zoom to Actual Size"), + "toggle-to-left": gettext.Tr("Window Quick Tile Left"), + "toggle-to-right": gettext.Tr("Window Quick Tile Right"), } return idNameMap } diff --git a/misc/po/dde-daemon.pot b/misc/po/dde-daemon.pot index 478697b76..c0757a5d4 100644 --- a/misc/po/dde-daemon.pot +++ b/misc/po/dde-daemon.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-01-06 17:16+0800\n" +"POT-Creation-Date: 2025-01-09 10:37+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -506,6 +506,14 @@ msgstr "" msgid "Zoom to Actual Size" msgstr "" +#: ../../keybinding1/shortcuts/id_name_map.go:146 +msgid "Window Quick Tile Left" +msgstr "" + +#: ../../keybinding1/shortcuts/id_name_map.go:147 +msgid "Window Quick Tile Right" +msgstr "" + #: ../../langselector1/locale.go:47 msgid "Authentication is required to switch language" msgstr "" diff --git a/misc/po/en_US.po b/misc/po/en_US.po index e838975c9..002b7a9d9 100644 --- a/misc/po/en_US.po +++ b/misc/po/en_US.po @@ -535,6 +535,14 @@ msgstr "" msgid "Zoom to Actual Size" msgstr "" +#: ../../keybinding1/shortcuts/id_name_map.go:146 +msgid "Window Quick Tile Left" +msgstr "Window Quick Tile Left" + +#: ../../keybinding1/shortcuts/id_name_map.go:147 +msgid "Window Quick Tile Right" +msgstr "Window Quick Tile Right" + #: ../../langselector/locale.go:48 msgid "Authentication is required to switch language" msgstr "Authentication is required to switch language" diff --git a/misc/po/zh_CN.po b/misc/po/zh_CN.po index 9d2101d58..80ed79b58 100644 --- a/misc/po/zh_CN.po +++ b/misc/po/zh_CN.po @@ -517,6 +517,14 @@ msgstr "屏幕缩小" msgid "Zoom to Actual Size" msgstr "重置屏幕缩放" +#: ../../keybinding1/shortcuts/id_name_map.go:146 +msgid "Window Quick Tile Left" +msgstr "窗口快速铺至左侧" + +#: ../../keybinding1/shortcuts/id_name_map.go:147 +msgid "Window Quick Tile Right" +msgstr "窗口快速铺至右侧" + #: ../../langselector1/locale.go:47 msgid "Authentication is required to switch language" msgstr "切换语言需要认证"