summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-09-30 16:35:50 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-09-30 16:35:50 (EDT)
commit5a6a41c1f422310f1b865ddfd2257743f51d8794 (patch)
tree2fdcc824bf0077ad8e9fb8e5db4dc4b2abdd945f
parent0d3165e0b79d94df943c2f1a08e23e085e76c241 (diff)
Factor out name of internal text domain.
-rw-r--r--lib/changelog.sh4
-rw-r--r--lib/control.sh2
-rw-r--r--lib/locale.sh1
-rw-r--r--lib/package.sh4
4 files changed, 6 insertions, 5 deletions
diff --git a/lib/changelog.sh b/lib/changelog.sh
index c1b3748..732d7d2 100644
--- a/lib/changelog.sh
+++ b/lib/changelog.sh
@@ -178,7 +178,7 @@ _ob_parse_changelog_error()
"${_obpche_line_nr}")"
_obpche_orig_text_domain="$(ob_get_text_domain)"
- ob_set_text_domain 'libopkbuild.1'
+ ob_set_text_domain "${_OB_INTERNAL_TEXT_DOMAIN}"
oh_warn "${_obpche_file_info} $(ob_get_msg "${_obpche_msg_id}")" "${@}"
@@ -193,7 +193,7 @@ _ob_get_changelog_expect_str()
_ob_local _obgces_orig_text_domain
_obgces_orig_text_domain="$(ob_get_text_domain)"
- ob_set_text_domain 'libopkbuild.1'
+ ob_set_text_domain "${_OB_INTERNAL_TEXT_DOMAIN}"
echo "$(ob_get_msg "changelog_expect_${1}")"
diff --git a/lib/control.sh b/lib/control.sh
index 8c36701..bf0df38 100644
--- a/lib/control.sh
+++ b/lib/control.sh
@@ -134,7 +134,7 @@ _ob_parse_control_error()
fi
_obpcoe_orig_text_domain="$(ob_get_text_domain)"
- ob_set_text_domain 'libopkbuild.1'
+ ob_set_text_domain "${_OB_INTERNAL_TEXT_DOMAIN}"
oh_warn "${_obpcoe_file_info} $(ob_get_msg "${_obpcoe_msg_id}")" "${@}"
diff --git a/lib/locale.sh b/lib/locale.sh
index fcf7b63..6f46261 100644
--- a/lib/locale.sh
+++ b/lib/locale.sh
@@ -23,6 +23,7 @@ _OB_LOCALE_SM='true'
ob_use output
_OB_DEFAULT_LOCALE='en_US'
+_OB_INTERNAL_TEXT_DOMAIN='libopkbuild_1'
_OB_TEXT_DOMAIN=
_OB_LOCALE_PATH='@@LOCALEDIR@@/%s/LC_MESSAGES/%s.ms'
diff --git a/lib/package.sh b/lib/package.sh
index 5322ad6..aa0d029 100644
--- a/lib/package.sh
+++ b/lib/package.sh
@@ -51,7 +51,7 @@ ob_init_package()
if [ -z "${_OB_PACKAGE_FORMAT}" ]; then
_obip_orig_text_domain="$(ob_get_text_domain)"
- ob_set_text_domain 'libopkbuild.1'
+ ob_set_text_domain "${_OB_INTERNAL_TEXT_DOMAIN}"
ob_warn "$(ob_get_msg 'unable_to_detect_package_format')"
ob_set_text_domain "${_obip_orig_text_domain}"
_ob_return 1
@@ -152,7 +152,7 @@ ob_get_binary_packages()
_ob_package_do 'get_binary_packages'
_obgbpk_orig_text_domain="$(ob_get_text_domain)"
- ob_set_text_domain 'libopkbuild.1'
+ ob_set_text_domain "${_OB_INTERNAL_TEXT_DOMAIN}"
_obgbpk_pkgs_clean=' '