blob: a296ae83e7ae5768c59cc5a9d14a8b3d5ca0b008 (
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
|
--- mail/app/mozilla.in.orig Sat Jul 24 19:58:06 2004
+++ mail/app/mozilla.in Mon Dec 27 18:40:04 2004
@@ -167,12 +167,12 @@
done #others arg
#???: needs check if othersopt begin with -* ?
-if [ `expr "${_optLast}" : '.*:/.*'` -eq 0 -a \( -f "${_optLast}" -o -d "${_optLast}" \) ]; then
+if [ `expr X"${_optLast}" : 'X.*:/.*'` -eq 0 -a \( -f "${_optLast}" -o -d "${_optLast}" \) ]; then
# Last argument seems to be a local file/directory
# Check, if it is absolutely specified (ie. /home/foo/file vs. ./file)
# If it is just "relatively" (./file) specified, make it absolutely
- [ `expr "${_optLast}" : '/.*'` -eq 0 ] && _optLast="file://`pwd`/${_optLast}"
-elif [ `expr "${_optLast}" : '.*:/.*'` -gt 0 -o -n "${_optOthers}" ]; then #???? like before...
+ [ `expr X"${_optLast}" : 'X/.*'` -eq 0 ] && _optLast="file://`pwd`/${_optLast}"
+elif [ `expr X"${_optLast}" : 'X.*:/.*'` -gt 0 -o -n "${_optOthers}" ]; then #???? like before...
_NEW_WINDOW=1
fi
################################################################ Parse Arguments
@@ -218,12 +218,31 @@
script_args="$script_args -d $2"
shift 2
;;
+ -UILocale)
+ moreargs="$moreargs -UILocale $2"
+ _done_locale="YES"
+ shift 2
+ ;;
+ -UIRegion)
+ if [ -n "${_done_locale}" ]; then
+ moreargs="$moreargs -UIRegion $2"
+ fi
+ shift 2
+ ;;
*)
moreargs="$moreargs \"$1\""
shift 1
;;
esac
done
+
+if [ ! -n "${_done_locale}" -a -n "${MOZILLA_UILOCALE}" ]; then
+ moreargs="$moreargs -UILocale ${MOZILLA_UILOCALE}"
+ if [ -n "${MOZILLA_UIREGION}" ]; then
+ moreargs="$moreargs -UIRegion ${MOZILLA_UIREGION}"
+ fi
+fi
+unset _done_locale
export MRE_HOME
eval "set -- $moreargs"
|