summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-07-14 14:45:23 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-07-14 14:45:23 (EDT)
commit2336c41e9ade758b83c563f95be134984335b805 (patch)
tree1fb630bcdd9ca32676a1c7fd174db6201552af11
parentdf02bd29d5592432c7c018702415e1cd9fcfc82f (diff)
print_cmd_{summaries,usage}(): Use locale strings.
-rw-r--r--lib/cmd.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cmd.sh b/lib/cmd.sh
index 348f695..b7a881b 100644
--- a/lib/cmd.sh
+++ b/lib/cmd.sh
@@ -68,7 +68,7 @@ print_cmd_summaries()
else
printf ' %-20s ' "${cmd}"
fi
- summary="$(eval printf \'%s\' \"\$\{cmd_"${cmd}"_summary\}\")"
+ summary="$(get_msg "cmd_${cmd}_summary")"
printf '%s\n' "${summary}" | fold -s -w 56 | \
sed "2,\$s/^/${padding}/;"
done
@@ -80,7 +80,7 @@ print_cmd_usage()
cmd="${1}"
- usage="$(eval printf \'%s\' \"\$\{cmd_"${cmd}"_usage\}\")"
+ usage="$(get_msg "cmd_${cmd}_usage")"
printf 'Usage: %s %s %s\n' "${0}" "${cmd}" "${usage}"
}