2008-08-10 15:39:06 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# l10n.sh - load the needed localization things for all lh messages
|
2009-01-26 15:39:27 -01:00
|
|
|
# Copyright (C) 2006-2009 Daniel Baumann <daniel@debian.org>
|
2008-08-10 15:39:06 +00:00
|
|
|
#
|
|
|
|
# live-helper comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
|
|
|
|
# This is free software, and you are welcome to redistribute it
|
|
|
|
# under certain conditions; see COPYING for details.
|
|
|
|
|
2008-11-02 15:20:24 -01:00
|
|
|
if [ -x "$(which gettext.sh 2>/dev/null)" ] && Find_files /usr/share/locale/*/LC_MESSAGES/${PACKAGE}.mo
|
2008-10-29 07:36:29 -01:00
|
|
|
then
|
2008-11-13 04:06:34 -01:00
|
|
|
_L10N="true"
|
2008-10-29 07:36:29 -01:00
|
|
|
|
|
|
|
# gettext domain (.mo file name)
|
2008-11-02 15:20:24 -01:00
|
|
|
TEXTDOMAIN="${PACKAGE}"
|
2008-11-01 12:43:41 -01:00
|
|
|
export TEXTDOMAIN
|
2008-10-29 07:36:29 -01:00
|
|
|
|
|
|
|
# locale dir for gettext codes
|
2008-11-01 12:43:41 -01:00
|
|
|
TEXTDOMAINDIR="/usr/share/locale"
|
|
|
|
export TEXTDOMAINDIR
|
2008-10-29 07:36:29 -01:00
|
|
|
|
|
|
|
# load gettext functions
|
|
|
|
. gettext.sh
|
|
|
|
else
|
2008-11-13 04:06:34 -01:00
|
|
|
_L10N="false"
|
2008-10-29 07:36:29 -01:00
|
|
|
fi
|