From 83fe0314a62b8f80e3095dcd6a0c0e465b7dcbea Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 14 Jul 2013 15:14:52 -0400 Subject: Internationalize usage message. --- diff --git a/lib/cmd.sh b/lib/cmd.sh index 1df69bd..40bb992 100644 --- a/lib/cmd.sh +++ b/lib/cmd.sh @@ -64,7 +64,7 @@ print_cmd_usage() usage="$(get_msg "cmd_${cmd}_usage")" - printf 'Usage: %s %s %s\n' "${0}" "${cmd}" "${usage}" + printf "$(get_msg 'cmd_usage')\n" "${0}" "${cmd}" "${usage}" } is_cmd() diff --git a/locale/en_US/pro_archman.sh b/locale/en_US/pro_archman.sh index a62aa7d..4e0acc6 100644 --- a/locale/en_US/pro_archman.sh +++ b/locale/en_US/pro_archman.sh @@ -20,6 +20,7 @@ msg_pro_archman_cmd_not_found='Command "%s" not found' msg_pro_archman_usage='Usage: %s ' msg_pro_archman_summary_head='Where is one of:' +msg_pro_archman_cmd_usage='Usage: %s %s %s' msg_pro_archman_cmd_help_summary='print this help message' msg_pro_archman_cmd_help_usage='[]' msg_pro_archman_cmd_include_summary='include packages described in changes files' -- cgit v0.9.1