path: root/mcon/U/locale.U
diff options
authorManoj Srivastava <>2014-04-27 17:54:01 -0700
committerManoj Srivastava <>2014-04-27 17:54:01 -0700
commit8f5e5726134ce5b4bd436b16f367796d851df553 (patch)
tree0ce2ad130721dcf917d7f81fb8495bf0a189d266 /mcon/U/locale.U
parent02bf7be6fc0f798790ef5b2160bc89a77b909428 (diff)
Imported Upstream version 3.5-36
Diffstat (limited to 'mcon/U/locale.U')
1 files changed, 70 insertions, 0 deletions
diff --git a/mcon/U/locale.U b/mcon/U/locale.U
new file mode 100644
index 0000000..488c080
--- /dev/null
+++ b/mcon/U/locale.U
@@ -0,0 +1,70 @@
+?RCS: $Id: locale.U 167 2013-05-08 17:58:00Z rmanfredi $
+?RCS: Copyright (c) 2006, Christian Biere
+?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.
+?MAKE:locale localeexp: Getfile Loc Oldconfig Prefixit Prefixup \
+ cat prefixexp package spackage enablenls
+?MAKE: -pick add $@ %<
+?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: 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.
+?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: 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.
+?H:#define LOCALE "$locale"
+?H:#define LOCALE_EXP "$localeexp"
+: 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.
+ rp='Where do you want to put the localization files?'
+ . ./getfile
+ locale="$ans"
+ localeexp="$ansexp"
+ ;;