summaryrefslogtreecommitdiff
path: root/tools/linux_packaging/build
diff options
context:
space:
mode:
Diffstat (limited to 'tools/linux_packaging/build')
-rwxr-xr-xtools/linux_packaging/build26
1 files changed, 26 insertions, 0 deletions
diff --git a/tools/linux_packaging/build b/tools/linux_packaging/build
index a8e2d6a35c..1466e78418 100755
--- a/tools/linux_packaging/build
+++ b/tools/linux_packaging/build
@@ -284,6 +284,10 @@ if test x$WITH_NLS != x ; then
cp $file $Locale/$lang/LC_MESSAGES/libardour.mo
done
+ #
+ # copy any translations from the GTK stack
+ #
+
GTK_MESSAGES="atk10.mo gdk-pixbuf.mo gtk20-properties.mo gtk20.mo atk10.mo glib20.mo"
GTKLOCALEROOT=$GTKSTACK_ROOT/share/locale
@@ -301,6 +305,28 @@ if test x$WITH_NLS != x ; then
fi
done
done
+
+ #
+ # now any translations from the Ardour stack
+ #
+
+ ARDOURSTACK_MESSAGES="libgnomecanvas-2.0.mo"
+ ARDOURSTACK_LOCALEROOT=$ARDOURSTACK_ROOT/share/local
+
+ for l in $LINGUAS ; do
+ for MO in $ARDOURSTACK_MESSAGES ; do
+ if [ -f $ARDOURSTACK_LOCALEROOT/$l/LC_MESSAGES/$MO ] ; then
+ cp $ARDOURSTACK_LOCALEROOT/$l/LC_MESSAGES/$MO $Locale/$l/LC_MESSAGES
+ else
+ # try with just the language spec
+ just_lang=`echo $l | sed 's/_[A-Z][A-Z]$//'`
+ if [ -f $ARDOURSTACK_LOCALEROOT/$just_lang/LC_MESSAGES/$MO ] ; then
+ cp $ARDOURSTACK_LOCALEROOT/$just_lang/LC_MESSAGES/$MO $Locale/$just_lang/LC_MESSAGES
+ fi
+ fi
+ done
+ done
+
else
echo "Skipping NLS support"
fi