From 3ae2505e90a4b9f81930e1cb8c0bae11e3d30932 Mon Sep 17 00:00:00 2001 From: waker Date: Wed, 4 May 2011 22:26:33 +0200 Subject: added localization support to portable/static builds --- scripts/portable_postbuild.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'scripts/portable_postbuild.sh') diff --git a/scripts/portable_postbuild.sh b/scripts/portable_postbuild.sh index 0ed1a186..76268386 100755 --- a/scripts/portable_postbuild.sh +++ b/scripts/portable_postbuild.sh @@ -64,6 +64,14 @@ done # icon cp ./icons/32x32/deadbeef.png $OUTDIR/ +# translations +mkdir -p $OUTDIR/locale +for i in po/*.gmo ; do + base=`basename po/$i .gmo` + mkdir -p $OUTDIR/locale/$base/LC_MESSAGES + cp $i $OUTDIR/locale/$base/LC_MESSAGES/deadbeef.mo +done + # strip if [ $OSTYPE != 'Darwin' ];then strip --strip-unneeded $OUTDIR/deadbeef -- cgit v1.2.3