From f0c37c2b1e6ac6b3373b62e484bd4e6f8f8d441c Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 12 Mar 2019 00:05:22 -0400 Subject: _ob_parse_changelog_error(): Use _ob_warn_msg() --- (limited to 'lib') diff --git a/lib/changelog.sh b/lib/changelog.sh index 2c64954..7cb6c0b 100644 --- a/lib/changelog.sh +++ b/lib/changelog.sh @@ -23,24 +23,15 @@ _ob_parse_changelog_error() local line_nr= local msg_id= local file_info= - local orig_text_domain= file="${1}" line_nr="${2}" msg_id="${3}" shift 3 - file_info="$(printf '%20s(l%d):' "${file}" "${line_nr}")" + file_info="$(printf '%20s(l%d)' "${file}" "${line_nr}")" - # TODO: Use _ob_warn_msg(), add "%s: " prefix to locale messages, and - # drop ":" from file_info above. - - orig_text_domain="$(ob_get_text_domain)" - ob_set_text_domain "${_OB_INTERNAL_TEXT_DOMAIN}" - - ob_warn "${file_info} $(ob_get_msg "${msg_id}")" "${@}" - - ob_set_text_domain "${orig_text_domain}" + _ob_warn_msg "${msg_id}" "${file_info}" "${@}" return 0 } -- cgit v0.9.1