summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-08-01 05:32:45 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-08-01 05:32:45 (EDT)
commit74635e3a60a9fb80b5dbc98e66e926771aadd0ba (patch)
treeb584d174ffd01832fdae690935360bf90c7d4241 /lib
parent659e035a68eea6cbd15e8310f81bc1b7fb38cffe (diff)
Load locale in library files that need it.
Diffstat (limited to 'lib')
-rw-r--r--lib/changelog.sh1
-rw-r--r--lib/messages.sh2
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/changelog.sh b/lib/changelog.sh
index 37ab814..4888e09 100644
--- a/lib/changelog.sh
+++ b/lib/changelog.sh
@@ -23,6 +23,7 @@
_OH_CHANGELOG_SH=true
. @@LIBDIR@@/messages
+. @@LIBDIR@@/locale
. @@LIBDIR@@/util
# Constant global parameters:
diff --git a/lib/messages.sh b/lib/messages.sh
index 7710b00..f945c62 100644
--- a/lib/messages.sh
+++ b/lib/messages.sh
@@ -22,6 +22,8 @@
[ -n "${_OH_MESSAGES_SH}" ] && return 0
_OH_MESSAGES_SH=true
+. @@LIBDIR@@/locale
+
# TODO: Which of these should print to the standard error stream – just
# oh_error() and oh_warn()?