Просмотр исходного кода

【多语】权益弹窗多语调整

lizhe 1 год назад
Родитель
Сommit
bc48ab94cd

+ 13 - 7
PDF Office/PDF Master/Class/KMLightMember/Controller/SubscriptionView/WaterMark/View/KMSubscribeWaterMarkView.swift

@@ -32,14 +32,14 @@ class KMSubscribeWaterMarkView: KMBaseXibView {
     var restoreAction: KMSubscribeWaterMarkViewWaterMarkRestoreAction?
     
     var dataArray = [
-        ["title": "No trial watermark when exporting documents",
-         "subtitle": "The trial watermark will be added when you save the file after trying the advanced features",
+        ["title": "Save without watermark",
+         "subtitle": "When you save a document with PDF Master after editing, no watermark will be attached",
          "image": "remove watermark"],
-        ["title": "No page limit when converting PDF to other formats",
-         "subtitle": "The trial watermark will be added when you save the file after trying the advanced features",
+        ["title": "Convert PDF without limitation",
+         "subtitle": "Convert PDF to Office and image without any limitations, get converted files in high quality",
          "image": "convert"],
-        ["title": "Using the AI function",
-         "subtitle": "The trial watermark will be added when you save the file after trying the advanced features",
+        ["title": "AI assitant",
+         "subtitle": "Support AI translation, AI rewriting, AI correction",
          "image": "ai"]
     ]
     
@@ -79,11 +79,17 @@ class KMSubscribeWaterMarkView: KMBaseXibView {
         self.restoreButton.font = NSFont.SFProTextRegular(14)
         
         self.lineView.backgroundColor(NSColor(hex: "#000000", alpha: 0.1))
+        
+        self.textView.frame = (self.textView.enclosingScrollView?.contentView.bounds)!
+        self.textView.autoresizingMask = [.width, .height]
     }
     
     override func updateLanguage() {
+        self.titleLabel.stringValue = NSLocalizedString("Subscription Benefits", comment: "")
+        self.waterExportButton.title = NSLocalizedString("Save with Watermark", comment: "")
+        self.subscribeButton.title = NSLocalizedString("Subscribe", comment: "")
 //        + "  " + NSLocalizedString("Subscription", comment: ""
-        let string = NSLocalizedString("Subscription Plan: \nSubscription:USD $39.99/year", comment: "")
+        let string = NSLocalizedString("Subscription Plan:\nSubscription:USD $39.99/year", comment: "")
         let attributedString = NSMutableAttributedString.init(string: string)
         let paragraphStyle = NSMutableParagraphStyle()
         paragraphStyle.alignment = .left;

+ 1 - 1
PDF Office/PDF Master/Strings/en.lproj/Localizable.strings

@@ -652,7 +652,7 @@
 "AI assitant"     =     "AI assitant";
 "Support AI translation, AI rewriting, AI correction"     =     "Support AI translation, AI rewriting, AI correction";
 "Save with Watermark"     =     "Save with Watermark";
-"Subscription Plan:USD $39.99/year"     =     "Subscription Plan:USD $39.99/year";
+"Subscription Plan:\nUSD $39.99/year"     =     "Subscription Plan:\nUSD $39.99/year";
 "$39.9 / year"     =     "$39.9 / year";
 "50% off"     =     "50% off";