From a262c3f9371b695fe06826e9a82471f3f49edd53 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 04 Sep 2012 23:20:35 -0400 Subject: Add ob_get_text_domain. --- (limited to 'lib/locale.sh') 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 -- cgit v0.9.1