From 1f812448dfcc22a4eae00ee9e1f839e8cca759a2 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 12 Mar 2019 00:59:39 -0400 Subject: ob_error(), ob_warn(), ob_info(): Internationalize --- (limited to 'lib') diff --git a/lib/output.sh b/lib/output.sh index bd56715..cde8cef 100644 --- a/lib/output.sh +++ b/lib/output.sh @@ -34,7 +34,7 @@ ob_error() local format="${1}" shift 1 - printf '%s: Error: %s\n' "${0##*/}" "${@}" >&2 + printf "$(_get_msg 'output_error_format')\n" "${0##*/}" "${@}" >&2 exit 1 } @@ -54,7 +54,7 @@ ob_warn() local format="${1}" shift 1 - printf '%s: Warning: %s\n' "${0##*/}" "${@}" >&2 + printf "$(_get_msg 'output_warning_format')\n" "${0##*/}" "${@}" >&2 return 0 } @@ -74,7 +74,7 @@ ob_info() local format="${1}" shift 1 - printf '%s: %s\n' "${0##*/}" "${@}" >&2 + printf "$(_get_msg 'output_info_format')\n" "${0##*/}" "${@}" >&2 return 0 } -- cgit v0.9.1