+// Change language application dinamically
let path = NSBundle.mainBundle().pathForResource(language, ofType: "lproj")
let bundle = NSBundle(path: path!)
-let string = bundle?.localizedStringForKey("key", value: nil, table: nil)
+let string = bundle?.localizedStringForKey("key", value: nil, table: nil)
+// print device token of push notification
+ let characterSet: NSCharacterSet = NSCharacterSet( charactersInString: "<>" )
+ let deviceTokenString: String = ( deviceToken.description as NSString )
+ .stringByTrimmingCharactersInSet( characterSet )
+ .stringByReplacingOccurrencesOfString( " ", withString: "" ) as String
+ print("Device token: \(deviceTokenString)" )