forked from OSGeo/OSGeoLive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_language.sh
executable file
·86 lines (74 loc) · 2.45 KB
/
install_language.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/bin/sh
# Copyright (c) 2009-2016 The Open Source Geospatial Foundation.
# Licensed under the GNU LGPL version >= 2.1.
#
# This library is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation, either version 2.1 of the License,
# or any later version. This library is distributed in the hope that
# it will be useful, but WITHOUT ANY WARRANTY, without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU Lesser General Public License for more details, either
# in the "LICENSE.LGPL.txt" file distributed with this software or at
# web page "http://www.fsf.org/licenses/lgpl.html".
# About:
# =====
# This script will install additional language support
# Language choice was made based on the
# 1. SIL Ethnologue http://en.wikipedia.org/wiki/List_of_languages_by_number_of_native_speakers
# Note: Wu language not in the ISO list
# 2. Ubuntu Language packa available
# 3. OSGeo Chapter Presence ?
# TODO: find out which applications support which languages
#
# Running:
# =======
# Pick a different language at the login screen
#
./diskspace_probe.sh "`basename $0`" begin
####
# Start off with the Xfce keyboard layout configuration tool
### ubuntu 11.04: xfkc no longer exists:
#PACKAGES="xfkc"
PACKAGES=""
#Alternate list based on Live translations and OSGeo chapters
#https://spreadsheets.google.com/ccc?key=0AlRFyY1XenjJdFRDbjFyWHg1MlNTRm10QXk0UWEzWlE&hl=en
# English is assumed as the 1st language already installed
for CODE in \
de \
el \
en \
es \
it \
ja \
pl \
ro \
fi \
fr \
he \
hi \
ko \
pt \
th \
vi \
zh-hant \
ar \
id \
ru \
; do
#Currently simulates in order to test for packages and how much space it will take
#These meta packages also pull openoffice, so we'll have to do it the harder way
#PACKAGES="$PACKAGES language-support-$CODE language-pack-$CODE"
PACKAGES="$PACKAGES language-pack-$CODE-base language-pack-$CODE"
#Additional packages may have language packs specific to them ie: firefox
done
#Seems to not find the packages without this, might just be a quirk of the test iso
apt-get -q update
apt-get install --assume-yes -q --no-install-recommends $PACKAGES
## experiment 6.5a4 generate the iso-8859-1x locale
locale-gen en_US ISO-8859-1
locale-gen en_US ISO-8859-15
dpkg-reconfigure locales
#TODO: allow select at boot splash screen
####
./diskspace_probe.sh "`basename $0`" end