summaryrefslogtreecommitdiffstats
path: root/lib/locale.sh
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-03-11 23:14:31 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-03-11 23:14:31 (EDT)
commit3c96056f9f00fd448972339225fd28c1ec4bd546 (patch)
tree7ae27b4590a22f4c3b5a5741f5dbdcbbd983ef00 /lib/locale.sh
parente0380430cdb4a272d3f858abc132eddc676ce58c (diff)
_ob_get_msg(): New internal function
Use it in _ob_*_msg().
Diffstat (limited to 'lib/locale.sh')
-rw-r--r--lib/locale.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/locale.sh b/lib/locale.sh
index ae3c88c..b564f7f 100644
--- a/lib/locale.sh
+++ b/lib/locale.sh
@@ -142,3 +142,17 @@ ob_get_msg()
return 0
}
+
+_ob_get_msg()
+{
+ local msgid="${1}"
+ shift 1
+ 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}"
+
+ return 0
+}