few fix and typoes
This commit is contained in:
@@ -20,20 +20,20 @@
|
||||
# Character table (ISO or UTF)
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
export VER_conf_locale^="0.1.0"
|
||||
export VER_conf_locale="0.1.0"
|
||||
|
||||
conf_locale()
|
||||
{
|
||||
local gen_fname=/etc/locale.gen
|
||||
backupdist $gen_fname
|
||||
|
||||
|
||||
# Adding locales not yet enabled
|
||||
for loc in $LOCALESET; do
|
||||
prnt I "Activation de la locale ${loc}..."
|
||||
sed -i "/^# $loc /s/^# //" $gen_fname
|
||||
done
|
||||
unset loc
|
||||
|
||||
|
||||
# Removing locales not in the list
|
||||
while IFS= read -r line; do
|
||||
if [[ ! $(echo $LOCALESET | grep $line) ]]; then
|
||||
@@ -41,7 +41,7 @@ conf_locale()
|
||||
fi
|
||||
done
|
||||
unset $gen_fname
|
||||
|
||||
|
||||
prnt I "Régénération du cache de locale..."
|
||||
locale-gen
|
||||
|
||||
|
||||
Reference in New Issue
Block a user