summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/locale.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/locale.sh b/lib/locale.sh
index 4ffd0bb..54bb211 100644
--- a/lib/locale.sh
+++ b/lib/locale.sh
@@ -133,12 +133,8 @@ _ob_get_msg()
{
local msgid="${1}"
shift 1 || _ob_abort
- local orig_text_domain=
- orig_text_domain="$(ob_get_text_domain)"
- ob_set_text_domain "${_OB_INTERNAL_TEXT_DOMAIN}"
- ob_get_msg "${msgid}"
- ob_set_text_domain "${orig_text_domain}"
+ eval "printf '%s' \"\${msg_${_OB_INTERNAL_TEXT_DOMAIN}_${msgid}}\""
return 0
}