From e0380430cdb4a272d3f858abc132eddc676ce58c Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 11 Mar 2019 21:26:12 -0400 Subject: Use (or plan to use) _ob_warn_msg() --- (limited to 'lib/control.sh') diff --git a/lib/control.sh b/lib/control.sh index 30c6b9c..727fafa 100644 --- a/lib/control.sh +++ b/lib/control.sh @@ -38,6 +38,9 @@ _ob_parse_control_error() file_info="$(printf '%20s(l%d):' "${file}" "${line_nr}")" fi + # 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}" @@ -283,8 +286,7 @@ ob_substvars() fi if [ ${depth} -ge ${_OB_SUBSTVARS_MAX_DEPTH} ]; then # Warn of possible recursion. - # TODO: This doesn't set the text domain. - ob_warn "$(ob_get_msg 'substvar_deep_nesting')" + _ob_warn_msg 'substvar_deep_nesting' return 1 fi old_rhs="${rhs}" -- cgit v0.9.1