From 4e536f2a102b8a16830b5a7e32c8c59ec755524c Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Sun, 4 Jan 2009 10:04:32 +0000 Subject: [PATCH] Copy locale files into the bundle. Originally committed to SVN as r2637. --- scripts/osx-bundle.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/osx-bundle.sh b/scripts/osx-bundle.sh index fb39858a1..f18a53c15 100755 --- a/scripts/osx-bundle.sh +++ b/scripts/osx-bundle.sh @@ -33,6 +33,17 @@ cp ${SKEL_DIR}/Contents/Resources/etc/fonts/fonts.* ${PKG_DIR}/Contents/Resource cp ${SKEL_DIR}/Contents/Resources/etc/fonts/conf.d/*.conf ${PKG_DIR}/Contents/Resources/etc/fonts/conf.d cat ${SKEL_DIR}/Contents/Info.plist |sed -f scripts/osx-bundle.sed > ${PKG_DIR}/Contents/Info.plist +echo +echo "---- Copying locale files ----" +for i in `cat po/LINGUAS`; do + if test -f "po/${i}.gmo"; then + mkdir -v ${PKG_DIR}/Contents/Resources/${i}.lproj; + cp -v po/${i}.gmo ${PKG_DIR}/Contents/Resources//${i}.lproj/aegisub.po; + else + echo "${i}.gmo not found!" + fi +done + echo echo "---- Binaries ----" cp -v aegisub/.libs/aegisub ${PKG_DIR}/Contents/MacOS