From ce28b93fe050f584417e758f5e72e8504609cf98 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 01 Aug 2012 04:43:53 -0400 Subject: Set locale parameters in oh_locale_set(). --- (limited to 'lib') diff --git a/lib/locale.sh b/lib/locale.sh index d30a684..824b6b7 100644 --- a/lib/locale.sh +++ b/lib/locale.sh @@ -41,10 +41,16 @@ oh_locale_set() # Try to load the locale. if [ -f "@@LOCALEDIR@@/${_locale%.*}" ]; then - . "@@LOCALEDIR@@/${_locale%.*}" + LC_ALL="${_locale%.*}" + LC_MESSAGES="${LC_ALL}" + . "@@LOCALEDIR@@/${LC_MESSAGES}" elif [ -f "@@LOCALEDIR@@/${_locale%_*}" ]; then - . "@@LOCALEDIR@@/${_locale%_*}" + LC_ALL="${_locale%_*}" + LC_MESSAGES="${LC_ALL}" + . "@@LOCALEDIR@@/${LC_MESSAGES}" else - . @@LOCALEDIR@@/en_US + LC_ALL=en_us + LC_MESSAGES="${LC_ALL}" + . "@@LOCALEDIR@@/${LC_MESSAGES}" fi } -- cgit v0.9.1