HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/share/locales/install-language-pack
#!/bin/sh -e

if [ -z "$1" ]; then
    echo "Usage: $0 <language code> <class> [<version>]"
    exit 0
fi

# install locales for base packages (not for gnome/kde)
if [ -z "$2" ]; then
    # Update requested locales if locales-all is not installed
    if dpkg-query -s locales-all >/dev/null 2>&1 ; then
        echo "locales-all installed, skipping locales generation"
    else
        /usr/sbin/locale-gen --keep-existing "$1"
    fi
fi

# ensure that .desktop caches are up to date
dpkg-trigger gmenucache || true