summaryrefslogtreecommitdiffstats
path: root/lib/locale.sh
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2014-02-25 17:20:26 (EST)
committer P. J. McDermott <pjm@nac.net>2014-02-25 17:20:26 (EST)
commit812c1756ff91c55b4b664b1e3c24a4b6038b12c1 (patch)
tree6ae72fd9a0a8505c453d208c0395ea988d6844d1 /lib/locale.sh
parentac2e2808b0f734947654614076af94c62044bf6a (diff)
oh_set_text_domain(): Rename and remove parameter.
Diffstat (limited to 'lib/locale.sh')
-rw-r--r--lib/locale.sh8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/locale.sh b/lib/locale.sh
index bf79507..57843cd 100644
--- a/lib/locale.sh
+++ b/lib/locale.sh
@@ -26,14 +26,8 @@ _OH_DEFAULT_LOCALE='en_US'
_OH_TEXT_DOMAIN='opkhelper'
_OH_LOCALE_PATH='@@LOCALEDIR@@/%s/LC_MESSAGES/%s.ms'
-oh_set_text_domain()
+oh_load_locale()
{
- if [ ${#} -eq 1 ]; then
- _OH_TEXT_DOMAIN="${1}"
- else
- return 125
- fi
-
# Make sure LC_MESSAGES is set.
if [ -z "${LC_MESSAGES}" ]; then
if [ -n "${LC_ALL}" ]; then