bump to version 0.99.18
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
# Configure locale
|
||||
# This file is part of the init.sh project
|
||||
# Copyright (c) 2019-2021 Geoffray Levasseur <fatalerrors@geoffray-levasseur.org>
|
||||
# Copyright (c) 2019-2022 Geoffray Levasseur <fatalerrors@geoffray-levasseur.org>
|
||||
# ------------------------------------------------------------------------------
|
||||
# This file is distributed under 3-clause BSD license.
|
||||
# The complete license agreement can be obtained at:
|
||||
@@ -11,7 +11,7 @@
|
||||
# * LOCALESET: List of locale that will be supported by system
|
||||
# * SYSLOCALE: Default system wide locale
|
||||
#
|
||||
# Both case will be formated in that way (with exemple for French:
|
||||
# Both case will be formated in that way (with exemple for French):
|
||||
# fr_FR.UTF-8
|
||||
# ^ ^ ^
|
||||
# | | |
|
||||
@@ -20,7 +20,7 @@
|
||||
# Character table (ISO or UTF)
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
export VER_conf_locale="0.1.5"
|
||||
export VER_conf_locale="0.1.6"
|
||||
|
||||
conf_locale()
|
||||
{
|
||||
@@ -50,15 +50,16 @@ conf_locale()
|
||||
locale-gen
|
||||
|
||||
prnt I "Defining system language..."
|
||||
[[ -z $SYSLOCALE ]] &&
|
||||
if [[ -z $SYSLOCALE ]]; then
|
||||
export SYSLOCALE=C
|
||||
fi
|
||||
|
||||
local sys_fname=/etc/default/locale
|
||||
backup_dist $sys_fname
|
||||
tag_file $sys_fname
|
||||
echo "LANG=$SYSLOCALE" >> $sys_fname
|
||||
|
||||
# We define all LC_* but LC_ALL as recommended by GNU
|
||||
# We define all LC_* but not LC_ALL as recommended by GNU
|
||||
for cfg in ADDRESS IDENTIFICATION MEASUREMENT MONETARY NAME NUMERIC PAPER \
|
||||
TELEPHONE TIME; do
|
||||
echo "LC_$cfg=$SYSLOCALE" >> $sys_fname
|
||||
@@ -68,7 +69,7 @@ conf_locale()
|
||||
precheck_conf_locale()
|
||||
{
|
||||
if [[ -z $LOCALESET ]]; then
|
||||
prnt W "No locales definition!"
|
||||
prnt W "No locales definition! No locale other than C will be avialable!"
|
||||
else
|
||||
prnt m "Available locales will be: $LOCALESET"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user