!24 支持UKey,人脸,虹膜认证

From: @liubuguiii 
Reviewed-by: @tangjie02 
Signed-off-by: @tangjie02
This commit is contained in:
openeuler-ci-bot 2023-05-24 10:19:39 +00:00 committed by Gitee
commit c778d28ab5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
7 changed files with 16 additions and 938 deletions

View File

@ -1,741 +0,0 @@
From 8d62a492cfa437845dddff9be3c3927346b86dc0 Mon Sep 17 00:00:00 2001
From: wangyucheng <wangyucheng@kylinsec.com.cn>
Date: Thu, 23 Mar 2023 20:46:41 +0800
Subject: [PATCH] fix(translate):add some translation
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 添加一些翻译
Relates #67661
---
src/daemon/CMakeLists.txt | 3 +-
src/pam/CMakeLists.txt | 3 +-
.../kiran-authentication-daemon.bo_CN.ts | 105 ++++++++++++++++++
.../kiran-authentication-daemon.kk_KZ.ts | 105 ++++++++++++++++++
.../kiran-authentication-daemon.ky_KG.ts | 105 ++++++++++++++++++
.../kiran-authentication-daemon.mn_MN.ts | 105 ++++++++++++++++++
.../kiran-authentication-daemon.ug_CN.ts | 105 ++++++++++++++++++
.../pam_kiran_authentication.bo_CN.ts | 17 +++
.../pam_kiran_authentication.kk_KZ.ts | 17 +++
.../pam_kiran_authentication.ky_KG.ts | 17 +++
.../pam_kiran_authentication.mn_MN.ts | 17 +++
.../pam_kiran_authentication.ug_CN.ts | 17 +++
12 files changed, 614 insertions(+), 2 deletions(-)
create mode 100644 translations/kiran-authentication-daemon.bo_CN.ts
create mode 100644 translations/kiran-authentication-daemon.kk_KZ.ts
create mode 100644 translations/kiran-authentication-daemon.ky_KG.ts
create mode 100644 translations/kiran-authentication-daemon.mn_MN.ts
create mode 100644 translations/kiran-authentication-daemon.ug_CN.ts
create mode 100644 translations/pam_kiran_authentication.bo_CN.ts
create mode 100644 translations/pam_kiran_authentication.kk_KZ.ts
create mode 100644 translations/pam_kiran_authentication.ky_KG.ts
create mode 100644 translations/pam_kiran_authentication.mn_MN.ts
create mode 100644 translations/pam_kiran_authentication.ug_CN.ts
diff --git a/src/daemon/CMakeLists.txt b/src/daemon/CMakeLists.txt
index 454ba11..2bf4984 100644
--- a/src/daemon/CMakeLists.txt
+++ b/src/daemon/CMakeLists.txt
@@ -61,9 +61,10 @@ set(TARGET_NAME kiran-authentication-daemon)
configure_file(config-daemon.h.in ${CMAKE_CURRENT_BINARY_DIR}/config-daemon.h)
+file(GLOB TS_FILES "${PROJECT_SOURCE_DIR}/translations/${TARGET_NAME}.*.ts")
qt_create_translation(DAEMON_QM_FILES
${CMAKE_CURRENT_SOURCE_DIR} ../utils
- ${PROJECT_SOURCE_DIR}/translations/${TARGET_NAME}.zh_CN.ts
+ ${TS_FILES}
OPTIONS -I ${PROJECT_SOURCE_DIR} -I ${PROJECT_BINARY_DIR} -no-obsolete)
add_executable(
diff --git a/src/pam/CMakeLists.txt b/src/pam/CMakeLists.txt
index 9689281..8a89321 100644
--- a/src/pam/CMakeLists.txt
+++ b/src/pam/CMakeLists.txt
@@ -32,9 +32,10 @@ set(TARGET_NAME pam_kiran_authentication)
configure_file(config-pam.h.in ${CMAKE_CURRENT_BINARY_DIR}/config-pam.h)
+file(GLOB TS_FILES "${PROJECT_SOURCE_DIR}/translations/${TARGET_NAME}.*.ts")
qt_create_translation(PAM_QM_FILES
${CMAKE_CURRENT_SOURCE_DIR} ../utils
- ${PROJECT_SOURCE_DIR}/translations/${TARGET_NAME}.zh_CN.ts
+ ${TS_FILES}
OPTIONS -I ${PROJECT_SOURCE_DIR} -I ${PROJECT_BINARY_DIR} -no-obsolete)
add_library(
diff --git a/translations/kiran-authentication-daemon.bo_CN.ts b/translations/kiran-authentication-daemon.bo_CN.ts
new file mode 100644
index 0000000..46b3f35
--- /dev/null
+++ b/translations/kiran-authentication-daemon.bo_CN.ts
@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1" language="zh_CN">
+<context>
+ <name>PolkitProxy</name>
+ <message>
+ <location filename="../src/daemon/proxy/polkit-proxy.cpp" line="215"/>
+ <source>Authorization failed.</source>
+ <translation>དབང་བསྐུར་ཕམ་པ།</translation>
+ </message>
+</context>
+<context>
+ <name>QObject</name>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="30"/>
+ <source>Authentication ID already exists.</source>
+ <translation>ཐོབ་ཐང་ར་སྤྲོདIDད་ལྟ་ཡོད།</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="33"/>
+ <source>The user is enrolling.</source>
+ <translation>བཀོལ་མཁན་ཐོ་འགོད་བྱེད་བཞིན་ཡོད།</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="36"/>
+ <source>Too many sessions.</source>
+ <translation>སྐད་ཆ་བཤད་རེས་མང་དྲག་སོང་།</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="39"/>
+ <source>The session is in authentication.</source>
+ <translation>སྐད་ཆ་བཤད་རེས་ནི་ཐོབ་ཐང་ར་སྤྲོད་བྱེད་པའི་ཁྲོད་དུ་གནས་ཡོད།</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="42"/>
+ <source>Internel error.</source>
+ <translation>ནང་ཁུལ་གྱི་ནོར་འཁྲུལ།</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="45"/>
+ <source>Unknown error.</source>
+ <translation>མི་ཤེས་པའི་ནོར་འཁྲུལ།</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="49"/>
+ <source> (error code: 0x%x)</source>
+ <translation>ཚབ་ཨང་ནོར་འཁྲུལ་ཅན།0x%ཡིན།)</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="172"/>
+ <source>Enrollment completed successfully.</source>
+ <translation>ཐོ་འགོད་ལེགས་འགྲུབ་བྱུང་།</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="174"/>
+ <source>Enrollment failed.</source>
+ <translation>ཐོ་འགོད་ཕམ་པ།</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="176"/>
+ <source>Enroll stage passed.</source>
+ <translation>ཐོ་འགོད་དུས་རིམ་ལ་གྲོས་འཆམ་བྱུང་ཡོད་།</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="179"/>
+ <source>The enrollment scan did not succeed, please retry it.</source>
+ <translation>ཐོ་འགོད་བྱེད་པར་ལེགས་འགྲུབ་མ་བྱུང་།ཡང་བསྐྱར་ཚོད་ལྟ་ཞིག་བྱེད་རོགས།</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="181"/>
+ <source>The finger swipe was too short, please retry it.</source>
+ <translation>མཛུབ་མོ་ཤུད་འགུལ་ཧ་ཅང་ཐུང་བས་ཡང་བསྐྱར་ཚོད་ལྟ་ཞིག་བྱེད་རོགས།</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="183"/>
+ <source>The finger was not centered on the scanner, please retry it.</source>
+ <translation>མཛུབ་མོ་བཤར་འབེབས་ཆས་ཀྱི་ལྟེ་བར་མེད་པས།ཡང་བསྐྱར་ཚོད་ལྟ་བྱོས།</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="185"/>
+ <source>Unknown enrollment error.</source>
+ <translation>ཤེས་མེད་པའི་ཐོ་འགོད་ནོར་འཁྲུལ་རེད་།</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="195"/>
+ <source>Feature not match.</source>
+ <translation>ནུས་པ་དོ་མི་མཉམ།</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="197"/>
+ <source>Feature matching successed.</source>
+ <translation>ཁྱད་ཆོས་སྙོམས་སྒྲིག་ལེགས་གྲུབ་བྱུང་ཡོད་།</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="199"/>
+ <source>Feature not match, please retry it.</source>
+ <translation>ནུས་པ་དོ་མི་མཉམ།ཡང་བསྐྱར་ཚོད་ལྟ་བྱོས།</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="202"/>
+ <source>Unknown verfication error.</source>
+ <translation>ཤེས་མེད་པའི་ཚོད་ལྟས་ར་སྤྲོད་ནོར་འཁྲུལ་རེད་།</translation>
+ </message>
+</context>
+</TS>
diff --git a/translations/kiran-authentication-daemon.kk_KZ.ts b/translations/kiran-authentication-daemon.kk_KZ.ts
new file mode 100644
index 0000000..648dccc
--- /dev/null
+++ b/translations/kiran-authentication-daemon.kk_KZ.ts
@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1" language="zh_CN">
+<context>
+ <name>PolkitProxy</name>
+ <message>
+ <location filename="../src/daemon/proxy/polkit-proxy.cpp" line="215"/>
+ <source>Authorization failed.</source>
+ <translation>Авторизация жаңылысы.</translation>
+ </message>
+</context>
+<context>
+ <name>QObject</name>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="30"/>
+ <source>Authentication ID already exists.</source>
+ <translation>Аутентификация идентификаторы бұрыннан бар.</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="33"/>
+ <source>The user is enrolling.</source>
+ <translation>Пайдаланушы тіркелуде.</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="36"/>
+ <source>Too many sessions.</source>
+ <translation>Тым көп әңгімелер.</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="39"/>
+ <source>The session is in authentication.</source>
+ <translation>Сеанс аутентификациялануда.</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="42"/>
+ <source>Internel error.</source>
+ <translation>Ішкі қате.</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="45"/>
+ <source>Unknown error.</source>
+ <translation>Беймәлім қате.</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="49"/>
+ <source> (error code: 0x%x)</source>
+ <translation>0x% қате коды.</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="172"/>
+ <source>Enrollment completed successfully.</source>
+ <translation>Тіркеу сәтті аяқталды.</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="174"/>
+ <source>Enrollment failed.</source>
+ <translation>Тіркеу сәтсіз аяқталды</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="176"/>
+ <source>Enroll stage passed.</source>
+ <translation>Тіркеу кезеңі өтті</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="179"/>
+ <source>The enrollment scan did not succeed, please retry it.</source>
+ <translation>Тіркеуді қарап шығу сәтсіз аяқталды, әрекетті қайталаңыз</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="181"/>
+ <source>The finger swipe was too short, please retry it.</source>
+ <translation>Саусақтың сырғуы тым қысқа, әрекетті қайталаңыз</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="183"/>
+ <source>The finger was not centered on the scanner, please retry it.</source>
+ <translation>Саусағыңыз сканердің ортасында емес, әрекетті қайталаңыз</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="185"/>
+ <source>Unknown enrollment error.</source>
+ <translation>Беймәлім тіркеу қатесі</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="195"/>
+ <source>Feature not match.</source>
+ <translation>Функция сәйкес келмейді</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="197"/>
+ <source>Feature matching successed.</source>
+ <translation>Сәтті сәйкестік</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="199"/>
+ <source>Feature not match, please retry it.</source>
+ <translation>Функциялар сәйкес келмейді, әрекетті қайталаңыз</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="202"/>
+ <source>Unknown verfication error.</source>
+ <translation>Беймәлім тексеру қатесі</translation>
+ </message>
+</context>
+</TS>
diff --git a/translations/kiran-authentication-daemon.ky_KG.ts b/translations/kiran-authentication-daemon.ky_KG.ts
new file mode 100644
index 0000000..9fae909
--- /dev/null
+++ b/translations/kiran-authentication-daemon.ky_KG.ts
@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1" language="zh_CN">
+<context>
+ <name>PolkitProxy</name>
+ <message>
+ <location filename="../src/daemon/proxy/polkit-proxy.cpp" line="215"/>
+ <source>Authorization failed.</source>
+ <translation>Kuloledwa kulephera</translation>
+ </message>
+</context>
+<context>
+ <name>QObject</name>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="30"/>
+ <source>Authentication ID already exists.</source>
+ <translation>ID бар</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="33"/>
+ <source>The user is enrolling.</source>
+ <translation>Ogwiritsa ntchito akulembetsa</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="36"/>
+ <source>Too many sessions.</source>
+ <translation>Өтө көп сүйлөшүү</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="39"/>
+ <source>The session is in authentication.</source>
+ <translation>текшерүү менен сүйлөшүү</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="42"/>
+ <source>Internel error.</source>
+ <translation>Ички каталар</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="45"/>
+ <source>Unknown error.</source>
+ <translation>Zolakwitsa zosadziwika</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="49"/>
+ <source> (error code: 0x%x)</source>
+ <translation>Right Code 0x%</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="172"/>
+ <source>Enrollment completed successfully.</source>
+ <translation>Kulembetsa kwatha</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="174"/>
+ <source>Enrollment failed.</source>
+ <translation>Kulembetsa kulephera</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="176"/>
+ <source>Enroll stage passed.</source>
+ <translation>Gawo lolembetsa ladutsa</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="179"/>
+ <source>The enrollment scan did not succeed, please retry it.</source>
+ <translation>Kulembetsa kulembetsa sikupambana, chonde yesani</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="181"/>
+ <source>The finger swipe was too short, please retry it.</source>
+ <translation>Kujambula zala kumakhala kochepa kwambiri, chonde yesani kachiwiri</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="183"/>
+ <source>The finger was not centered on the scanner, please retry it.</source>
+ <translation>Mwala suli pakati pa scanner Chonde yesani kachiwiri</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="185"/>
+ <source>Unknown enrollment error.</source>
+ <translation>Zolakwitsa zosadziwika</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="195"/>
+ <source>Feature not match.</source>
+ <translation>Function дал келбейт</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="197"/>
+ <source>Feature matching successed.</source>
+ <translation>Zogwirizana ndi zochitika</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="199"/>
+ <source>Feature not match, please retry it.</source>
+ <translation>Function сураныч, кайра аракет дал келбейт</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="202"/>
+ <source>Unknown verfication error.</source>
+ <translation>Cholakwika chosadziwika</translation>
+ </message>
+</context>
+</TS>
diff --git a/translations/kiran-authentication-daemon.mn_MN.ts b/translations/kiran-authentication-daemon.mn_MN.ts
new file mode 100644
index 0000000..ea38ce5
--- /dev/null
+++ b/translations/kiran-authentication-daemon.mn_MN.ts
@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1" language="zh_CN">
+<context>
+ <name>PolkitProxy</name>
+ <message>
+ <location filename="../src/daemon/proxy/polkit-proxy.cpp" line="215"/>
+ <source>Authorization failed.</source>
+ <translation>Зөвшөөрөл амжилтгүй болсон</translation>
+ </message>
+</context>
+<context>
+ <name>QObject</name>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="30"/>
+ <source>Authentication ID already exists.</source>
+ <translation>Гэрчлэх ID аль хэдийн байна</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="33"/>
+ <source>The user is enrolling.</source>
+ <translation>Хэрэглэгч бүртгүүлж байна</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="36"/>
+ <source>Too many sessions.</source>
+ <translation>Хэт олон яриа</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="39"/>
+ <source>The session is in authentication.</source>
+ <translation>Сешн нь гэрчлэгдсэн байна</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="42"/>
+ <source>Internel error.</source>
+ <translation>Дотоод алдаа</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="45"/>
+ <source>Unknown error.</source>
+ <translation>Үл мэдэгдэх алдаа</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="49"/>
+ <source> (error code: 0x%x)</source>
+ <translation>Алдааны код 0x%</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="172"/>
+ <source>Enrollment completed successfully.</source>
+ <translation>Бүртгэл амжилттай дууссан</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="174"/>
+ <source>Enrollment failed.</source>
+ <translation>Бүртгэл амжилтгүй болсон</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="176"/>
+ <source>Enroll stage passed.</source>
+ <translation>Бүртгэлийн үе шат өнгөрсөн</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="179"/>
+ <source>The enrollment scan did not succeed, please retry it.</source>
+ <translation>Бүртгэлийн скан амжилтгүй болсон тул дахин оролдоно уу</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="181"/>
+ <source>The finger swipe was too short, please retry it.</source>
+ <translation>Хуруу хэт богино байна, дахин оролдоно уу</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="183"/>
+ <source>The finger was not centered on the scanner, please retry it.</source>
+ <translation>Хуруу нь сканнерын төвд байхгүй байна, дахин оролдоно уу</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="185"/>
+ <source>Unknown enrollment error.</source>
+ <translation>Бүртгэлийн алдаа тодорхойгүй байна</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="195"/>
+ <source>Feature not match.</source>
+ <translation>Функц таарахгүй байна</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="197"/>
+ <source>Feature matching successed.</source>
+ <translation>Онцлог шинж чанар амжилттай таарч байна</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="199"/>
+ <source>Feature not match, please retry it.</source>
+ <translation>Функц таарахгүй байна уу, дахин оролдоно уу</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="202"/>
+ <source>Unknown verfication error.</source>
+ <translation>Баталгаажуулалтын алдаа тодорхойгүй байна</translation>
+ </message>
+</context>
+</TS>
diff --git a/translations/kiran-authentication-daemon.ug_CN.ts b/translations/kiran-authentication-daemon.ug_CN.ts
new file mode 100644
index 0000000..e3bd46c
--- /dev/null
+++ b/translations/kiran-authentication-daemon.ug_CN.ts
@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1" language="zh_CN">
+<context>
+ <name>PolkitProxy</name>
+ <message>
+ <location filename="../src/daemon/proxy/polkit-proxy.cpp" line="215"/>
+ <source>Authorization failed.</source>
+ <translation>ھوقۇق بېرىش مەغلۇپ بولدى.</translation>
+ </message>
+</context>
+<context>
+ <name>QObject</name>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="30"/>
+ <source>Authentication ID already exists.</source>
+ <translation>سالاھىيەت تەكشۈرۈش ID مەۋجۇت.</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="33"/>
+ <source>The user is enrolling.</source>
+ <translation>ئابونت تىزىمغا ئالدۇرىۋاتىدۇ.</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="36"/>
+ <source>Too many sessions.</source>
+ <translation>بەك كۆپ سۆزلىشىش.</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="39"/>
+ <source>The session is in authentication.</source>
+ <translation>سۆزلىشىش سالاھىيەت تەكشۈرۈش باسقۇچىدا.</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="42"/>
+ <source>Internel error.</source>
+ <translation>ئىچكى خاتالىق.</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="45"/>
+ <source>Unknown error.</source>
+ <translation>نامەلۇم خاتالىق.</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/error.cpp" line="49"/>
+ <source> (error code: 0x%x)</source>
+ <translation>( خاتا كود : %0x )</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="172"/>
+ <source>Enrollment completed successfully.</source>
+ <translation>تىزىملىتىش مۇۋەپپەقىيەتلىك تاماملاندى.</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="174"/>
+ <source>Enrollment failed.</source>
+ <translation>تىزىملىتىش مەغلۇپ بولدى.</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="176"/>
+ <source>Enroll stage passed.</source>
+ <translation>تىزىملىتىش باسقۇچىدىن ئۆتتى.</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="179"/>
+ <source>The enrollment scan did not succeed, please retry it.</source>
+ <translation>رويخەتكە ئالدۇرغان تەسۋىر كۆچۈرۈش مۇۋەپپەقىيەتلىك بولمىدى، قايتا سىناڭ.</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="181"/>
+ <source>The finger swipe was too short, please retry it.</source>
+ <translation>بارماقنىڭ سىيرىلىشى بەك قىسقا، قايتا سىناڭ.</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="183"/>
+ <source>The finger was not centered on the scanner, please retry it.</source>
+ <translation>بارماق سكاننېرنىڭ مەركىزىدە ئەمەس، قايتا سىناڭ.</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="185"/>
+ <source>Unknown enrollment error.</source>
+ <translation>نامەلۇم تىزىملاش خاتالىقى</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="195"/>
+ <source>Feature not match.</source>
+ <translation>ئىقتىدارى ماس كەلمىدى.</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="197"/>
+ <source>Feature matching successed.</source>
+ <translation>ئالاھىدىلىكى ماسلاشتۇرۇش مۇۋەپپەقىيەتلىك بولدى.</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="199"/>
+ <source>Feature not match, please retry it.</source>
+ <translation>ئىقتىدارى ماس كەلمىدى، قايتا سىناڭ.</translation>
+ </message>
+ <message>
+ <location filename="../src/daemon/utils.cpp" line="202"/>
+ <source>Unknown verfication error.</source>
+ <translation>نامەلۇم دەلىللەش خاتالىقى.</translation>
+ </message>
+</context>
+</TS>
diff --git a/translations/pam_kiran_authentication.bo_CN.ts b/translations/pam_kiran_authentication.bo_CN.ts
new file mode 100644
index 0000000..826ab9f
--- /dev/null
+++ b/translations/pam_kiran_authentication.bo_CN.ts
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1" language="zh_CN">
+<context>
+ <name>QObject</name>
+ <message>
+ <location filename="../src/pam/authentication-terminal.cpp" line="34"/>
+ <source>Select Authentication type (%1 default, %2 password, %3 fingerprint): </source>
+ <translation>ཐོབ་ཐང་ཞིབ་བཤེར་གྱི་རིགས1%ཡི་ཁས་ལེན།2%ཡི་གསང་བའི་ཨང་གྲངས།3%གྱི་མཛུབ་རིས་གདམ་དགོས།)</translation>
+ </message>
+ <message>
+ <location filename="../src/pam/authentication.cpp" line="102"/>
+ <source>Too many authentication failures, so the authentication mode is locked.</source>
+ <translation>ཐོབ་ཐང་ཞིབ་བཤེར་གྱི་ཕམ་ཁ་མང་བས།ཐོབ་ཐང་ཞིབ་བཤེར་གྱི་རྣམ་པ་གཏན་འཁེལ་བྱས།</translation>
+ </message>
+</context>
+</TS>
diff --git a/translations/pam_kiran_authentication.kk_KZ.ts b/translations/pam_kiran_authentication.kk_KZ.ts
new file mode 100644
index 0000000..8e73c39
--- /dev/null
+++ b/translations/pam_kiran_authentication.kk_KZ.ts
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1" language="zh_CN">
+<context>
+ <name>QObject</name>
+ <message>
+ <location filename="../src/pam/authentication-terminal.cpp" line="34"/>
+ <source>Select Authentication type (%1 default, %2 password, %3 fingerprint): </source>
+ <translation>% 1 түпнұсқалық растама түрі% 1 әдепкі мәні% 2 паролі% 3 саусақ ізін таңдаңыз</translation>
+ </message>
+ <message>
+ <location filename="../src/pam/authentication.cpp" line="102"/>
+ <source>Too many authentication failures, so the authentication mode is locked.</source>
+ <translation>Аутентификация тым көп сәтсіз аяқталды, сондықтан аутентификация режимі құлыпталған</translation>
+ </message>
+</context>
+</TS>
diff --git a/translations/pam_kiran_authentication.ky_KG.ts b/translations/pam_kiran_authentication.ky_KG.ts
new file mode 100644
index 0000000..d73b620
--- /dev/null
+++ b/translations/pam_kiran_authentication.ky_KG.ts
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1" language="zh_CN">
+<context>
+ <name>QObject</name>
+ <message>
+ <location filename="../src/pam/authentication-terminal.cpp" line="34"/>
+ <source>Select Authentication type (%1 default, %2 password, %3 fingerprint): </source>
+ <translation>Sankhani mtundu wotsimikizirika wa mtundu 1 1 Mverani mtengo wa 2% password 3 zolemba zala</translation>
+ </message>
+ <message>
+ <location filename="../src/pam/authentication.cpp" line="102"/>
+ <source>Too many authentication failures, so the authentication mode is locked.</source>
+ <translation>Инсандык текшерүү өтө көп ката Ошондуктан текшерүү режими кулпуланган</translation>
+ </message>
+</context>
+</TS>
diff --git a/translations/pam_kiran_authentication.mn_MN.ts b/translations/pam_kiran_authentication.mn_MN.ts
new file mode 100644
index 0000000..f9ed721
--- /dev/null
+++ b/translations/pam_kiran_authentication.mn_MN.ts
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1" language="zh_CN">
+<context>
+ <name>QObject</name>
+ <message>
+ <location filename="../src/pam/authentication-terminal.cpp" line="34"/>
+ <source>Select Authentication type (%1 default, %2 password, %3 fingerprint): </source>
+ <translation>Гэрчлэлийн төрөл% 1 анхдагч% 2 нууц үг% 3 хурууны хээг сонгоно уу</translation>
+ </message>
+ <message>
+ <location filename="../src/pam/authentication.cpp" line="102"/>
+ <source>Too many authentication failures, so the authentication mode is locked.</source>
+ <translation>Хэт олон баталгаажуулалт амжилтгүй болсон тул гэрчлэх горим түгжигдсэн байна</translation>
+ </message>
+</context>
+</TS>
diff --git a/translations/pam_kiran_authentication.ug_CN.ts b/translations/pam_kiran_authentication.ug_CN.ts
new file mode 100644
index 0000000..b4d32f7
--- /dev/null
+++ b/translations/pam_kiran_authentication.ug_CN.ts
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1" language="zh_CN">
+<context>
+ <name>QObject</name>
+ <message>
+ <location filename="../src/pam/authentication-terminal.cpp" line="34"/>
+ <source>Select Authentication type (%1 default, %2 password, %3 fingerprint): </source>
+ <translation>سالاھىيەت تەكشۈرۈش تۈرىنى تاللاش ( %1 كۆڭۈلدىكى قىممەت، %2 مەخپىي نومۇر، %3 بارماق ئىزى) :</translation>
+ </message>
+ <message>
+ <location filename="../src/pam/authentication.cpp" line="102"/>
+ <source>Too many authentication failures, so the authentication mode is locked.</source>
+ <translation>سالاھىيەت تەكشۈرۈشتە مەغلۇپ بولۇش بەك كۆپ، شۇڭا سالاھىيەت تەكشۈرۈش ئەندىزىسى قۇلۇپلىنىپ قالدى.</translation>
+ </message>
+</context>
+</TS>
--
2.33.0

View File

@ -1,133 +0,0 @@
From eaa890cd01b3e3e5c85237f553d7fb738789d713 Mon Sep 17 00:00:00 2001
From: wangyucheng <wangyucheng@kylinsec.com.cn>
Date: Fri, 21 Apr 2023 17:23:46 +0800
Subject: [PATCH] fix(cmake): qt5 cmake command compatible
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 兼容qt5 cmake命令的兼容修改
---
src/daemon/CMakeLists.txt | 16 ++++++++--------
src/pam/CMakeLists.txt | 8 ++++----
2 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/src/daemon/CMakeLists.txt b/src/daemon/CMakeLists.txt
index 2bf4984..e6166ec 100644
--- a/src/daemon/CMakeLists.txt
+++ b/src/daemon/CMakeLists.txt
@@ -1,7 +1,7 @@
file(GLOB_RECURSE DAEMON_H_FILES ./*.h)
file(GLOB_RECURSE DAEMON_CPP_FILES ./*.cpp)
-qt_add_dbus_adaptor(
+qt5_add_dbus_adaptor(
AUTH_MANAGER_ADAPTOR_SRCS
${CMAKE_SOURCE_DIR}/data/com.kylinsec.Kiran.Authentication.xml
${CMAKE_SOURCE_DIR}/src/daemon/auth-manager.h
@@ -9,7 +9,7 @@ qt_add_dbus_adaptor(
auth_manager_adaptor
AuthManagerAdaptor)
-qt_add_dbus_adaptor(
+qt5_add_dbus_adaptor(
AUTH_SESSION_ADAPTOR_SRCS
${CMAKE_SOURCE_DIR}/data/com.kylinsec.Kiran.Authentication.Session.xml
${CMAKE_SOURCE_DIR}/src/daemon/session.h
@@ -17,7 +17,7 @@ qt_add_dbus_adaptor(
session_adaptor
SessionAdaptor)
-qt_add_dbus_adaptor(
+qt5_add_dbus_adaptor(
USER_ADAPTOR_SRCS
${CMAKE_SOURCE_DIR}/data/com.kylinsec.Kiran.Authentication.User.xml
${CMAKE_SOURCE_DIR}/src/daemon/user.h Kiran::User user_adaptor UserAdaptor)
@@ -26,7 +26,7 @@ set_source_files_properties(
${CMAKE_SOURCE_DIR}/data/com.kylinsec.Kiran.SystemDaemon.Accounts.xml
PROPERTIES CLASSNAME AccountsProxy NO_NAMESPACE true)
-qt_add_dbus_interface(
+qt5_add_dbus_interface(
ACCOUNTS_INTERFACE_SRCS
${CMAKE_SOURCE_DIR}/data/com.kylinsec.Kiran.SystemDaemon.Accounts.xml
accounts_proxy)
@@ -35,7 +35,7 @@ set_source_files_properties(
${CMAKE_SOURCE_DIR}/data/com.kylinsec.Kiran.SystemDaemon.Accounts.User.xml
PROPERTIES CLASSNAME AccountsUserProxy NO_NAMESPACE true)
-qt_add_dbus_interface(
+qt5_add_dbus_interface(
ACCOUNTS_USER_INTERFACE_SRCS
${CMAKE_SOURCE_DIR}/data/com.kylinsec.Kiran.SystemDaemon.Accounts.User.xml
accounts_user_proxy)
@@ -44,7 +44,7 @@ set_source_files_properties(
${CMAKE_SOURCE_DIR}/data/com.kylinsec.Kiran.AuthDevice.xml
PROPERTIES CLASSNAME AuthDeviceManagerProxy NO_NAMESPACE true)
-qt_add_dbus_interface(
+qt5_add_dbus_interface(
BIOMETRICS_INTERFACE_SRCS
${CMAKE_SOURCE_DIR}/data/com.kylinsec.Kiran.AuthDevice.xml auth_device_manager_proxy)
@@ -52,7 +52,7 @@ set_source_files_properties(
${CMAKE_SOURCE_DIR}/data/com.kylinsec.Kiran.AuthDevice.Device.xml
PROPERTIES CLASSNAME AuthDeviceProxy NO_NAMESPACE true)
-qt_add_dbus_interface(
+qt5_add_dbus_interface(
BIOMETRICS_DEVICE_INTERFACE_SRCS
${CMAKE_SOURCE_DIR}/data/com.kylinsec.Kiran.AuthDevice.Device.xml
auth_device_proxy)
@@ -62,7 +62,7 @@ set(TARGET_NAME kiran-authentication-daemon)
configure_file(config-daemon.h.in ${CMAKE_CURRENT_BINARY_DIR}/config-daemon.h)
file(GLOB TS_FILES "${PROJECT_SOURCE_DIR}/translations/${TARGET_NAME}.*.ts")
-qt_create_translation(DAEMON_QM_FILES
+qt5_create_translation(DAEMON_QM_FILES
${CMAKE_CURRENT_SOURCE_DIR} ../utils
${TS_FILES}
OPTIONS -I ${PROJECT_SOURCE_DIR} -I ${PROJECT_BINARY_DIR} -no-obsolete)
diff --git a/src/pam/CMakeLists.txt b/src/pam/CMakeLists.txt
index 8a89321..334f33a 100644
--- a/src/pam/CMakeLists.txt
+++ b/src/pam/CMakeLists.txt
@@ -5,7 +5,7 @@ set_source_files_properties(
${CMAKE_SOURCE_DIR}/data/com.kylinsec.Kiran.Authentication.xml
PROPERTIES CLASSNAME AuthManagerProxy NO_NAMESPACE true)
-qt_add_dbus_interface(
+qt5_add_dbus_interface(
AUTH_MANAGER_INTERFACE_SRCS
${CMAKE_SOURCE_DIR}/data/com.kylinsec.Kiran.Authentication.xml
auth_manager_proxy)
@@ -14,7 +14,7 @@ set_source_files_properties(
${CMAKE_SOURCE_DIR}/data/com.kylinsec.Kiran.Authentication.Session.xml
PROPERTIES CLASSNAME AuthSessionProxy NO_NAMESPACE true)
-qt_add_dbus_interface(
+qt5_add_dbus_interface(
AUTH_SESSION_INTERFACE_SRCS
${CMAKE_SOURCE_DIR}/data/com.kylinsec.Kiran.Authentication.Session.xml
auth_session_proxy)
@@ -23,7 +23,7 @@ set_source_files_properties(
${CMAKE_SOURCE_DIR}/data/com.kylinsec.Kiran.Authentication.User.xml
PROPERTIES CLASSNAME AuthUserProxy NO_NAMESPACE true)
-qt_add_dbus_interface(
+qt5_add_dbus_interface(
AUTH_USER_INTERFACE_SRCS
${CMAKE_SOURCE_DIR}/data/com.kylinsec.Kiran.Authentication.User.xml
auth_user_proxy)
@@ -33,7 +33,7 @@ set(TARGET_NAME pam_kiran_authentication)
configure_file(config-pam.h.in ${CMAKE_CURRENT_BINARY_DIR}/config-pam.h)
file(GLOB TS_FILES "${PROJECT_SOURCE_DIR}/translations/${TARGET_NAME}.*.ts")
-qt_create_translation(PAM_QM_FILES
+qt5_create_translation(PAM_QM_FILES
${CMAKE_CURRENT_SOURCE_DIR} ../utils
${TS_FILES}
OPTIONS -I ${PROJECT_SOURCE_DIR} -I ${PROJECT_BINARY_DIR} -no-obsolete)
--
2.33.0

View File

@ -1,30 +0,0 @@
From 61b5002e92643f08213e5725ed2a1a8919ced58f Mon Sep 17 00:00:00 2001
From: wangyucheng <wangyucheng@kylinsec.com.cn>
Date: Sat, 22 Apr 2023 14:54:28 +0800
Subject: [PATCH] =?UTF-8?q?fix(compile):=20fix=20compile=20error:=20no=20m?=
=?UTF-8?q?atch=20for=20=E2=80=98operator<<=E2=80=99=20on=20gcc=207.3.0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 修复在gcc7.3.0上的编译错误
---
src/daemon/device/device-adaptor.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/daemon/device/device-adaptor.cpp b/src/daemon/device/device-adaptor.cpp
index e521575..d3c0435 100644
--- a/src/daemon/device/device-adaptor.cpp
+++ b/src/daemon/device/device-adaptor.cpp
@@ -329,7 +329,7 @@ void DeviceAdaptor::onIdentifyStatus(const QString &featureID, int result, const
// 认证队列里只存当前会话里的认证请求
void DeviceAdaptor::onActiveSessionChanged(const Login1SessionItem &sessionItem)
{
- DEVICE_DEBUG() << "active session changed:" << sessionItem.sessionID << sessionItem.sessionObjectPath;
+ DEVICE_DEBUG() << "active session changed:" << sessionItem.sessionID << sessionItem.sessionObjectPath.path();
// 清空之前会话里的所有认证请求
removeAllRequest();
--
2.33.0

View File

@ -1,27 +0,0 @@
From 537a766a4bb882cfa8bae9bdcc5c87ba48e7f550 Mon Sep 17 00:00:00 2001
From: liuxinhao <liuxinhao@kylinsec.com.cn>
Date: Mon, 24 Apr 2023 12:38:02 +0800
Subject: [PATCH] fix(DBus service): Fix the DBus Service Exec field problem
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 修复DBus服务配置Exec字段宏填写错误导致不能正常拉起认证服务的问题
---
data/com.kylinsec.Kiran.Authentication.service.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/data/com.kylinsec.Kiran.Authentication.service.in b/data/com.kylinsec.Kiran.Authentication.service.in
index 683c943..278cacf 100644
--- a/data/com.kylinsec.Kiran.Authentication.service.in
+++ b/data/com.kylinsec.Kiran.Authentication.service.in
@@ -1,5 +1,5 @@
[D-BUS Service]
Name=com.kylinsec.Kiran.Authentication
-Exec=@INSTALL_BINDIR@/kiran-authentication-daemon
+Exec=@CMAKE_INSTALL_FULL_BINDIR@/kiran-authentication-daemon
User=root
SystemdService=kiran-authentication-daemon.service
--
2.33.0

Binary file not shown.

View File

@ -1,17 +1,12 @@
Name: kiran-authentication-service
Version: 2.5.0
Release: 7
Version: 2.5.1
Release: 1
Summary: Kiran Desktop kiran authentication service
License: MulanPSL-2.0
URL: http://www.kylinsec.com.cn
Source0: %{name}-%{version}.tar.gz
Patch0001: 0001-fix-translate-add-some-translation.patch
Patch0002: 0002-fix-cmake-qt5-cmake-command-compatible.patch
Patch0003: 0003-fix-compile-fix-compile-error-no-match-for-operator-.patch
Patch0004: 0004-fix-DBus-service-Fix-the-DBus-Service-Exec-field-pro.patch
BuildRequires: systemd
BuildRequires: systemd-devel
BuildRequires: gcc
@ -54,12 +49,20 @@ make %{?_smp_mflags} V=1
%install
%make_install
%post -n kiran-authentication-service
%systemd_post kiran-authentication-daemon.service
systemctl enable kiran-authentication-daemon.service
%preun -n kiran-authentication-service
%systemd_preun kiran-authentication-daemon.service
%files
%{_datadir}/polkit-1/actions/com.kylinsec.Kiran.Authentication.policy
%{_sysconfdir}/dbus-1/system.d/com.kylinsec.Kiran.Authentication.conf
%{_datadir}/dbus-1/system-services/com.kylinsec.Kiran.Authentication.service
%{_prefix}/lib/systemd/system/kiran-authentication-daemon.service
%{_sysconfdir}/kiran-authentication-service/kad.ini
%{_sysconfdir}/pam.d/kiran-authentication-service
%{_datadir}/kiran-authentication-service/translations/kiran-authentication-daemon.zh_CN.qm
%{_datadir}/kiran-authentication-service/translations/kiran-authentication-daemon.bo_CN.qm
%{_datadir}/kiran-authentication-service/translations/kiran-authentication-daemon.kk_KZ.qm
@ -79,6 +82,12 @@ make %{?_smp_mflags} V=1
%{_includedir}/kiran-authentication-service/kas-authentication-i.h
%changelog
* Wed May 24 2023 liuxinhao <liuxinhao@kylinsec.com.cn> - 2.5.1-1
- KYOS-F: Update translation file and modify the pam configuration file
- KYOS-F: Adjust enumeration values to accommodate some of the prompt messages during entry
- KYOS-F: Supports UKey, Iris,face authentication, support mulit-factory auth,update error count recording mode
- KYOS-F: Add the Ukey authentication,DeviceAdaptor occupy device timer , Number of user binding feature
* Mon Apr 24 2023 liuxinaho <liuxinhao@kylinsec.com.cn> - 2.5.0-7
- KYOS-F: fix the DBus Service Exec field problem