PHP 8.5.2
Preview: install-language-pack Size: 516 B
//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

Directory Contents

Dirs: 0 × Files: 2

Name Size Perms Modified Actions
516 B lrwxr-xr-x 2024-07-26 08:54:19
Edit Download
1.90 KB lrwxr-xr-x 2024-07-26 08:54:19
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).