From 47a752871089002c83cf0de2e60946d776423bca Mon Sep 17 00:00:00 2001
From: budory <lizhanchun@kylinos.cn>
Date: Fri, 16 Aug 2024 06:40:46 +0000
Subject: [PATCH] Fix the translation problem of libvirtd.policy's prompts.
 Whereas the translations of the zh_CN.po, zh_HK.po, and zh_TW.po files do not
 cover the prompts in libvirtd.policy. Therefore, it is necessary to add
 simplified Chinese and Traditional Chinese to the description and message in
 libvirt.policy.

Signed-off-by: budory <lizhanchun@kylinos.cn>
---
 src/remote/libvirtd.policy | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/remote/libvirtd.policy b/src/remote/libvirtd.policy
index e834d24327..264d74b60e 100644
--- a/src/remote/libvirtd.policy
+++ b/src/remote/libvirtd.policy
@@ -27,7 +27,13 @@ License along with this library.  If not, see
 <policyconfig>
     <action id="org.libvirt.unix.monitor">
       <description>Monitor local virtualized systems</description>
+      <description xml:lang="zh_TW">監控本地虛擬化系統</description>
+      <description xml:lang="zh_HK">監控本地虛擬化系統</description>
+      <description xml:lang="zh_CN">监控本地虚拟化系统</description>
       <message>System policy prevents monitoring of local virtualized systems</message>
+      <message xml:lang="zh_TW">系統策略禁止監控本地虛擬化系統</message>
+      <message xml:lang="zh_HK">系統策略禁止監控本地虛擬化系統</message>
+      <message xml:lang="zh_CN">系统策略禁止监控本地虚拟化系统</message>
       <defaults>
         <!-- Any program can use libvirt in read-only mode for monitoring,
              even if not part of a session -->
@@ -39,7 +45,13 @@ License along with this library.  If not, see
 
     <action id="org.libvirt.unix.manage">
       <description>Manage local virtualized systems</description>
+      <description xml:lang="zh_TW">管理本地虛擬化系統</description>
+      <description xml:lang="zh_HK">管理本地虛擬化系統</description>
+      <description xml:lang="zh_CN">管理本地虚拟化系统</description>
       <message>System policy prevents management of local virtualized systems</message>
+      <message xml:lang="zh_TW">系統策略禁止管理本地虛擬化系統</message>
+      <message xml:lang="zh_HK">系統策略禁止管理本地虛擬化系統</message>
+      <message xml:lang="zh_CN">系统策略禁止管理本地虚拟化系统</message>
       <defaults>
         <!-- Any program can use libvirt in read/write mode if they
              provide the root password -->
-- 
2.33.0