~ubuntu-branches/ubuntu/oneiric/localization-config/oneiric

« back to all changes in this revision

Viewing changes to base-config/menu/localization-config-postinst

  • Committer: Bazaar Package Importer
  • Author(s): Konstantinos Margaritis
  • Date: 2004-12-10 19:10:18 UTC
  • Revision ID: james.westby@ubuntu.com-20041210191018-wdjfbljdie570dld
Tags: 0.109
* Translations
  - Added Finnish by Tapio Lehtonen. Closes: #281040
  - Fixed Spanish translation (was too long). Closes: #284570

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# Call update-locale-config with -p option to do
 
3
# debconf preseeding (mainly for dictionaries-common
 
4
# and X.
 
5
 
 
6
set -e
 
7
 
 
8
DEBUG=""
 
9
 
 
10
if [ ! -z ${DEBCONF_DEBUG} ]; then
 
11
        echo "Starting Post-Install Localization procedure for $LANG"
 
12
                DEBUG="--debug"
 
13
                fi
 
14
        
 
15
if [ -x /usr/sbin/update-locale-config ]; then 
 
16
    case $LANG in
 
17
    C|POSIX)
 
18
        ;;
 
19
    ?*)
 
20
        /usr/sbin/update-locale-config ${DEBUG} ${LANG}
 
21
        ;;
 
22
    esac
 
23
else
 
24
   echo "Error: could not find script: /usr/sbin/update-locale-config"
 
25
   exit 1
 
26
fi
 
27