Codebase list debian-goodies / a047d36
fix locale detection with LANG we need to strip the (e.g.) _CA.UTF-8 suffix from fr_CA.UTF-8 for the right manpage to load Antoine Beaupré 7 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
4646
4747 # Mirror support of man's languages
4848 if [ ! -z "$LANG" ]; then
49 LOCALE="$LANG"
50 LOCPATH="-$LANG"
51 LOCDOT=".$LANG"
49 LOCALE=$(echo $LANG | sed 's/_.*$//')
50 LOCPATH="-$LOCALE"
51 LOCDOT=".$LOCALE"
5252 fi
5353 if [ ! -z "$LC_MESSAGES" ]; then
5454 LOCALE="$LC_MESSAGES"