#! /bin/sh

set -e

case "$1" in
  remove|purge)
	#Unset all LANG
	if [ -e /etc/environment ]; then
		if grep -qs "^LANG=zh_CN.UTF-8" /etc/environment; then
        		sed -i "/^LANG=.*/d" /etc/environment
		fi
	fi
	if [ -e /etc/default/locale ]; then
		if grep -qs "^LANG=zh_CN.UTF-8" /etc/default/locale; then
        		sed -i "/^LANG=.*/d" /etc/default/locale
		fi
	fi
    ;;
esac

#DEBHELPER#
