From 64cf6bb223423578b4aba393727debf0bb7295bd Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 22 Oct 2012 01:32:16 -0400 Subject: Move common load/init logic into libopkhelper. --- (limited to 'lib/common.sh') diff --git a/lib/common.sh b/lib/common.sh index 14762db..b0c465c 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -48,3 +48,15 @@ _oh_return() return ${1} } + +oh_init() +{ + ob_use locale + ob_use output + + # Since nothing other than opkhelper is supposed to use libopkhelper, we can + # do strange things like affecting application-wide locale settings from the + # library and assume that no one will play with them. + ob_set_locale_path '@@LOCALEDIR@@/%s/LC_MESSAGES/%s.ms' + ob_set_text_domain 'opkhelper' +} -- cgit v0.9.1