mirror of
https://gitee.com/amber-ce/amber-ce-bookworm.git
synced 2025-12-14 19:12:05 +08:00
fix: 卸载工具的comment只显示英文
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
Package: cn.flamescion.bookworm-compatibility-mode
|
Package: cn.flamescion.bookworm-compatibility-mode
|
||||||
Version: 12.3.5
|
Version: 12.4
|
||||||
Section: misc
|
Section: misc
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Depends: bubblewrap,flatpak,zenity,policykit-1
|
Depends: bubblewrap,flatpak,zenity,policykit-1
|
||||||
|
|||||||
@@ -23,7 +23,13 @@ for file in "$ACE_dir"/usr/share/applications/*.desktop; do
|
|||||||
else
|
else
|
||||||
name=$name_i18n
|
name=$name_i18n
|
||||||
fi
|
fi
|
||||||
comment=$(grep -m 1 '^Comment=' "$file" | cut -d '=' -f 2)
|
comment_orig=$(grep -m 1 '^Comment=' "$file" | cut -d '=' -f 2)
|
||||||
|
comment_i18n=$(grep -m 1 "^Comment\[${LANGUAGE}\]\=" "$file" | cut -d '=' -f 2)
|
||||||
|
if [ -z "$comment_i18n" ] ;then
|
||||||
|
comment=$comment_orig
|
||||||
|
else
|
||||||
|
comment=$comment_i18n
|
||||||
|
fi
|
||||||
# 如果没有简介,则显示"N/A"
|
# 如果没有简介,则显示"N/A"
|
||||||
[[ -z "$comment" ]] && comment="N/A"
|
[[ -z "$comment" ]] && comment="N/A"
|
||||||
# 添加到应用列表数组
|
# 添加到应用列表数组
|
||||||
|
|||||||
Reference in New Issue
Block a user