diff options
author | Barry Jackson <barjac@mageia.org> | 2023-01-15 13:20:29 +0000 |
---|---|---|
committer | Barry Jackson <barjac@mageia.org> | 2023-01-15 13:20:29 +0000 |
commit | a6ef65bd6f047d153567574a399bbd08f9a8b787 (patch) | |
tree | 7f7078f89197f9ded8cae569634d0acaee89a936 /remove-old-kernels | |
parent | 84bdb51a93073e3e7683b2cd1434b5d7a89d4642 (diff) | |
download | remove-old-kernels-a6ef65bd6f047d153567574a399bbd08f9a8b787.tar remove-old-kernels-a6ef65bd6f047d153567574a399bbd08f9a8b787.tar.gz remove-old-kernels-a6ef65bd6f047d153567574a399bbd08f9a8b787.tar.bz2 remove-old-kernels-a6ef65bd6f047d153567574a399bbd08f9a8b787.tar.xz remove-old-kernels-a6ef65bd6f047d153567574a399bbd08f9a8b787.zip |
fix some plural handling in rok script
- update all po/mo
Diffstat (limited to 'remove-old-kernels')
-rwxr-xr-x | remove-old-kernels | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/remove-old-kernels b/remove-old-kernels index b8eac46..d00ef54 100755 --- a/remove-old-kernels +++ b/remove-old-kernels @@ -432,11 +432,15 @@ if [[ ${nbt} -ne 0 ]] ; then (((UID))) && echo -e "${RemvCol}$(i18n "Must be root to allow removal")\n${Normal}" if [[ ${VISU} -eq 1 ]]; then plural="s"; [[ ${nbt} -eq 1 ]] && plural="" - echo "$(i18n "Command${plural} that would be used"):" + if [[ "$plural" == "s" ]]; then + echo "$(i18n "Commands that would be used"):" + else + echo "$(i18n "Command that would be used"):" + fi for f in $(tac ${TMPKTR}); do echo "urpme ${f}" done - i18n "Tap spacebar to exit" + echo "$(i18n "Tap spacebar to exit")" read -n1 echo -en "${ClearLine}" rm -f ${TMPKTR} @@ -448,8 +452,12 @@ if [[ ${nbt} -ne 0 ]] ; then echo -e "\n${KeepCol}>> $(i18n "Test mode is on - kernels will not be removed") <<${Normal}" fi plural="s"; [[ ${nbt} -eq 1 ]] && plural="" - read -p "$(i18n "Remove") \ - ${nbt} $(i18n "kernel${plural}") ?\ + if [[ "$plural" == "s" ]]; then + kernstr="$(i18n "kernels"):" + else + kernstr="$(i18n "kernel"):" + fi + read -p "$(i18n "Remove") ${nbt} $kernstr ? \ $(i18n "y/N/i (i=confirm for each)") " -n 1 response if [[ -z ${response} ]] ; then response="n" ; fi case ${response} in @@ -519,7 +527,7 @@ if [[ ${nbt} -ne 0 ]] ; then $(i18n "Kernels in") /boot/: ${NK} ${Normal}" fi -[[ $MODE == "I" ]] && { i18n "Tap spacebar to exit"; read -n1; echo -en "${ClearLine}"; } +[[ $MODE == "I" ]] && { echo $(i18n "Tap spacebar to exit"); read -n1; echo -en "${ClearLine}"; } rm -f ${TMPKTR} |