diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-01-20 18:02:57 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-01-20 18:02:57 +0000 |
commit | 039447dc55942416d4888a5d869598ac26f99d51 (patch) | |
tree | c9a55bd51451612f936808a1cf763be3b6497a5b /tools | |
parent | 2bbbcd5bdbfadbe0d04a74188eaff243a0e92031 (diff) |
actually make i18n work on OS X, and update osx_build to install .mo files (for GTK+ too)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@6525 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/osx_packaging/osx_build | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/tools/osx_packaging/osx_build b/tools/osx_packaging/osx_build index c4e79cf236..d0a338c86c 100755 --- a/tools/osx_packaging/osx_build +++ b/tools/osx_packaging/osx_build @@ -30,7 +30,7 @@ while [ $# -gt 0 ] ; do APPNAME=Ardour ; shift ;; --mixbus) MIXBUS=1; - WITH_NLS= ; + WITH_NLS=1 ; SAE= ; INTERNAL_JACK=; WITH_LADSPA=; @@ -38,7 +38,7 @@ while [ $# -gt 0 ] ; do PRODUCT_PKG_DIR=MixBus; APPNAME=Mixbus ; shift ;; - --public) WITH_NLS= ; + --public) WITH_NLS=1 ; SAE= ; INTERNAL_JACK=; WITH_LADSPA=1; @@ -212,11 +212,34 @@ fi # copy locale files if test x$WITH_NLS != x ; then echo "NLS support ..." - for file in ../../gtk2_ardour/*.mo + echo "I hope you remembered to run scons msgupdate!" + LINGUAS= + for file in ../../gtk2_ardour/*.mo do lang=`basename $file | sed 's/\.mo//'` mkdir -p $Locale/$lang/LC_MESSAGES cp $file $Locale/$lang/LC_MESSAGES/gtk2_ardour.mo + LINGUAS="$LINGUAS $lang" + done + for file in ../../libs/ardour/*.mo + do + lang=`basename $file | sed 's/\.mo//'` + mkdir -p $Locale/$lang/LC_MESSAGES + cp $file $Locale/$lang/LC_MESSAGES/libardour.mo + done + for l in $LINGUAS + do + if [ -d $GTKQUARTZ_ROOT/share/locale/$l ] ; then + echo "Copying GTK i18n files for $l..." + cp -r $GTKQUARTZ_ROOT/share/locale/$l $Locale + else + # try with just the language spec + just_lang=`echo $l | sed 's/_[A-Z][A-Z]$//'` + if [ -d $GTKQUARTZ_ROOT/share/locale/$just_lang ] ; then + echo "Copying GTK i18n files for $just_lang..." + cp -r $GTKQUARTZ_ROOT/share/locale/$just_lang $Locale + fi + fi done else echo "Skipping NLS support" @@ -453,6 +476,7 @@ else fi echo "Building DMG ..." +exit 0 # UC_DMG=$APPNAME-${release_version}-${svn_version}-UC.dmg # FINAL_DMG=$APPNAME-${release_version}-${svn_version}.dmg |