summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-07-14 15:14:52 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-07-14 15:14:52 (EDT)
commit83fe0314a62b8f80e3095dcd6a0c0e465b7dcbea (patch)
treefb8584c32ae866289c81c048d5160fb50474e582
parent98aca2b5b0cc29406925e635651f8a02500376fa (diff)
Internationalize usage message.
-rw-r--r--lib/cmd.sh2
-rw-r--r--locale/en_US/pro_archman.sh1
2 files changed, 2 insertions, 1 deletions
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 <command>'
msg_pro_archman_summary_head='Where <command> 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='[<command>]'
msg_pro_archman_cmd_include_summary='include packages described in changes files'