summaryrefslogtreecommitdiffstats
path: root/lib/control.sh
diff options
context:
space:
mode:
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}"