summaryrefslogtreecommitdiff
path: root/mcon/U/locale.U
blob: 659c827b58fe52f26baf07e53d04e80946385f72 (plain)
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
?RCS: $Id$
?RCS:
?RCS: Copyright (c) 2006, Christian Biere
?RCS:
?RCS: You may redistribute only under the terms of the Artistic License,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?RCS: that same Artistic License; a copy of which may be found at the root
?RCS: of the source tree for dist 4.0.
?RCS:
?MAKE:locale localeexp: Getfile Loc Oldconfig Prefixit Prefixup \
	cat prefixexp package spackage enablenls
?MAKE:	-pick add $@ %<
?Y:TOP
?S:locale:
?S:	This variable holds the name of the directory in which the user wants
?S:	to put locale library files for the package in question.  It is most
?S:	often a local directory such as /usr/share/locale. Programs using this
?S:	variable must be prepared to deal with filename expansion.
?S:	Only meaningful when $enablenls holds true.
?S:.
?S:localeexp:
?S:	This variable is the same as the locale variable, but is filename expanded
?S:	at configuration time, for convenient use in your makefiles.
?S:	Only meaningful when $enablenls holds true.
?S:.
?C:LOCALE:
?C:	This symbol holds the place where localization files for the package
?C:	are expected to be found.  Be prepared to use ~name expansion, or rely
?C:	on LOCALE_EXP to have an expanded value computed at configuration time.
?C:	Only meaningful when ENABLE_NLS is defined.
?C:.
?C:LOCALE_EXP:
?C:	This symbol holds the possibly ~name expanded place where localization
?C:	files for the package are expected to be found.
?C:	Only meaningful when ENABLE_NLS is defined.
?C:.
?H:#define LOCALE "$locale"
?H:#define LOCALE_EXP "$localeexp"
?H:.
: determine where locale files go
case "$enablenls" in
false) ;;
*)
	set locale locale
	eval $prefixit
	case "$locale" in
	'')
		dflt=`./loc . "." $prefixexp/share/locale \
			/usr/share/locale /usr/local/share/locale`
		set dflt
		eval $prefixup
		;;
	*)  dflt="$locale";;
	esac
	fn=d~
	$cat <<EOM

$spackage comes with a set of files holding translations for various
languages.  Those need to be installed in order for you to benefit
from those translations and have $package localized.

EOM
	rp='Where do you want to put the localization files?'
	. ./getfile
	locale="$ans"
	localeexp="$ansexp"
	;;
esac