summaryrefslogtreecommitdiffstats
path: root/lib/changelog.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/changelog.sh')
-rw-r--r--lib/changelog.sh19
1 files changed, 18 insertions, 1 deletions
diff --git a/lib/changelog.sh b/lib/changelog.sh
index 7127282..d78dbd7 100644
--- a/lib/changelog.sh
+++ b/lib/changelog.sh
@@ -204,18 +204,35 @@ _ob_parse_changelog_error()
_obpche_line_nr="${2}"
_obpche_msg_id="${3}"
_obpche_file_info=
+ _obpche_orig_text_domain=
shift 3
_obpche_file_info=$(printf '%20s(l%d):' "${_obpche_file}" \
"${_obpche_line_nr}")
+ _obpche_orig_text_domain="$(ob_get_text_domain)"
+ ob_set_text_domain 'libopkbuild.1'
+
oh_warn "${_obpche_file_info} $(ob_get_msg "${_obpche_msg_id}")" "${@}"
- unset _obpche_file _obpche_line_nr _obpche_msg_id _obpche_file_info
+ ob_set_text_domain "${_obpche_orig_text_domain}"
+
+ unset _obpche_file _obpche_line_nr _obpche_msg_id \
+ _obpche_file_info _obpche_orig_text_domain=
return 0
}
_ob_get_changelog_expect_str()
{
+ _obgces_orig_text_domain=
+
+ _obgces_orig_text_domain="$(ob_get_text_domain)"
+ ob_set_text_domain 'libopkbuild.1'
+
echo "$(ob_get_msg "changelog_expect_${1}")"
+
+ ob_set_text_domain "${_obgces_orig_text_domain}"
+
+ unset _obgces_orig_text_domain
+ return 0
}