fix bundling of .mo files in OS X bundles
This commit is contained in:
parent
17cd6b4044
commit
d92feec3f3
@ -219,21 +219,42 @@ fi
|
|||||||
# copy locale files
|
# copy locale files
|
||||||
if test x$WITH_NLS != x ; then
|
if test x$WITH_NLS != x ; then
|
||||||
echo "NLS support ..."
|
echo "NLS support ..."
|
||||||
echo "I hope you remembered to run scons msgupdate!"
|
echo "I hope you remembered to run waf i18n"
|
||||||
LINGUAS=
|
LINGUAS=
|
||||||
for file in $BUILD_ROOT/gtk2_ardour/*.mo
|
|
||||||
do
|
for pkg in gtk2_ardour libs/ardour libs/gtkmm2ext ; do
|
||||||
lang=`basename $file | sed 's/\.mo//'`
|
files=`find ../../$pkg -name "*.mo"`
|
||||||
mkdir -p $Locale/$lang/LC_MESSAGES
|
|
||||||
cp $file $Locale/$lang/LC_MESSAGES/gtk2_ardour.mo
|
#
|
||||||
LINGUAS="$LINGUAS $lang"
|
# the package name is appended with a number so that
|
||||||
done
|
# it can be parallel installed during a regular install
|
||||||
for file in $BUILD_ROOT/libs/ardour/*.mo
|
# with older (and newer) versions. it is just the major
|
||||||
do
|
# number of the release (i.e. leading digits)
|
||||||
lang=`basename $file | sed 's/\.mo//'`
|
#
|
||||||
mkdir -p $Locale/$lang/LC_MESSAGES
|
|
||||||
cp $file $Locale/$lang/LC_MESSAGES/libardour.mo
|
vsuffix=`echo $release_version | sed 's/^\([0-9][0-9]*\).*/\1/'`
|
||||||
|
|
||||||
|
if [ -z "$files" ]; then
|
||||||
|
echo ""
|
||||||
|
echo "!!!! WARNING !!!! - Did not find any .mo files in ../../$pkg"
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
|
|
||||||
|
for file in $files
|
||||||
|
do
|
||||||
|
echo $file
|
||||||
|
lang=`basename $file | sed 's/\.mo//'`
|
||||||
|
mkdir -p $Locale/$lang/LC_MESSAGES
|
||||||
|
cp $file $Locale/$lang/LC_MESSAGES/`basename $pkg`$vsuffix.mo
|
||||||
|
echo copy $file to $Locale/$lang/LC_MESSAGES/`basename $pkg`$vsuffix.mo
|
||||||
|
if echo $LINGUAS | grep $lang >/dev/null 2>&1 ; then
|
||||||
|
:
|
||||||
|
else
|
||||||
|
LINGUAS="$LINGUAS $lang"
|
||||||
|
fi
|
||||||
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
for l in $LINGUAS
|
for l in $LINGUAS
|
||||||
do
|
do
|
||||||
if [ -d $GTKSTACK_ROOT/share/locale/$l ] ; then
|
if [ -d $GTKSTACK_ROOT/share/locale/$l ] ; then
|
||||||
|
Loading…
Reference in New Issue
Block a user