feat: show the bubble on gnome

This commit is contained in:
Felitendo committed 2026-09-26 19:34:17 +02:00
1 parent f232f796fc
commit 2a9b0d3f91
28 files changed
+2278 -1077

No files matched your search

+83 -74
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:32+0200\n"
"POT-Creation-Date: 2026-09-26 19:33+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:121 src/lib/menu.sh:446
#: src/lib/menu.sh:450 src/lib/menu.sh:456 src/lib/menu.sh:458
#: src/face-unlock:100 src/face-unlock:131 src/lib/menu.sh:447
#: src/lib/menu.sh:451 src/lib/menu.sh:457 src/lib/menu.sh:459
msgid "Could not save the setting."
msgstr "无法保存设置。"
@@ -66,100 +66,108 @@ msgstr "无法启动锁屏代理。"
msgid "No systemd user session, so the lock screen agent was not started."
msgstr "没有 systemd 用户会话,因此未启动锁屏代理。"
#: src/face-unlock:114
#: src/face-unlock:118
msgid "Could not switch on the GNOME extension that shows the bubble."
msgstr "无法启用显示气泡的 GNOME 扩展。"
#: src/face-unlock:119
msgid "Log out and back in once: then GNOME shows the bubble too."
msgstr "请注销并重新登录一次:之后 GNOME 也会显示气泡。"
#: src/face-unlock:124
msgid "Face unlock is on. Lock the screen and look at it to try."
msgstr "人脸解锁已开启。锁定屏幕并看着它来试试。"
#: src/face-unlock:116
#: src/face-unlock:126
msgid "It can do sudo and admin prompts too. See Settings."
msgstr "它也可以用于 sudo 和管理员授权。见“设置”。"
#: src/face-unlock:131
#: src/face-unlock:142
msgid "Face unlock is off. Your faces are kept; delete them under Faces."
msgstr "人脸解锁已关闭。你的人脸会保留;可在“人脸”中删除。"
#: src/face-unlock:145 src/lib/daemon.sh:109
#: src/face-unlock:156 src/lib/daemon.sh:109
msgid "No face is set up yet."
msgstr "尚未设置任何人脸。"
#: src/face-unlock:149 src/lib/menu.sh:180 src/lib/menu.sh:608
#: src/face-unlock:160 src/lib/menu.sh:180 src/lib/menu.sh:607
msgid "on"
msgstr "开"
#: src/face-unlock:149 src/lib/menu.sh:182 src/lib/menu.sh:192
#: src/lib/menu.sh:609
#: src/face-unlock:160 src/lib/menu.sh:182 src/lib/menu.sh:192
#: src/lib/menu.sh:608
msgid "off"
msgstr "关"
#: src/face-unlock:151 src/lib/menu.sh:626
#: src/face-unlock:162 src/lib/menu.sh:625
#, sh-printf-format
msgid "%s samples, %s learned"
msgstr "%s 个样本,已学习 %s 个"
#: src/face-unlock:157
#: src/face-unlock:168
#, sh-printf-format
msgid "Which face? See `%s faces` for the ids."
msgstr "哪张人脸?用 `%s faces` 查看 ID。"
#: src/face-unlock:161
#: src/face-unlock:172
msgid "Deleted."
msgstr "已删除。"
#: src/face-unlock:172
#: src/face-unlock:183
msgid "Usage: face-unlock [command]"
msgstr "用法:face-unlock [命令]"
#: src/face-unlock:174
#: src/face-unlock:185
msgid "Commands:"
msgstr "命令:"
#: src/face-unlock:175
#: src/face-unlock:186
msgid "Turn face unlock on"
msgstr "开启人脸解锁"
#: src/face-unlock:176
#: src/face-unlock:187
msgid "Turn it off (faces are kept)"
msgstr "关闭(保留人脸)"
#: src/face-unlock:177 src/lib/menu.sh:692
#: src/face-unlock:188 src/lib/menu.sh:691
msgid "Add a face"
msgstr "添加人脸"
#: src/face-unlock:178
#: src/face-unlock:189
msgid "List the faces"
msgstr "列出人脸"
#: src/face-unlock:179
#: src/face-unlock:190
msgid "Delete a face"
msgstr "删除人脸"
#: src/face-unlock:180
#: src/face-unlock:191
msgid "Look at the camera and see what it sees"
msgstr "看着摄像头,查看它看到的画面"
#: src/face-unlock:181
#: src/face-unlock:192
msgid "Show what is on"
msgstr "显示已开启的功能"
#: src/face-unlock:182
#: src/face-unlock:193
msgid "Show this help"
msgstr "显示此帮助"
#: src/face-unlock:183
#: src/face-unlock:194
msgid "Show the version"
msgstr "显示版本"
#: src/face-unlock:185
#: src/face-unlock:196
msgid "Without a command an interactive menu is shown."
msgstr "不带命令时显示交互式菜单。"
#: src/face-unlock:204
#: src/face-unlock:215
msgid ""
"Run this as your own user, not as root. It asks for your password when it "
"needs to."
msgstr "请以你自己的用户运行,不要用 root。需要时会询问你的密码。"
#: src/face-unlock:226 src/lib/system.sh:93
#: src/face-unlock:237 src/lib/system.sh:93
#, sh-printf-format
msgid "Unknown command: %s"
msgstr "未知命令:%s"
@@ -334,11 +342,11 @@ msgstr "尝试次数过多。人脸解锁已暂停,直到你用密码解锁。
msgid "[y/N]"
msgstr "[y/N]"
#: src/lib/menu.sh:172 src/lib/menu.sh:509
#: src/lib/menu.sh:172 src/lib/menu.sh:510
msgid "ON"
msgstr "开启"
#: src/lib/menu.sh:174 src/lib/menu.sh:510
#: src/lib/menu.sh:174 src/lib/menu.sh:511
msgid "OFF"
msgstr "关闭"
@@ -379,7 +387,7 @@ msgstr "慢"
msgid "%s seconds"
msgstr "%s 秒"
#: src/lib/menu.sh:202 src/lib/menu.sh:421
#: src/lib/menu.sh:202 src/lib/menu.sh:422
msgid "automatic"
msgstr "自动"
@@ -399,8 +407,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:604
#: src/lib/menu.sh:693
#: src/lib/menu.sh:236 src/lib/menu.sh:238 src/lib/menu.sh:603
#: src/lib/menu.sh:692
msgid "Faces"
msgstr "人脸"
@@ -455,75 +463,76 @@ msgstr "锁屏代理没有运行。"
#: src/lib/menu.sh:308
msgid ""
"GNOME does not let other programs show above its windows, so there is no "
"bubble on GNOME."
msgstr "GNOME 不允许其他程序显示在它的窗口之上,所以 GNOME 上没有气泡。"
"On GNOME a small GNOME extension shows the bubble. Turning face unlock on "
"switches it on."
msgstr ""
"在 GNOME 上,由一个小的 GNOME 扩展显示气泡。开启人脸解锁时会一并开启它。"
#: src/lib/menu.sh:312
#: src/lib/menu.sh:313
msgid ""
"Unlocks the lock screen when it sees your face. Off: only your password "
"works there."
msgstr "看到你的脸时解锁锁屏。关闭:锁屏只能用密码。"
#: src/lib/menu.sh:313
#: src/lib/menu.sh:314
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:314
#: src/lib/menu.sh:315
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:315
#: src/lib/menu.sh:316
msgid ""
"sudo takes your face instead of the password. No match: you type the "
"password as usual."
msgstr "sudo 用你的脸代替密码。不匹配时,照常输入密码。"
#: src/lib/menu.sh:316
#: src/lib/menu.sh:317
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:317
#: src/lib/menu.sh:318
msgid ""
"You have to blink or turn your head a little. This also stops printed photos."
msgstr "你需要眨眼或稍微转头。这也能挡住打印的照片。"
#: src/lib/menu.sh:318
#: src/lib/menu.sh:319
msgid "No check at all. Only for trying out a camera."
msgstr "完全不检测。仅用于试用摄像头。"
#: src/lib/menu.sh:319
#: src/lib/menu.sh:320
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:320
#: src/lib/menu.sh:321
msgid ""
"Fewer wrong matches, but it may not know you with glasses or in bad light."
msgstr "误认更少,但戴眼镜或光线不好时可能认不出你。"
#: src/lib/menu.sh:321
#: src/lib/menu.sh:322
msgid "Knows you more easily, but also somebody who looks a lot like you."
msgstr "更容易认出你,但也更容易认出和你长得很像的人。"
#: src/lib/menu.sh:322
#: src/lib/menu.sh:323
msgid "The default. Right for most people."
msgstr "默认值。适合大多数人。"
#: src/lib/menu.sh:323
#: src/lib/menu.sh:324
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:324
#: src/lib/menu.sh:325
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)."
@@ -531,94 +540,94 @@ msgstr ""
"“自动”会使用第一个普通摄像头。更换后请重新设置人脸。红外摄像头需要打开它的补"
"光灯(linux-enable-ir-emitter)。"
#: src/lib/menu.sh:325
#: src/lib/menu.sh:326
msgid "How long the camera looks for your face before it gives up."
msgstr "摄像头寻找你的脸多久后放弃。"
#: src/lib/menu.sh:326
#: src/lib/menu.sh:327
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:327
#: src/lib/menu.sh:328
msgid ""
"No scan while the laptop is closed, for example at a desk with an external "
"screen."
msgstr "笔记本合上时不扫描,例如在接了外接显示器的桌前。"
#: src/lib/menu.sh:328
#: src/lib/menu.sh:329
msgid "The bubble at the top of the screen shows what the camera is doing."
msgstr "屏幕顶部的气泡显示摄像头正在做什么。"
#: src/lib/menu.sh:329
#: src/lib/menu.sh:330
msgid "A small pill with a lock that opens."
msgstr "一个带锁的小药丸,锁会打开。"
#: src/lib/menu.sh:330
#: src/lib/menu.sh:331
msgid "An island with a face that looks around, then rings and a tick."
msgstr "一个岛,里面有一张四处张望的脸,然后是圆环和一个对勾。"
#: src/lib/menu.sh:331
#: src/lib/menu.sh:332
msgid "How fast the bubble moves."
msgstr "气泡移动的速度。"
#: src/lib/menu.sh:332
#: src/lib/menu.sh:333
msgid "Shows the bubble when sudo or an admin prompt scans your face, too."
msgstr "sudo 或管理员授权扫描你的脸时也显示气泡。"
#: src/lib/menu.sh:417
#: src/lib/menu.sh:418
#, sh-printf-format
msgid "automatic (%s)"
msgstr "自动(%s)"
#: src/lib/menu.sh:427
#: src/lib/menu.sh:428
msgid "(infrared)"
msgstr "(红外)"
#: src/lib/menu.sh:431
#: src/lib/menu.sh:432
msgid "(not connected)"
msgstr "(未连接)"
#: src/lib/menu.sh:506 src/lib/menu.sh:694
#: src/lib/menu.sh:507 src/lib/menu.sh:693
msgid "Settings"
msgstr "设置"
#: src/lib/menu.sh:507
#: src/lib/menu.sh:508
msgid "↑↓ select ←→ or Space: change q: back"
msgstr "↑↓ 选择 ←→ 或空格:更改 q:返回"
#: src/lib/menu.sh:508
#: src/lib/menu.sh:509
msgid "for all users, asks for your password"
msgstr "对所有用户生效,需要你的密码"
#. TRANSLATORS: keep the letters, they are the keys.
#: src/lib/menu.sh:606
#: src/lib/menu.sh:605
msgid "Up/Down: select, Space: on/off, r: rename, d: delete, a: add, q: back"
msgstr "上/下:选择,空格:开/关,r:重命名,d:删除,a:添加,q:返回"
#: src/lib/menu.sh:607
#: src/lib/menu.sh:606
msgid "No face is set up yet. Press a to add one."
msgstr "尚未设置任何人脸。按 a 添加。"
#: src/lib/menu.sh:653
#: src/lib/menu.sh:652
msgid "New name:"
msgstr "新名称:"
#: src/lib/menu.sh:660
#: src/lib/menu.sh:659
#, sh-printf-format
msgid "Delete \"%s\"?"
msgstr "删除“%s”?"
#: src/lib/menu.sh:691
#: src/lib/menu.sh:690
msgid "Turn face unlock on or off"
msgstr "开启或关闭人脸解锁"
#: src/lib/menu.sh:695
#: src/lib/menu.sh:694
msgid "Try it"
msgstr "试一试"
#: src/lib/menu.sh:696
#: src/lib/menu.sh:695
msgid "Quit"
msgstr "退出"
@@ -830,23 +839,23 @@ msgstr "摄像头正忙于另一次扫描。请稍后重试。"
msgid "The face could not be added (%1)."
msgstr "无法添加人脸(%1)。"
#: src/agent/main.cpp:86
#: src/agent/main.cpp:87
msgid "Face unlock for the lock screen, sudo and admin prompts"
msgstr "用于锁屏、sudo 和管理员授权的人脸解锁"
#: src/agent/main.cpp:89
#: src/agent/main.cpp:90
msgid "Set up a face."
msgstr "设置一张人脸。"
#: src/agent/main.cpp:90
#: src/agent/main.cpp:91
msgid "What to call the new face."
msgstr "新人脸的名称。"
#: src/agent/main.cpp:91
#: src/agent/main.cpp:92
msgid "Play the bubble's animations once."
msgstr "播放一次气泡动画。"
#: src/agent/main.cpp:93
#: src/agent/main.cpp:94
msgid "Bubble style for the demo: full or minimal."
msgstr "演示用的气泡样式:full 或 minimal。"