diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/locale.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/locale.sh b/lib/locale.sh index 1c531df..c5790f6 100644 --- a/lib/locale.sh +++ b/lib/locale.sh @@ -40,8 +40,13 @@ _ob_try_load_messages() shift 1 || _ob_abort local ms= - ms="$(printf "${_OB_LOCALE_PATH}" \ - "${locale}" "${_ob_text_domain}")" + if [ x"${OB_EXE_BUILDDIR:+set}" = 'xset' ]; then # Set and not null + ms="${OB_EXE_BUILDDIR}" + ms="${ms}/locale/${locale}/${_ob_text_domain}.ms" + else + ms="${LOCALEDIR}" + ms="${ms}/${locale}/LC_MESSAGES/${_ob_text_domain}.ms" + fi # POSIX on the dot utility: # "If no readable file is found, a non-interactive shell shall abort" |