2012-11-30 22:02:42 +01:00
|
|
|
#!/bin/bash
|
|
|
|
# libtranslate.lib -- @package@ library used to setup translations
|
|
|
|
# Copyright (C) 2012 Davide Madrisan <davide.madrisan@gmail.com>
|
|
|
|
|
|
|
|
[ "$libtranslate_is_loaded" = 1 ] || {
|
2012-12-01 22:50:46 +01:00
|
|
|
libtranslate_is_loaded=1
|
2012-11-30 22:02:42 +01:00
|
|
|
|
|
|
|
[ -z "$BASH" ] || [ ${BASH_VERSION:0:1} -lt 2 ] &&
|
|
|
|
{ echo $"this script requires bash version 2 or better" >&2 && exit 1; }
|
|
|
|
|
2012-12-01 22:50:46 +01:00
|
|
|
# do not load any other library to avoid loops
|
2012-12-01 17:54:46 +01:00
|
|
|
|
2012-11-30 22:02:42 +01:00
|
|
|
if [[ -z "$LANG" && -r /etc/sysconfig/i18n ]]; then
|
|
|
|
. /etc/sysconfig/i18n
|
|
|
|
[ "$LANG" ] && export LANG
|
|
|
|
fi
|
|
|
|
TEXTDOMAIN="@package@"; export TEXTDOMAIN
|
|
|
|
|
|
|
|
} # endif $libtranslate_is_loaded
|