blob: 0e61b4dae4b76a1044df394f162728bcb34b8365 (
plain) (
blame)
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
|
#!/usr/bin/env sh
prompt LANGUAGE "The language to use in the latex documents" "en-GB"
bable_language=""
case "$LANGUAGE" in
en-GB)
bable_language="british"
;;
en-*)
bable_language="english"
;;
de-DE | de-*)
bable_language="ngerman"
;;
*)
echo "'$LANGUAGE' is not yet recognized by the init.local script! Please open an issue." 1>&2
echo "set 'BABLE_LANGUAGE' to 'NOT_YET_RECOGNIZED_PLEASE_REPLACE' to help you find instances of the variable use." 1>&2
bable_language="NOT_YET_RECOGNIZED_PLEASE_REPLACE"
;;
esac
if [ "$bable_language" = "british" ]; then
todonotes_language="english"
else
todonotes_language="$bable_language"
fi
siunitx_language=""
# locales UK, US, DE (Germany), PL (Poland), FR (French), SI (Slovene) and ZA (South Africa).
case "$LANGUAGE" in
en-GB)
siunitx_language="UK" # United Kingdom
;;
en-US)
siunitx_language="US" # United States of Amerika
;;
en-ZA)
siunitx_language="ZA" # South Africa
;;
en-*)
echo "'$LANGUAGE' is not yet recognized! But it seems english, thus we set SIUNITX_LANGUAGE='UK'."
siunitx_language="UK"
;;
de-DE)
siunitx_language="DE" # Germany
;;
pl-PL)
siunitx_language="PL" # Poland
;;
fr-FR)
siunitx_language="FR" # French
;;
sl-SL)
siunitx_language="SI" # Slovene
;;
*)
echo "'$LANGUAGE' is not yet recognized by the init.local script! Please open an issue." 1>&2
echo "set 'SIUNITX_LANGUAGE' to 'NOT_YET_RECOGNIZED_PLEASE_REPLACE' to help you find instances of the variable use." 1>&2
siunitx_language="NOT_YET_RECOGNIZED_PLEASE_REPLACE"
;;
esac
prompt BABLE_LANGUAGE "The language to use for the bable package" "$bable_language" "dont_ask"
prompt DATE_TIME_LANGUAGE "The language to use for the datetime2 package" "$LANGUAGE" "dont_ask"
prompt SIUNITX_LANGUAGE "The language to use for the siunitx package" "$siunitx_language" "dont_ask"
prompt TODONOTES_LANGUAGE "The language to use for the todonotes package" "$todonotes_language" "dont_ask"
# vim: ft=sh
|