|
@@ -35,6 +35,12 @@ class KMSubscribeWaterMarkView: KMBaseXibView {
|
|
|
|
|
|
var dataArray: [[String: String]] = [[:]]
|
|
|
|
|
|
+ var type: KMSubscribeWaterMarkType? {
|
|
|
+ didSet {
|
|
|
+ self.updateLanguage()
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
var afterLoginDataArray = [
|
|
|
["title": "Save without watermark",
|
|
|
"subtitle": "When you save a document with PDF Master after editing, no watermark will be attached",
|
|
@@ -46,7 +52,7 @@ class KMSubscribeWaterMarkView: KMBaseXibView {
|
|
|
"subtitle": "Convert PDF to Office and image without any limitations, get converted files in high quality",
|
|
|
"image": "convert"],
|
|
|
["title": "Batch Processing",
|
|
|
- "subtitle": "Trial Version users can convert only 2 files at a time in batch processing.",
|
|
|
+ "subtitle": "The trial version can merge only 2 files at a time in batch processing",
|
|
|
"image": "merging"]
|
|
|
]
|
|
|
|
|
@@ -132,16 +138,21 @@ class KMSubscribeWaterMarkView: KMBaseXibView {
|
|
|
self.waterExportButton.title = NSLocalizedString("Save with Watermark", comment: "")
|
|
|
self.subscribeLabel.stringValue = NSLocalizedString("Upgrade Now", comment: "")
|
|
|
} else {
|
|
|
- self.subtitleContentHeightConstraint.constant = 60
|
|
|
+ self.subtitleContentHeightConstraint.constant = 80
|
|
|
self.collectionContentViewHeightConstraint.constant = 180
|
|
|
- self.collectionViewContentTopConstraint.constant = 96
|
|
|
+ self.collectionViewContentTopConstraint.constant = 116
|
|
|
self.titleLabel.stringValue = NSLocalizedString("Login Benefits", comment: "")
|
|
|
self.waterExportButton.title = NSLocalizedString("Save with Watermark ", comment: "")
|
|
|
self.subscribeLabel.stringValue = NSLocalizedString("Login or Sign up", comment: "")
|
|
|
}
|
|
|
// + " " + NSLocalizedString("Subscription", comment: ""
|
|
|
|
|
|
- let subtitleString = NSLocalizedString("This is a trial version. While saving, PDF Master's watermark will be added to the document.", comment: "")
|
|
|
+ var subtitleString = ""
|
|
|
+ if type == .merge {
|
|
|
+ subtitleString = NSLocalizedString("The trial version can merge only 2 files at a time in batch processing. Login or sign up PDF Master to speed your workflow!", comment: "")
|
|
|
+ } else {
|
|
|
+ subtitleString = NSLocalizedString("Login or sign up PDF Master lets you enjoy all features including annotating, text editing and page organization for FREE!", comment: "")
|
|
|
+ }
|
|
|
let paragraphStyle = NSMutableParagraphStyle()
|
|
|
paragraphStyle.lineHeightMultiple = 1.32
|
|
|
paragraphStyle.alignment = .left
|