diff options
author | P. 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) |
commit | 2336c41e9ade758b83c563f95be134984335b805 (patch) | |
tree | 1fb630bcdd9ca32676a1c7fd174db6201552af11 /lib | |
parent | df02bd29d5592432c7c018702415e1cd9fcfc82f (diff) |
print_cmd_{summaries,usage}(): Use locale strings.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cmd.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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}" } |