mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
add addons translation
This commit is contained in:
parent
39eca5adab
commit
2f68ae0446
@ -13,8 +13,11 @@ function availableAddons() {
|
|||||||
checkAddonExist "${ADDON}" "${1}" "${2}" || continue
|
checkAddonExist "${ADDON}" "${1}" "${2}" || continue
|
||||||
SYSTEM=$(readConfigKey "system" "${D}/manifest.yml")
|
SYSTEM=$(readConfigKey "system" "${D}/manifest.yml")
|
||||||
[ "${SYSTEM}" = "true" ] && continue
|
[ "${SYSTEM}" = "true" ] && continue
|
||||||
DESC="$(readConfigKey "description" "${D}/manifest.yml")"
|
LOCALE="${LC_ALL%%.*}"
|
||||||
echo -e "${ADDON}\t${DESC}"
|
DESC=""
|
||||||
|
[ -z "${DESC}" ] && DESC="$(readConfigKey "description.${LOCALE:-"en_US"}" "${D}/manifest.yml")"
|
||||||
|
[ -z "${DESC}" ] && DESC="$(readConfigKey "description.en_US" "${D}/manifest.yml")"
|
||||||
|
echo -e "${ADDON}\t${DESC:-"unknown"}"
|
||||||
done < <(find "${ADDONS_PATH}" -maxdepth 1 -type d | sort)
|
done < <(find "${ADDONS_PATH}" -maxdepth 1 -type d | sort)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user