~ubuntu-core-dev/update-notifier/ubuntu

976 by Balint Reczey
Merge lp:~rbalint/update-notifier/updates-available-world-readable
1
#!/bin/sh
2
3
# we do not include ". gettext.sh" here because:
4
# a) it breaks if its not available
5
# b) the string we have here does not need it (because it has no vars)
6
eval_gettext() {
7
    if [ -x /usr/bin/gettext ]; then
8
        echo $(gettext "$1")
9
    else
10
        echo "$1"
11
    fi
12
}
13
export TEXTDOMAIN=update-notifier
14
export TEXTDOMAINDIR=/usr/share/locale
15
16
# Print the message
17
echo ""
18
eval_gettext "The list of available updates is more than a week old."
19
eval_gettext "To check for new updates run: sudo apt update"