mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-09-18 09:02:21 +08:00
更多的汉化
This commit is contained in:
parent
69b7cbe472
commit
98c4e8a699
@ -207,7 +207,9 @@ fi
|
|||||||
msg_already_running()
|
msg_already_running()
|
||||||
{
|
{
|
||||||
msg "apt-fast already running!" "warning"
|
msg "apt-fast already running!" "warning"
|
||||||
|
msg "apt-fast 已经在运行了" "warning"
|
||||||
msg "Verify that all apt-fast processes are finished then remove $LCK_FILE.lock and try again." "hint"
|
msg "Verify that all apt-fast processes are finished then remove $LCK_FILE.lock and try again." "hint"
|
||||||
|
msg "请确认所有的apt-fast进程已经结束,然后删除 $LCK_FILE.lock 后重试." "hint"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Check if a lock file exists.
|
# Check if a lock file exists.
|
||||||
@ -246,6 +248,7 @@ cleanup_dllist()
|
|||||||
if ! rm -f -- "$DLLIST" 2>/dev/null
|
if ! rm -f -- "$DLLIST" 2>/dev/null
|
||||||
then
|
then
|
||||||
msg "Could not clean up download list file." "warning"
|
msg "Could not clean up download list file." "warning"
|
||||||
|
msg "无法清除下载列表文件." "warning"
|
||||||
CLEANUP_STATE=1
|
CLEANUP_STATE=1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -304,12 +307,14 @@ get_uris(){
|
|||||||
if ! mkdir -p -- "$(dirname "$DLLIST")"
|
if ! mkdir -p -- "$(dirname "$DLLIST")"
|
||||||
then
|
then
|
||||||
msg "Could not create download file directory." "warning"
|
msg "Could not create download file directory." "warning"
|
||||||
|
msg "无法创建下载文件夹" "warning"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
elif [ -f "$DLLIST" ]; then
|
elif [ -f "$DLLIST" ]; then
|
||||||
if ! rm -f -- "$DLLIST" 2>/dev/null && ! touch -- "$DLLIST" 2>/dev/null
|
if ! rm -f -- "$DLLIST" 2>/dev/null && ! touch -- "$DLLIST" 2>/dev/null
|
||||||
then
|
then
|
||||||
msg "Unable to write to download file. Try restarting with root permissions or run 'apt-fast clean' first." "warning"
|
msg "Unable to write to download file. Try restarting with root permissions or run 'aptss clean' first." "warning"
|
||||||
|
msg "无法下载文件。尝试使用root权限,或者运行 'aptss clean'" "warning"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -398,6 +403,7 @@ get_uris(){
|
|||||||
checksum="$(echo "$patch_checksum" | cut -d' ' -f2)"
|
checksum="$(echo "$patch_checksum" | cut -d' ' -f2)"
|
||||||
else
|
else
|
||||||
msg "Couldn't get supported checksum for $pkg_name ($pkg_version)." "warning"
|
msg "Couldn't get supported checksum for $pkg_name ($pkg_version)." "warning"
|
||||||
|
msg "无法获得 $pkg_name ($pkg_version) 的受支持的散列验证值" "warning"
|
||||||
REMOVE_WORKING_MESSAGE=
|
REMOVE_WORKING_MESSAGE=
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -436,6 +442,7 @@ display_downloadfile(){
|
|||||||
done <<<"$(echo -e "$DOWNLOAD_DISPLAY" | sort "${DISPLAY_SORT_OPTIONS[@]}")"
|
done <<<"$(echo -e "$DOWNLOAD_DISPLAY" | sort "${DISPLAY_SORT_OPTIONS[@]}")"
|
||||||
fi
|
fi
|
||||||
msg "Download size: $(echo "$DOWNLOAD_SIZE" | numfmt --to=iec-i --suffix=B)" "normal"
|
msg "Download size: $(echo "$DOWNLOAD_SIZE" | numfmt --to=iec-i --suffix=B)" "normal"
|
||||||
|
msg "下载大小: $(echo "$DOWNLOAD_SIZE" | numfmt --to=iec-i --suffix=B)" "normal"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Create and insert a PID number to lockfile.
|
# Create and insert a PID number to lockfile.
|
||||||
@ -479,6 +486,7 @@ if [ "$CMD" == "aria2c" ]; then
|
|||||||
done
|
done
|
||||||
if [ -z "$HASH_SUPPORTED" ]; then
|
if [ -z "$HASH_SUPPORTED" ]; then
|
||||||
msg "Couldn't find supported checksum algorithm from aria2c. Checksums disabled." "warning"
|
msg "Couldn't find supported checksum algorithm from aria2c. Checksums disabled." "warning"
|
||||||
|
msg "无法找到aria2c支持的散列验证算法. 散列验证已被禁用." "warning"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -533,6 +541,7 @@ fi
|
|||||||
if [ "$option" == "install" ]; then
|
if [ "$option" == "install" ]; then
|
||||||
msg
|
msg
|
||||||
msg "Working... this may take a while." "normal"
|
msg "Working... this may take a while." "normal"
|
||||||
|
msg "正在工作中,请稍等" "normal"
|
||||||
REMOVE_WORKING_MESSAGE=y
|
REMOVE_WORKING_MESSAGE=y
|
||||||
|
|
||||||
get_uris "$@"
|
get_uris "$@"
|
||||||
@ -600,6 +609,7 @@ elif [ "$option" == "clean" ]; then
|
|||||||
elif [ "$option" == "download" ]; then
|
elif [ "$option" == "download" ]; then
|
||||||
msg
|
msg
|
||||||
msg "Working... this may take a while." "normal"
|
msg "Working... this may take a while." "normal"
|
||||||
|
msg "正在工作中,请稍等" "normal"
|
||||||
REMOVE_WORKING_MESSAGE=y
|
REMOVE_WORKING_MESSAGE=y
|
||||||
|
|
||||||
get_uris "$@"
|
get_uris "$@"
|
||||||
@ -618,6 +628,7 @@ elif [ "$option" == "download" ]; then
|
|||||||
elif [ "$option" == "source" ]; then
|
elif [ "$option" == "source" ]; then
|
||||||
msg
|
msg
|
||||||
msg "Working... this may take a while." "normal"
|
msg "Working... this may take a while." "normal"
|
||||||
|
msg "正在工作中,请稍等" "normal"
|
||||||
REMOVE_WORKING_MESSAGE=y
|
REMOVE_WORKING_MESSAGE=y
|
||||||
|
|
||||||
get_uris "$@"
|
get_uris "$@"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user