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

« back to all changes in this revision

Viewing changes to data/notify-updates-outdated

  • Committer: Balint Reczey
  • Date: 2019-09-20 20:02:13 UTC
  • mfrom: (975.1.4 master)
  • Revision ID: balint.reczey@canonical.com-20190920200213-8mx0d8aitaf1xo9c
MergeĀ lp:~rbalint/update-notifier/updates-available-world-readable

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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"