#!/bin/sh
# Export locale vars for Xsession (all DMs that use Xsession.d).
# Must not fail under Xsession's set -e when /etc/default/locale is missing.

if [ -r /etc/default/locale ]; then
	. /etc/default/locale
elif [ -r /etc/locale.conf ]; then
	. /etc/locale.conf
fi

for lt_var in $(env -i locale | sed -e 's/=.*$//') LANGUAGE
do
	eval "if test \"\${$lt_var+set}\" = set; then
		export $lt_var
		fi"
done
