summaryrefslogtreecommitdiff
path: root/config/chroot_local-hooks/03-extra-language-cz
blob: bcc3397867281e136fad754533dab206eb171ce0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh
for file in /root/config/*; do [ -r $file ] && . $file; done

echo "$LB_PACKAGE_LISTS" | grep -qw extra_cz || exit 0

if [ "$LB_DISTRIBUTION" = "buster" ]; then
    echo "D: language cz"

    if ! [ -x /usr/bin/lxde-logout ]; then
        apt install kde-l10n-cs
    fi

    if [ -x /var/lib/dpkg/info/firefox-esr.postinst ]; then
        apt install firefox-esr-l10n-cs
    fi

    if [ -x /var/lib/dpkg/info/thunderbird.postinst ]; then
        apt install thunderbird-l10n-cs lightning-l10n-cs
    fi

    # TODO lo version number

    if [ -x /var/lib/dpkg/info/libreoffice6.3-debian-menus.postinst ]; then
        apt install libobasis6.3-cs libobasis6.3-cs-help libreoffice6.3-cs
    fi

    if [ -e /etc/skel/.config/kxkbrc ]; then
        sed -i "s|,fr|,cz,fr|g" /etc/skel/.config/kxkbrc
    fi

    if [ -x /usr/bin/kanotix-lxde-keyboard ]; then
        sed -i "s|fr|cz|g" /usr/bin/kanotix-lxde-keyboard
    fi
fi