2 # Copyright 1999-2011 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
5 source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
8 if [ ${mynum} -lt 1 ] ; then
9 helpers_die "${0}: at least one argument needed"
13 [[ " ${FEATURES} " == *" force-prefix "* ]] || \
14 case "$EAPI" in 0|1|2) ED=${D} ;; esac
16 if [ ! -d "${ED}${DESTTREE}/share/locale" ] ; then
17 install -d "${ED}${DESTTREE}/share/locale/"
23 if [ -e "${x}" ] ; then
25 mydir="${ED}${DESTTREE}/share/locale/${mytiny%.*}/LC_MESSAGES"
26 if [ ! -d "${mydir}" ] ; then
29 install -m0644 "${x}" "${mydir}/${MOPREFIX}.mo"
31 echo "!!! ${0##*/}: $x does not exist" 1>&2
37 [[ $ret -ne 0 ]] && helpers_die "${0##*/} failed"