summaryrefslogtreecommitdiffstats
path: root/lib/control.sh
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-03-11 21:26:12 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-03-11 21:26:12 (EDT)
commite0380430cdb4a272d3f858abc132eddc676ce58c (patch)
tree9c88b010371410a756e7f602e2c100a9c8ea862d /lib/control.sh
parent3023ae350823f87b2f21a0bad0a2a11b3e58dc4c (diff)
Use (or plan to use) _ob_warn_msg()
Diffstat (limited to 'lib/control.sh')
-rw-r--r--lib/control.sh6
1 files changed, 4 insertions, 2 deletions
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}"