-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ADD : Macos specific files (closes #3141; closes #3143)
- Loading branch information
Showing
3 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleIconFile</key> <string>merkaartor.icns</string> | ||
<key>CFBundlePackageType</key> <string>APPL</string> | ||
<key>CFBundleGetInfoString</key> <string>Merkaartor 0.17-dev, © Bart Vanhauwaert, Chris Browet and others</string> | ||
<key>CFBundleSignature</key> <string>MERKAARTOR</string> | ||
<key>CFBundleDevelopmentRegion</key> <string>English</string> | ||
<key>CFBundleName</key> <string>merkaartor</string> | ||
<key>CFBundleExecutable</key> <string>merkaartor</string> | ||
<key>CFBundleVersion</key> <string>0.17-dev</string> | ||
<key>CFBundleShortVersionString</key> <string>0.17-dev</string> | ||
<key>CFBundleIdentifier</key> <string>org.merkaartor.app.merkaartor</string> | ||
<key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/sh | ||
# | ||
# Creates the <ln>.lproj/locversion.plist files needed by Mac OS X as to translate | ||
# the standard mac menu items. See | ||
# <http://qt.nokia.com/doc/4.6/mac-differences.html#translating-the-application-menu-and-native-dialogs> | ||
# for details. | ||
# | ||
# Written by (c) Albrecht Dre\3 <albrecht.dress@arcor.de> 2010; released under the | ||
# terms of the GPL v. 2 as usual. | ||
|
||
if test -z "$2" ; then | ||
echo "usage: $0 <bundle folder> <qm file> [<qm file> ...]" | ||
exit 1 | ||
fi | ||
|
||
BUNDLE=$1 | ||
shift | ||
for n in "$@" ; do | ||
loc=$(echo "$n" | sed -e 's/.*_\(..\)_...qm/\1/') | ||
echo "Mac locale $loc..." | ||
rm -rf "$BUNDLE/Contents/Resources/$loc.lproj" | ||
mkdir -p "$BUNDLE/Contents/Resources/$loc.lproj" | ||
cat > "$BUNDLE/Contents/Resources/$loc.lproj/locversion.plist" <<EOF | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>LprojCompatibleVersion</key> | ||
<string>123</string> | ||
<key>LprojLocale</key> | ||
<string>$loc</string> | ||
<key>LprojRevisionLevel</key> | ||
<string>1</string> | ||
<key>LprojVersion</key> | ||
<string>123</string> | ||
</dict> | ||
</plist> | ||
EOF | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters