summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-09-04 23:20:35 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-09-04 23:20:35 (EDT)
commita262c3f9371b695fe06826e9a82471f3f49edd53 (patch)
tree0de6b6b81b5e42bbf644d3d98c7949fbb07460de /lib
parent042f369c110fc184ba71d180ccfbb107bbf8064a (diff)
Add ob_get_text_domain.
Diffstat (limited to 'lib')
-rw-r--r--lib/locale.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/locale.sh b/lib/locale.sh
index f23f3d1..6c2baad 100644
--- a/lib/locale.sh
+++ b/lib/locale.sh
@@ -25,6 +25,16 @@ _OB_LOCALE_SM='true'
_OB_DEFAULT_LOCALE='en_US'
_OB_TEXT_DOMAIN=
+ob_get_text_domain()
+{
+ if [ ${#} -ne 0 ]; then
+ return 125
+ fi
+
+ echo "${_OB_TEXT_DOMAIN}"
+ return 0
+}
+
ob_set_text_domain()
{
if [ ${#} -eq 1 ]; then