feat: show a crossed-out camera when another app uses it

This commit is contained in:
Felitendo committed 2026-09-28 14:34:40 +02:00
1 parent ac38638dd4
commit 5eb9ea7438
29 files changed
+1940 -1235

No files matched your search

+119 -86
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 20:28+0200\n"
"POT-Creation-Date: 2026-09-28 14:32+0200\n"
"PO-Revision-Date: 2026-09-24 12:00+0200\n"
"Last-Translator: Felitendo\n"
"Language-Team: Russian\n"
@@ -59,9 +59,9 @@ msgstr "Лицо не добавлено."
msgid "First, set up your face."
msgstr "Сначала настройте своё лицо."
#: src/face-unlock:100 src/face-unlock:145 src/lib/menu.sh:527
#: src/face-unlock:100 src/face-unlock:150 src/lib/menu.sh:527
#: src/lib/menu.sh:531 src/lib/menu.sh:537 src/lib/menu.sh:539
#: src/lib/system.sh:399 src/lib/system.sh:405
#: src/lib/system.sh:409 src/lib/system.sh:415
msgid "Could not save the setting."
msgstr "Не удалось сохранить настройку."
@@ -83,15 +83,15 @@ msgstr "Не удалось включить расширение GNOME, кот
msgid "Log out and back in once: then GNOME shows the bubble too."
msgstr "Выйдите и войдите снова один раз: тогда GNOME тоже покажет пузырь."
#: src/face-unlock:131
#: src/face-unlock:135
msgid "Pick your lock screen in the window."
msgstr "Выберите экран блокировки в окне."
#: src/face-unlock:132
#: src/face-unlock:136
msgid "No lock screen picked. You can do it later under Settings."
msgstr "Экран блокировки не выбран. Это можно сделать позже в Настройках."
#: src/face-unlock:135
#: src/face-unlock:140
#, sh-printf-format
msgid ""
"The lock screen (%s) takes your face too. If it does not scan when you come "
@@ -100,102 +100,102 @@ msgstr ""
"Экран блокировки (%s) тоже принимает ваше лицо. Если он не сканирует, когда "
"вы возвращаетесь, нажмите Enter в пустом поле пароля."
#: src/face-unlock:138
#: src/face-unlock:143
msgid "Face unlock is on. Lock the screen and look at it to try."
msgstr ""
"Разблокировка по лицу включена. Заблокируйте экран и посмотрите на него, "
"чтобы попробовать."
#: src/face-unlock:140
#: src/face-unlock:145
msgid "It can do sudo and admin prompts too. See Settings."
msgstr "Она работает и для sudo, и для запросов администратора. См. Настройки."
#: src/face-unlock:156
#: src/face-unlock:161
msgid "Face unlock is off. Your faces are kept; delete them under Faces."
msgstr ""
"Разблокировка по лицу выключена. Ваши лица сохранены; удалить их можно в "
"разделе Лица."
#: src/face-unlock:170 src/lib/daemon.sh:109
#: src/face-unlock:175 src/lib/daemon.sh:109
msgid "No face is set up yet."
msgstr "Ещё не настроено ни одного лица."
#: src/face-unlock:174 src/lib/menu.sh:180 src/lib/menu.sh:695
#: src/face-unlock:179 src/lib/menu.sh:180 src/lib/menu.sh:701
msgid "on"
msgstr "вкл."
#: src/face-unlock:174 src/lib/menu.sh:182 src/lib/menu.sh:192
#: src/lib/menu.sh:696
#: src/face-unlock:179 src/lib/menu.sh:182 src/lib/menu.sh:192
#: src/lib/menu.sh:702
msgid "off"
msgstr "выкл."
#: src/face-unlock:176 src/lib/menu.sh:713
#: src/face-unlock:181 src/lib/menu.sh:719
#, sh-printf-format
msgid "%s samples, %s learned"
msgstr "образцов: %s, выучено: %s"
#: src/face-unlock:182
#: src/face-unlock:187
#, sh-printf-format
msgid "Which face? See `%s faces` for the ids."
msgstr "Какое лицо? Номера показывает `%s faces`."
#: src/face-unlock:186
#: src/face-unlock:191
msgid "Deleted."
msgstr "Удалено."
#: src/face-unlock:197
#: src/face-unlock:202
msgid "Usage: face-unlock [command]"
msgstr "Использование: face-unlock [команда]"
#: src/face-unlock:199
#: src/face-unlock:204
msgid "Commands:"
msgstr "Команды:"
#: src/face-unlock:200
#: src/face-unlock:205
msgid "Turn face unlock on"
msgstr "Включить разблокировку по лицу"
#: src/face-unlock:201
#: src/face-unlock:206
msgid "Turn it off (faces are kept)"
msgstr "Выключить её (лица сохраняются)"
#: src/face-unlock:202 src/lib/menu.sh:779
#: src/face-unlock:207 src/lib/menu.sh:787
msgid "Add a face"
msgstr "Добавить лицо"
#: src/face-unlock:203
#: src/face-unlock:208
msgid "List the faces"
msgstr "Показать список лиц"
#: src/face-unlock:204
#: src/face-unlock:209
msgid "Delete a face"
msgstr "Удалить лицо"
#: src/face-unlock:205
#: src/face-unlock:210
msgid "Look at the camera and see what it sees"
msgstr "Посмотреть в камеру и увидеть, что она видит"
#: src/face-unlock:206
#: src/face-unlock:211
msgid "Lock the screen"
msgstr "Заблокировать экран"
#: src/face-unlock:207
#: src/face-unlock:212
msgid "Show what is on"
msgstr "Показать, что включено"
#: src/face-unlock:208
#: src/face-unlock:213
msgid "Show this help"
msgstr "Показать эту справку"
#: src/face-unlock:209
#: src/face-unlock:214
msgid "Show the version"
msgstr "Показать версию"
#: src/face-unlock:211
#: src/face-unlock:216
msgid "Without a command an interactive menu is shown."
msgstr "Без команды открывается интерактивное меню."
#: src/face-unlock:230
#: src/face-unlock:235
msgid ""
"Run this as your own user, not as root. It asks for your password when it "
"needs to."
@@ -203,7 +203,7 @@ msgstr ""
"Запускайте это от своего пользователя, не от root. Пароль будет запрошен, "
"когда он понадобится."
#: src/face-unlock:253 src/lib/system.sh:105
#: src/face-unlock:258 src/lib/system.sh:105
#, sh-printf-format
msgid "Unknown command: %s"
msgstr "Неизвестная команда: %s"
@@ -278,102 +278,106 @@ msgstr ""
msgid "The camera could not be used."
msgstr "Не удалось использовать камеру."
#: src/lib/daemon.sh:111 src/lib/menu.sh:273
#: src/lib/daemon.sh:111
msgid "Another app is using the camera."
msgstr "Камеру использует другое приложение."
#: src/lib/daemon.sh:112 src/lib/menu.sh:273
msgid "The recognition models are missing. Reinstall the package."
msgstr "Нет моделей распознавания. Переустановите пакет."
#: src/lib/daemon.sh:112
#: src/lib/daemon.sh:113
msgid "The lid is closed."
msgstr "Крышка закрыта."
#: src/lib/daemon.sh:113
#: src/lib/daemon.sh:114
msgid "The camera is busy with another scan."
msgstr "Камера занята другим сканированием."
#: src/lib/daemon.sh:114
#: src/lib/daemon.sh:115
msgid "The face unlock service is not running."
msgstr "Служба разблокировки по лицу не запущена."
#: src/lib/daemon.sh:116
#: src/lib/daemon.sh:117
msgid "Not allowed."
msgstr "Нет доступа."
#: src/lib/daemon.sh:120
#: src/lib/daemon.sh:121
msgid "No password window? Start a polkit agent, for example hyprpolkitagent."
msgstr "Нет окна для пароля? Запустите агент polkit, например hyprpolkitagent."
#: src/lib/daemon.sh:123
#: src/lib/daemon.sh:124
#, sh-printf-format
msgid "Something went wrong (%s)."
msgstr "Что-то пошло не так (%s)."
#: src/lib/daemon.sh:134
#: src/lib/daemon.sh:135
msgid "Look at the camera. Blink once, or turn your head a little."
msgstr "Посмотрите в камеру. Моргните один раз или слегка поверните голову."
#: src/lib/daemon.sh:144
#: src/lib/daemon.sh:145
msgid "Face found."
msgstr "Лицо найдено."
#: src/lib/daemon.sh:148
#: src/lib/daemon.sh:149
msgid "Recognised. Now blink once, or turn your head a little."
msgstr "Распознано. Теперь моргните один раз или слегка поверните голову."
#: src/lib/daemon.sh:149
#: src/lib/daemon.sh:150
msgid "Look at the screen."
msgstr "Посмотрите на экран."
#: src/lib/daemon.sh:150
#: src/lib/daemon.sh:151
msgid "Move closer to the camera."
msgstr "Подвиньтесь ближе к камере."
#: src/lib/daemon.sh:151
#: src/lib/daemon.sh:152
msgid "It is too dark to see your face."
msgstr "Слишком темно, чтобы увидеть ваше лицо."
#: src/lib/daemon.sh:160
#: src/lib/daemon.sh:161
msgid "match"
msgstr "сходство"
#: src/lib/daemon.sh:160
#: src/lib/daemon.sh:161
msgid "turn"
msgstr "поворот"
#: src/lib/daemon.sh:161
#: src/lib/daemon.sh:162
msgid "eyes"
msgstr "глаза"
#: src/lib/daemon.sh:162
#: src/lib/daemon.sh:163
msgid "depth"
msgstr "глубина"
#: src/lib/daemon.sh:162 src/lib/daemon.sh:171
#: src/lib/daemon.sh:163 src/lib/daemon.sh:172
msgid "blink"
msgstr "моргание"
#: src/lib/daemon.sh:163
#: src/lib/daemon.sh:164
msgid "glare"
msgstr "блик"
#: src/lib/daemon.sh:163
#: src/lib/daemon.sh:164
msgid "edge"
msgstr "край"
#: src/lib/daemon.sh:172
#: src/lib/daemon.sh:173
msgid "head turn"
msgstr "поворот головы"
#: src/lib/daemon.sh:174
#: src/lib/daemon.sh:175
#, sh-printf-format
msgid "Recognised as %s (match %s) in %s ms."
msgstr "Распознано как %s (сходство %s) за %s мс."
#: src/lib/daemon.sh:175
#: src/lib/daemon.sh:176
#, sh-printf-format
msgid "Sign of life: %s"
msgstr "Признак жизни: %s"
#: src/lib/daemon.sh:180
#: src/lib/daemon.sh:181
msgid ""
"That was too many tries. Face unlock is paused until you unlock with your "
"password."
@@ -447,7 +451,9 @@ msgstr "ваш"
msgid ""
"No polkit agent is running, so no password window can open. Adding a face "
"and the admin prompts need one."
msgstr "Агент polkit не запущен, поэтому окно для пароля не может открыться. Он нужен для добавления лица и запросов администратора."
msgstr ""
"Агент polkit не запущен, поэтому окно для пароля не может открыться. Он "
"нужен для добавления лица и запросов администратора."
#: src/lib/menu.sh:226
msgid "Face unlock"
@@ -465,8 +471,8 @@ msgstr "не запущена"
msgid "Turning face unlock on again starts it."
msgstr "Повторное включение разблокировки по лицу запустит её."
#: src/lib/menu.sh:244 src/lib/menu.sh:246 src/lib/menu.sh:691
#: src/lib/menu.sh:780
#: src/lib/menu.sh:244 src/lib/menu.sh:246 src/lib/menu.sh:697
#: src/lib/menu.sh:788
msgid "Faces"
msgstr "Лица"
@@ -737,7 +743,7 @@ msgstr "Картинка или папка:"
msgid "Not found: %s"
msgstr "Не найдено: %s"
#: src/lib/menu.sh:590 src/lib/menu.sh:781
#: src/lib/menu.sh:590 src/lib/menu.sh:789
msgid "Settings"
msgstr "Настройки"
@@ -750,38 +756,38 @@ msgid "for all users, asks for your password"
msgstr "для всех пользователей, запрашивает пароль"
#. TRANSLATORS: keep the letters, they are the keys.
#: src/lib/menu.sh:693
#: src/lib/menu.sh:699
msgid "Up/Down: select, Space: on/off, r: rename, d: delete, a: add, q: back"
msgstr ""
"Вверх/Вниз: выбор, Пробел: вкл./выкл., r: переименовать, d: удалить, a: "
"добавить, q: назад"
#: src/lib/menu.sh:694
#: src/lib/menu.sh:700
msgid "No face is set up yet. Press a to add one."
msgstr "Ещё не настроено ни одного лица. Нажмите a, чтобы добавить."
#: src/lib/menu.sh:740
#: src/lib/menu.sh:748
msgid "New name:"
msgstr "Новое имя:"
#: src/lib/menu.sh:747
#: src/lib/menu.sh:755
#, sh-printf-format
msgid "Delete \"%s\"?"
msgstr "Удалить «%s»?"
#: src/lib/menu.sh:778
#: src/lib/menu.sh:786
msgid "Turn face unlock on or off"
msgstr "Включить или выключить разблокировку по лицу"
#: src/lib/menu.sh:782
#: src/lib/menu.sh:790
msgid "Try it"
msgstr "Попробовать"
#: src/lib/menu.sh:784
#: src/lib/menu.sh:792
msgid "Install a polkit agent"
msgstr "Установить агент polkit"
#: src/lib/menu.sh:786
#: src/lib/menu.sh:794
msgid "Quit"
msgstr "Выход"
@@ -853,41 +859,41 @@ msgstr "Агент polkit не запустился. Смотрите: systemctl
msgid "The polkit agent is running. Password windows open now."
msgstr "Агент polkit запущен. Теперь окна для пароля открываются."
#: src/lib/system.sh:376 src/lib/system.sh:379
#: src/lib/system.sh:386 src/lib/system.sh:389
#, sh-printf-format
msgid "To lock with it, add this to %s, and set %s in %s:"
msgstr "Чтобы блокировать им, добавьте это в %s и укажите %s в %s:"
#: src/lib/system.sh:384
#: src/lib/system.sh:394
#, sh-printf-format
msgid "To lock with it, add this to the binds in %s, and use %s in swayidle:"
msgstr ""
"Чтобы блокировать им, добавьте это в binds в %s и используйте %s в swayidle:"
#: src/lib/system.sh:388
#: src/lib/system.sh:398
#, sh-printf-format
msgid "To lock with it, run %s where your lock screen is started now."
msgstr ""
"Чтобы блокировать им, запускайте %s там, где сейчас запускается ваш экран "
"блокировки."
#: src/lib/system.sh:401
#: src/lib/system.sh:411
msgid "You lock with face-unlock's lock screen now."
msgstr "Теперь вы блокируете экраном блокировки face-unlock."
#: src/lib/system.sh:408
#: src/lib/system.sh:418
msgid ""
"hyprlock shows what face unlock is doing at the top, from the next time it "
"locks."
msgstr ""
"hyprlock покажет сверху, что делает face unlock, со следующей блокировки."
#: src/lib/system.sh:409
#: src/lib/system.sh:419
#, sh-printf-format
msgid "Could not add the line to %s."
msgstr "Не удалось добавить строку в %s."
#: src/lib/system.sh:410
#: src/lib/system.sh:420
msgid ""
"Your lock screen stays as it is. Press Enter on the empty password field to "
"scan."
@@ -895,7 +901,7 @@ msgstr ""
"Ваш экран блокировки остаётся как есть. Нажмите Enter в пустом поле пароля, "
"чтобы сканировать."
#: src/lib/system.sh:411
#: src/lib/system.sh:421
#, sh-printf-format
msgid "hyprlock has no %s, so it cannot show the text."
msgstr "У hyprlock нет %s, поэтому он не может показать текст."
@@ -992,19 +998,23 @@ msgstr "Подвиньтесь ближе"
msgid "Too dark"
msgstr "Слишком темно"
#: src/agent/bubblecontroller.cpp:124
#: src/agent/bubblecontroller.cpp:127
msgid "Camera in use"
msgstr "Камера занята"
#: src/agent/bubblecontroller.cpp:136
msgid "Use your password"
msgstr "Введите пароль"
#: src/agent/bubblecontroller.cpp:130
#: src/agent/bubblecontroller.cpp:142
msgid "Not recognized"
msgstr "Не распознано"
#: src/agent/bubblecontroller.cpp:132
#: src/agent/bubblecontroller.cpp:144
msgid "Try again and blink"
msgstr "Ещё раз, и моргните"
#: src/agent/bubblecontroller.cpp:134
#: src/agent/bubblecontroller.cpp:146
msgid "Camera unavailable"
msgstr "Камера недоступна"
@@ -1096,32 +1106,32 @@ msgstr "Неверный пароль"
msgid "Face recognized"
msgstr "Лицо распознано"
#: src/agent/main.cpp:244
#: src/agent/main.cpp:250
msgid "Face unlock for the lock screen, sudo and admin prompts"
msgstr ""
"Разблокировка по лицу для экрана блокировки, sudo и запросов администратора"
#: src/agent/main.cpp:247
#: src/agent/main.cpp:253
msgid "Set up a face."
msgstr "Настроить лицо."
#: src/agent/main.cpp:248
#: src/agent/main.cpp:254
msgid "What to call the new face."
msgstr "Как назвать новое лицо."
#: src/agent/main.cpp:249
#: src/agent/main.cpp:255
msgid "Lock the screen."
msgstr "Заблокировать экран."
#: src/agent/main.cpp:250
#: src/agent/main.cpp:256
msgid "Play the bubble's animations once."
msgstr "Один раз проиграть анимации пузыря."
#: src/agent/main.cpp:252
#: src/agent/main.cpp:258
msgid "Bubble style for the demo: full or minimal."
msgstr "Стиль пузыря для демо: full или minimal."
#: src/agent/main.cpp:253
#: src/agent/main.cpp:259
msgid "Ask which lock screen to use, and print the answer."
msgstr "Спрашивает, какой экран блокировки использовать, и выводит ответ."
@@ -1268,3 +1278,26 @@ msgstr "Посмотрите в камеру или введите пароль"
#: src/agent/qml/LockScreen.qml:195
msgid "Type your password"
msgstr "Введите пароль"
#~ msgid ""
#~ "sudo in an SSH session takes your face too, if you sit at this computer. "
#~ "Off by default: the person at the camera may not be the one typing."
#~ msgstr ""
#~ "sudo в сеансе SSH тоже принимает ваше лицо, если вы сидите за этим "
#~ "компьютером. По умолчанию выкл.: человек перед камерой может быть не тем, "
#~ "кто печатает."
#~ msgid ""
#~ "When another app uses the camera, for example in a video call, no bubble "
#~ "shows and you type your password as usual. Off: the bubble shows a camera "
#~ "with a line through it."
#~ msgstr ""
#~ "Когда камеру использует другое приложение, например во время видеозвонка, "
#~ "пузырь не появляется, и вы вводите пароль как обычно. Выкл.: пузырь "
#~ "показывает перечёркнутую камеру."
#~ msgid "In SSH sessions"
#~ msgstr "В сеансах SSH"
#~ msgid "Quiet while the camera is in use"
#~ msgstr "Не показывать, когда камера занята"