Added target for localization bundle

This commit is contained in:
Matt Coneybeare
2014-09-17 14:20:41 -04:00
parent c65800b889
commit 52188a1ffd
45 changed files with 615 additions and 165 deletions

View File

@@ -621,7 +621,8 @@ public enum ArmchairKey: String, Printable {
public var description : String {
get {
return self.rawValue
return self.toRaw()
// return self.rawValue // Changes to rawValue in Xcode 6.1 beta 2
}
}
}
@@ -1330,7 +1331,7 @@ public class Manager : ArmchairManager {
//Use the standard openUrl method
} else {
let url = NSURL(string: reviewURLString())
UIApplication.sharedApplication().openURL(url!)
UIApplication.sharedApplication().openURL(url)
}
if UIDevice.currentDevice().model.rangeOfString("Simulator") != nil {
@@ -1560,6 +1561,7 @@ public class Manager : ArmchairManager {
private func bundle() -> NSBundle? {
var bundle: NSBundle? = nil
if useMainAppBundleForLocalizations {
bundle = NSBundle.mainBundle()
} else {

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>com.armchair.$(PRODUCT_NAME:rfc1034identifier)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2014 Armchair. All rights reserved.</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>