feat: add an own lock screen with the bubble and your wallpaper

This commit is contained in:
Felitendo committed 2026-09-26 19:35:41 +02:00
1 parent c693ca216c
commit c228291520
44 files changed
+3891 -1033

No files matched your search

+134 -71
View File
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: face-unlock 1.0.1\n"
"Report-Msgid-Bugs-To: https://github.com/LoonixTools/face-unlock/issues\n"
"POT-Creation-Date: 2026-09-26 19:34+0200\n"
"POT-Creation-Date: 2026-09-26 19:35+0200\n"
"PO-Revision-Date: 2026-09-24 12:00+0200\n"
"Last-Translator: Felitendo\n"
"Language-Team: Chinese (simplified)\n"
@@ -53,8 +53,8 @@ msgstr "没有添加人脸。"
msgid "First, set up your face."
msgstr "请先设置你的人脸。"
#: src/face-unlock:100 src/face-unlock:139 src/lib/menu.sh:466
#: src/lib/menu.sh:470 src/lib/menu.sh:476 src/lib/menu.sh:478
#: src/face-unlock:100 src/face-unlock:139 src/lib/menu.sh:500
#: src/lib/menu.sh:504 src/lib/menu.sh:510 src/lib/menu.sh:512
msgid "Could not save the setting."
msgstr "无法保存设置。"
@@ -98,16 +98,16 @@ msgstr "人脸解锁已关闭。你的人脸会保留;可在“人脸”中删
msgid "No face is set up yet."
msgstr "尚未设置任何人脸。"
#: src/face-unlock:168 src/lib/menu.sh:180 src/lib/menu.sh:628
#: src/face-unlock:168 src/lib/menu.sh:180 src/lib/menu.sh:664
msgid "on"
msgstr "开"
#: src/face-unlock:168 src/lib/menu.sh:182 src/lib/menu.sh:192
#: src/lib/menu.sh:629
#: src/lib/menu.sh:665
msgid "off"
msgstr "关"
#: src/face-unlock:170 src/lib/menu.sh:646
#: src/face-unlock:170 src/lib/menu.sh:682
#, sh-printf-format
msgid "%s samples, %s learned"
msgstr "%s 个样本,已学习 %s 个"
@@ -137,7 +137,7 @@ msgstr "开启人脸解锁"
msgid "Turn it off (faces are kept)"
msgstr "关闭(保留人脸)"
#: src/face-unlock:196 src/lib/menu.sh:712
#: src/face-unlock:196 src/lib/menu.sh:748
msgid "Add a face"
msgstr "添加人脸"
@@ -154,63 +154,67 @@ msgid "Look at the camera and see what it sees"
msgstr "看着摄像头,查看它看到的画面"
#: src/face-unlock:200
msgid "Lock the screen"
msgstr "锁定屏幕"
#: src/face-unlock:201
msgid "Show what is on"
msgstr "显示已开启的功能"
#: src/face-unlock:201
#: src/face-unlock:202
msgid "Show this help"
msgstr "显示此帮助"
#: src/face-unlock:202
#: src/face-unlock:203
msgid "Show the version"
msgstr "显示版本"
#: src/face-unlock:204
#: src/face-unlock:205
msgid "Without a command an interactive menu is shown."
msgstr "不带命令时显示交互式菜单。"
#: src/face-unlock:223
#: src/face-unlock:224
msgid ""
"Run this as your own user, not as root. It asks for your password when it "
"needs to."
msgstr "请以你自己的用户运行,不要用 root。需要时会询问你的密码。"
#: src/face-unlock:245 src/lib/system.sh:101
#: src/face-unlock:247 src/lib/system.sh:101
#, sh-printf-format
msgid "Unknown command: %s"
msgstr "未知命令:%s"
#: src/lib/common.sh:169
#: src/lib/common.sh:171
msgid "never"
msgstr "从未"
#: src/lib/common.sh:179
#: src/lib/common.sh:181
msgid "just now"
msgstr "刚刚"
#: src/lib/common.sh:181
#: src/lib/common.sh:183
msgid "1 minute ago"
msgstr "1 分钟前"
#: src/lib/common.sh:184
#: src/lib/common.sh:186
#, sh-printf-format
msgid "%d minutes ago"
msgstr "%d 分钟前"
#: src/lib/common.sh:186
#: src/lib/common.sh:188
msgid "1 hour ago"
msgstr "1 小时前"
#: src/lib/common.sh:189
#: src/lib/common.sh:191
#, sh-printf-format
msgid "%d hours ago"
msgstr "%d 小时前"
#: src/lib/common.sh:191
#: src/lib/common.sh:193
msgid "1 day ago"
msgstr "1 天前"
#: src/lib/common.sh:194
#: src/lib/common.sh:196
#, sh-printf-format
msgid "%d days ago"
msgstr "%d 天前"
@@ -350,11 +354,11 @@ msgstr "尝试次数过多。人脸解锁已暂停,直到你用密码解锁。
msgid "[y/N]"
msgstr "[y/N]"
#: src/lib/menu.sh:172 src/lib/menu.sh:531
#: src/lib/menu.sh:172 src/lib/menu.sh:566
msgid "ON"
msgstr "开启"
#: src/lib/menu.sh:174 src/lib/menu.sh:532
#: src/lib/menu.sh:174 src/lib/menu.sh:567
msgid "OFF"
msgstr "关闭"
@@ -395,7 +399,7 @@ msgstr "慢"
msgid "%s seconds"
msgstr "%s 秒"
#: src/lib/menu.sh:202 src/lib/menu.sh:441
#: src/lib/menu.sh:202 src/lib/menu.sh:447
msgid "automatic"
msgstr "自动"
@@ -415,8 +419,8 @@ msgstr "未运行"
msgid "Turning face unlock on again starts it."
msgstr "重新开启人脸解锁即可启动它。"
#: src/lib/menu.sh:236 src/lib/menu.sh:238 src/lib/menu.sh:624
#: src/lib/menu.sh:713
#: src/lib/menu.sh:236 src/lib/menu.sh:238 src/lib/menu.sh:660
#: src/lib/menu.sh:749
msgid "Faces"
msgstr "人脸"
@@ -473,46 +477,60 @@ msgstr "上次解锁"
msgid "The lock screen agent is not running."
msgstr "锁屏代理没有运行。"
#: src/lib/menu.sh:314
#: src/lib/menu.sh:318
msgid ""
"On GNOME a small GNOME extension shows the bubble. Turning face unlock on "
"switches it on."
msgstr ""
"在 GNOME 上,由一个小的 GNOME 扩展显示气泡。开启人脸解锁时会一并开启它。"
#: src/lib/menu.sh:318
#: src/lib/menu.sh:322
msgid ""
"Scans when you come back to hyprlock or swaylock and opens them. Any other "
"lock screen scans when you press Enter on the empty password field."
"Scans when you come back to hyprlock, swaylock or face-unlock's own lock "
"screen (`face-unlock lock`, with the bubble), and opens them. Other lock "
"screens scan on Enter."
msgstr ""
"回到 hyprlock 或 swaylock 时会扫描并打开它们。其他锁屏在空的密码框中按 Enter "
"时扫描。"
"回到 hyprlock、swaylock 或 face-unlock 自带的锁屏(`face-unlock lock`,带气"
"泡)时扫描并打开它们。其他锁屏按 Enter 扫描。"
#: src/lib/menu.sh:323
#: src/lib/menu.sh:327
msgid ""
"Unlocks the lock screen when it sees your face. Off: only your password "
"works there."
msgstr "看到你的脸时解锁锁屏。关闭:锁屏只能用密码。"
#: src/lib/menu.sh:324
#: src/lib/menu.sh:328
msgid ""
"Scans when you press a key or move the mouse on the lock screen, and when "
"the computer wakes up."
msgstr "在锁屏上按键或移动鼠标时,以及电脑唤醒时扫描。"
#: src/lib/menu.sh:325
#: src/lib/menu.sh:329
msgid ""
"Scans as soon as the screen locks. Off by default: if you lock it yourself, "
"it would unlock again right away."
msgstr "屏幕一锁定就扫描。默认关闭:如果是你自己锁的屏,它会马上又解锁。"
#: src/lib/menu.sh:326
#: src/lib/menu.sh:330
msgid ""
"sudo takes your face instead of the password. No match: you type the "
"password as usual."
msgstr "sudo 用你的脸代替密码。不匹配时,照常输入密码。"
#: src/lib/menu.sh:327
#: src/lib/menu.sh:331
msgid ""
"The picture behind face-unlock's own lock screen (`face-unlock lock`). "
"Empty: the one on your desktop. Or a file, a folder to take one from at "
"random, or `none`. Enter to type it."
msgstr ""
"face-unlock 锁屏(`face-unlock lock`)背后的图片。留空:用桌面的图片。或者一"
"个文件、从中随机挑选的文件夹,或 `none`。按 Enter 输入。"
#: src/lib/menu.sh:332
msgid "Blurs the picture behind face-unlock's own lock screen."
msgstr "模糊 face-unlock 锁屏背后的图片。"
#: src/lib/menu.sh:333
#, sh-printf-format
msgid ""
"The lock screen takes your face in its password check. Press Enter on the "
@@ -520,47 +538,47 @@ msgid ""
msgstr ""
"锁屏在检查密码时也接受你的人脸。在空白框中按 Enter 即可扫描。此处找到:%s。"
#: src/lib/menu.sh:328
#: src/lib/menu.sh:334
msgid ""
"The password windows of your desktop and apps, for example when you install "
"software. No match: you type the password."
msgstr "桌面和应用的密码窗口,例如安装软件时。不匹配时,输入密码即可。"
#: src/lib/menu.sh:329
#: src/lib/menu.sh:335
msgid ""
"You have to blink or turn your head a little. This also stops printed photos."
msgstr "你需要眨眼或稍微转头。这也能挡住打印的照片。"
#: src/lib/menu.sh:330
#: src/lib/menu.sh:336
msgid "No check at all. Only for trying out a camera."
msgstr "完全不检测。仅用于试用摄像头。"
#: src/lib/menu.sh:331
#: src/lib/menu.sh:337
msgid ""
"Stops photos on a phone, a tablet or glossy paper. You do not have to blink. "
"A matte printed photo can get through."
msgstr "挡住手机、平板或光面纸上的照片。无需眨眼。哑光纸打印的照片可能会通过。"
#: src/lib/menu.sh:332
#: src/lib/menu.sh:338
msgid ""
"Fewer wrong matches, but it may not know you with glasses or in bad light."
msgstr "误认更少,但戴眼镜或光线不好时可能认不出你。"
#: src/lib/menu.sh:333
#: src/lib/menu.sh:339
msgid "Knows you more easily, but also somebody who looks a lot like you."
msgstr "更容易认出你,但也更容易认出和你长得很像的人。"
#: src/lib/menu.sh:334
#: src/lib/menu.sh:340
msgid "The default. Right for most people."
msgstr "默认值。适合大多数人。"
#: src/lib/menu.sh:335
#: src/lib/menu.sh:341
msgid ""
"Your eyes have to be open and on the screen. So it does not unlock while you "
"look away or sleep."
msgstr "你的眼睛必须睁开并看着屏幕。这样你看向别处或睡着时不会解锁。"
#: src/lib/menu.sh:336
#: src/lib/menu.sh:342
msgid ""
"Automatic takes the first normal camera. After a change, set up your face "
"again. An infrared camera needs its light on (linux-enable-ir-emitter)."
@@ -568,94 +586,111 @@ msgstr ""
"“自动”会使用第一个普通摄像头。更换后请重新设置人脸。红外摄像头需要打开它的补"
"光灯(linux-enable-ir-emitter)。"
#: src/lib/menu.sh:337
#: src/lib/menu.sh:343
msgid "How long the camera looks for your face before it gives up."
msgstr "摄像头寻找你的脸多久后放弃。"
#: src/lib/menu.sh:338
#: src/lib/menu.sh:344
msgid ""
"After a sure match it keeps how you look now. So a new haircut or glasses "
"need no new setup."
msgstr "确定匹配后,会记住你现在的样子。所以换了发型或戴上眼镜也无需重新设置。"
#: src/lib/menu.sh:339
#: src/lib/menu.sh:345
msgid ""
"No scan while the laptop is closed, for example at a desk with an external "
"screen."
msgstr "笔记本合上时不扫描,例如在接了外接显示器的桌前。"
#: src/lib/menu.sh:340
#: src/lib/menu.sh:346
msgid "The bubble at the top of the screen shows what the camera is doing."
msgstr "屏幕顶部的气泡显示摄像头正在做什么。"
#: src/lib/menu.sh:341
#: src/lib/menu.sh:347
msgid "A small pill with a lock that opens."
msgstr "一个带锁的小药丸,锁会打开。"
#: src/lib/menu.sh:342
#: src/lib/menu.sh:348
msgid "An island with a face that looks around, then rings and a tick."
msgstr "一个岛,里面有一张四处张望的脸,然后是圆环和一个对勾。"
#: src/lib/menu.sh:343
#: src/lib/menu.sh:349
msgid "How fast the bubble moves."
msgstr "气泡移动的速度。"
#: src/lib/menu.sh:344
#: src/lib/menu.sh:350
msgid "Shows the bubble when sudo or an admin prompt scans your face, too."
msgstr "sudo 或管理员授权扫描你的脸时也显示气泡。"
#: src/lib/menu.sh:437
#: src/lib/menu.sh:443
#, sh-printf-format
msgid "automatic (%s)"
msgstr "自动(%s)"
#: src/lib/menu.sh:447
#: src/lib/menu.sh:453
msgid "(infrared)"
msgstr "(红外)"
#: src/lib/menu.sh:451
#: src/lib/menu.sh:457
msgid "(not connected)"
msgstr "(未连接)"
#: src/lib/menu.sh:528 src/lib/menu.sh:714
#: src/lib/menu.sh:466
msgid "same as desktop"
msgstr "与桌面相同"
#: src/lib/menu.sh:470
msgid "none"
msgstr "无"
#: src/lib/menu.sh:487
msgid "Picture or folder:"
msgstr "图片或文件夹:"
#: src/lib/menu.sh:492
#, sh-printf-format
msgid "Not found: %s"
msgstr "未找到:%s"
#: src/lib/menu.sh:563 src/lib/menu.sh:750
msgid "Settings"
msgstr "设置"
#: src/lib/menu.sh:529
#: src/lib/menu.sh:564
msgid "↑↓ select ←→ or Space: change q: back"
msgstr "↑↓ 选择 ←→ 或空格:更改 q:返回"
#: src/lib/menu.sh:530
#: src/lib/menu.sh:565
msgid "for all users, asks for your password"
msgstr "对所有用户生效,需要你的密码"
#. TRANSLATORS: keep the letters, they are the keys.
#: src/lib/menu.sh:626
#: src/lib/menu.sh:662
msgid "Up/Down: select, Space: on/off, r: rename, d: delete, a: add, q: back"
msgstr "上/下:选择,空格:开/关,r:重命名,d:删除,a:添加,q:返回"
#: src/lib/menu.sh:627
#: src/lib/menu.sh:663
msgid "No face is set up yet. Press a to add one."
msgstr "尚未设置任何人脸。按 a 添加。"
#: src/lib/menu.sh:673
#: src/lib/menu.sh:709
msgid "New name:"
msgstr "新名称:"
#: src/lib/menu.sh:680
#: src/lib/menu.sh:716
#, sh-printf-format
msgid "Delete \"%s\"?"
msgstr "删除“%s”?"
#: src/lib/menu.sh:711
#: src/lib/menu.sh:747
msgid "Turn face unlock on or off"
msgstr "开启或关闭人脸解锁"
#: src/lib/menu.sh:715
#: src/lib/menu.sh:751
msgid "Try it"
msgstr "试一试"
#: src/lib/menu.sh:716
#: src/lib/menu.sh:752
msgid "Quit"
msgstr "退出"
@@ -711,6 +746,14 @@ msgstr "你回来时扫描"
msgid "Scan right after locking"
msgstr "锁定后立即扫描"
#: src/lib/menu.sh
msgid "Wallpaper"
msgstr "壁纸"
#: src/lib/menu.sh
msgid "Blur the wallpaper"
msgstr "模糊壁纸"
#: src/lib/menu.sh
msgid "Password prompts"
msgstr "密码提示"
@@ -867,23 +910,31 @@ msgstr "摄像头正忙于另一次扫描。请稍后重试。"
msgid "The face could not be added (%1)."
msgstr "无法添加人脸(%1)。"
#: src/agent/main.cpp:87
#: src/agent/lockscreencontroller.cpp:172
msgid "Wrong password"
msgstr "密码错误"
#: src/agent/main.cpp:185
msgid "Face unlock for the lock screen, sudo and admin prompts"
msgstr "用于锁屏、sudo 和管理员授权的人脸解锁"
#: src/agent/main.cpp:90
#: src/agent/main.cpp:188
msgid "Set up a face."
msgstr "设置一张人脸。"
#: src/agent/main.cpp:91
#: src/agent/main.cpp:189
msgid "What to call the new face."
msgstr "新人脸的名称。"
#: src/agent/main.cpp:92
#: src/agent/main.cpp:190
msgid "Lock the screen."
msgstr "锁定屏幕。"
#: src/agent/main.cpp:191
msgid "Play the bubble's animations once."
msgstr "播放一次气泡动画。"
#: src/agent/main.cpp:94
#: src/agent/main.cpp:193
msgid "Bubble style for the demo: full or minimal."
msgstr "演示用的气泡样式:full 或 minimal。"
@@ -961,3 +1012,15 @@ msgstr "开始"
#: src/agent/qml/Enroll.qml:193
msgid "Done"
msgstr "完成"
#: src/agent/qml/LockScreen.qml:171
msgid "Password"
msgstr "密码"
#: src/agent/qml/LockScreen.qml:185
msgid "Look at the camera or type your password"
msgstr "看向摄像头或输入密码"
#: src/agent/qml/LockScreen.qml:186
msgid "Type your password"
msgstr "输入密码"