Revize 1655
Přidáno uživatelem Ondřej Fibich před asi 12 roky(ů)
freenetis/branches/testing/db_upgrades/upgrade_1.0.0~rc9.php | ||
---|---|---|
|
||
/**
|
||
* Creates new structure for traffic logging and
|
||
* transform data from precious structure.
|
||
* transform data from previous structure.
|
||
*
|
||
* @author Ondřej Fibich <ondrej.fibich@google.com>
|
||
* @return boolean
|
freenetis/branches/testing/application/vendors/deb/freenetis/postinst | ||
---|---|---|
|
||
echo "Preparing locales"
|
||
|
||
# list of required locales for FreenetIS -> add some for different language muttation
|
||
# list of required locales for FreenetIS -> add some for different language mutation
|
||
locales=(en_US.UTF-8 cs_CZ.UTF-8)
|
||
locales_lowered=(en_US.utf8 cs_CZ.utf8)
|
||
|
||
... | ... | |
|
||
if [ -f "/etc/locale.gen" ]; then # Debian
|
||
loc_str_esc="${loc_str//\//\\/}"
|
||
sed 's/# $loc_str_esc/$loc_str_esc/' /etc/locale.gen > /tmp/fn_locale.gen
|
||
mv /tmp/fn_locale.gen /etc/locale.gen
|
||
sed -e "s/^# $loc_str_esc/$loc_str_esc/" < /etc/locale.gen > /etc/locale.gen.tmp
|
||
mv -f /etc/locale.gen.tmp /etc/locale.gen
|
||
elif [ -d "/var/lib/locales/supported.d" ]; then # Ubuntu
|
||
debian=0
|
||
short_cut=`echo $loc | cut -f1 -d'_'`
|
Také k dispozici: Unified diff
Oprava:
- oprava generovani locale u freenetis baliku (#279)