From 2336c41e9ade758b83c563f95be134984335b805 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 14 Jul 2013 14:45:23 -0400 Subject: print_cmd_{summaries,usage}(): Use locale strings. --- (limited to 'lib') 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}" } -- cgit v0.9.1