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

【多语】比较表多语调整

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

+ 16 - 21
PDF Office/PDF Master/Class/KMLightMember/Controller/ComparativeTable/View/KMComparativeView/KMComparativeView.swift

@@ -32,42 +32,34 @@ class KMComparativeView: KMBaseXibView {
     var dataArray: [NSDictionary] = [
         [
             "type": 0,
-            "title": "Register Member",
+            "title": "Registered",
             "subtitle": "Free",
             "content": [
-                ["title": "Support efficient batch operation function",
+                ["title": "Basic functions like annotation and viewing",
                  "state": true],
-                ["title": "Support for document compression",
+                ["title": "Convert PDF to Office (Only first ten pages)",
                  "state": true],
-                ["title": "Create PDF from Microsoft Word, PowerPoint",
-                 "state": true],
-                ["title": "No trial watermark when entering documents",
-                 "state": false],
-                ["title": "No page limit when converting PDF to other",
+                ["title": "Save without watermark",
                  "state": false],
-                ["title": "Using the AI function",
+                ["title": "AI translate, rewrite, correction",
                  "state": false]
             ],
-            "buttonTitle": "Sign Up For Free"
+            "buttonTitle": "Sign up for Free"
         ],
         [
             "type": 1,
-            "title": "Subscription Member",
+            "title": "Yearly Plan",
             "subtitle": "$39.99",
-            "describe": "billed year, anytime unsubscribe",
+            "describe": "yearly. Cancel subscription anytime.",
             "productId": PRODUCT_1,
             "content": [
-                ["title": "Support efficient batch operation function",
-                 "state": true],
-                ["title": "Support for document compression",
+                ["title": "Enjoy all premium features",
                  "state": true],
-                ["title": "Create PDF from Microsoft Word, PowerPoint",
+                ["title": "Convert PDF to Office without limitation",
                  "state": true],
-                ["title": "No trial watermark when entering documents",
+                ["title": "Save without watermark",
                  "state": true],
-                ["title": "No page limit when converting PDF to other",
-                 "state": true],
-                ["title": "Using the AI function",
+                ["title": "AI translate, rewrite, correction",
                  "state": true]
             ],
             "buttonTitle": "Subscribe Now"
@@ -117,7 +109,10 @@ class KMComparativeView: KMBaseXibView {
     
     override func updateLanguage() {
 //        + "  " + NSLocalizedString("Subscription", comment: ""
-        let string = NSLocalizedString("Subscription Plan: \nSubscription:USD $39.99/year", comment: "")
+        self.restoreButton.title = NSLocalizedString("Restore", comment: "")
+        self.titleLabel.stringValue = NSLocalizedString("Upgrade to Use All Features", comment: "")
+        
+        let string = NSLocalizedString("Subscription Plan:\nUSD $39.99/year", comment: "")
         let attributedString = NSMutableAttributedString.init(string: string)
         let paragraphStyle = NSMutableParagraphStyle()
         paragraphStyle.alignment = .left;

+ 2 - 2
PDF Office/PDF Master/Class/KMLightMember/Controller/ComparativeTable/View/KMComparativeView/View/KMComparativeViewCollectionItem.swift

@@ -190,8 +190,8 @@ extension KMComparativeViewCollectionItem: NSCollectionViewDelegateFlowLayout {
         let paragraphStyle = NSMutableParagraphStyle()
         paragraphStyle.lineHeightMultiple = 1.32
         paragraphStyle.alignment = .left
-        let size: NSSize = string.boundingRect(with: NSSize(width: 232, height: 100), options: NSString.DrawingOptions(rawValue: 3), attributes: [NSAttributedString.Key.font : NSFont.SFProTextRegular(12), NSAttributedString.Key.paragraphStyle : paragraphStyle]).size
-        return NSSize(width: 279, height: max(20, size.height))
+        let size: NSSize = string.boundingRect(with: NSSize(width: 260, height: 100), options: NSString.DrawingOptions(rawValue: 3), attributes: [NSAttributedString.Key.font : NSFont.SFProTextRegular(12), NSAttributedString.Key.paragraphStyle : paragraphStyle]).size
+        return NSSize(width: 284, height: max(20, size.height))
     }
     
 //    public func collectionView(_ collectionView: NSCollectionView, layout collectionViewLayout: NSCollectionViewLayout, minimumLineSpacingForSectionAt section: Int) -> CGFloat {

+ 1 - 1
PDF Office/PDF Master/Class/KMLightMember/Controller/ComparativeTable/View/KMComparativeView/View/KMComparativeViewCollectionItem.xib

@@ -70,7 +70,7 @@
                                 <autoresizingMask key="autoresizingMask"/>
                             </scroller>
                         </scrollView>
-                        <imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="kad-Jv-Qsg">
+                        <imageView hidden="YES" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="kad-Jv-Qsg">
                             <rect key="frame" x="0.0" y="0.0" width="284" height="40"/>
                             <constraints>
                                 <constraint firstAttribute="height" constant="40" id="eDk-1b-RHY"/>

+ 3 - 3
PDF Office/PDF Master/Class/KMLightMember/Controller/ComparativeTable/View/KMComparativeView/View/KMComparativeViewCollectionItemItem.xib

@@ -16,7 +16,7 @@
         <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
         <customObject id="-3" userLabel="Application" customClass="NSObject"/>
         <customView id="Hz6-mo-xeY">
-            <rect key="frame" x="0.0" y="0.0" width="282" height="43"/>
+            <rect key="frame" x="0.0" y="0.0" width="284" height="43"/>
             <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
             <subviews>
                 <imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="nge-K8-16k">
@@ -28,7 +28,7 @@
                     <imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" id="2Ns-FZ-peU"/>
                 </imageView>
                 <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="77S-IT-dI0">
-                    <rect key="frame" x="22" y="14" width="246" height="16"/>
+                    <rect key="frame" x="22" y="14" width="264" height="16"/>
                     <textFieldCell key="cell" title="Label" id="6Xk-Wh-SL6">
                         <font key="font" metaFont="system"/>
                         <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
@@ -37,7 +37,7 @@
                 </textField>
             </subviews>
             <constraints>
-                <constraint firstAttribute="trailing" secondItem="77S-IT-dI0" secondAttribute="trailing" constant="16" id="3b9-75-SyX"/>
+                <constraint firstAttribute="trailing" secondItem="77S-IT-dI0" secondAttribute="trailing" id="3b9-75-SyX"/>
                 <constraint firstItem="nge-K8-16k" firstAttribute="leading" secondItem="Hz6-mo-xeY" secondAttribute="leading" id="Ceq-9s-k9T"/>
                 <constraint firstItem="77S-IT-dI0" firstAttribute="centerY" secondItem="Hz6-mo-xeY" secondAttribute="centerY" id="gIs-hi-VkU"/>
                 <constraint firstItem="nge-K8-16k" firstAttribute="centerY" secondItem="Hz6-mo-xeY" secondAttribute="centerY" id="jEN-N8-daK"/>

+ 2 - 2
PDF Office/PDF Master/Class/KMLightMember/Controller/SubscriptionView/SubscribeSuccess/View/KMSubscribeSuccessView.swift

@@ -38,8 +38,8 @@ class KMSubscribeSuccessView: KMBaseXibView {
     }
     
     override func updateLanguage() {
-        self.titleLabel.stringValue = NSLocalizedString("Subscription Success", comment: "")
-        self.subtitleLabel.stringValue = NSLocalizedString("You now have unlimited access to all premium features", comment: "")
+        self.titleLabel.stringValue = NSLocalizedString("Subscribe Successfully!", comment: "")
+        self.subtitleLabel.stringValue = NSLocalizedString("Enjoy all advanced features now", comment: "")
         self.doneButton.title = NSLocalizedString("OK", comment: "")
     }
     

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

@@ -636,7 +636,7 @@
 "Yearly Plan"     =     "Yearly Plan";
 "Free"     =     "Free";
 "Sign up for Free"     =     "Sign up for Free";
-"$79.99 yearly. Cancel subscription anytime."     =     "$79.99 yearly. Cancel subscription anytime.";
+"yearly. Cancel subscription anytime."     =     "yearly. Cancel subscription anytime.";
 "Subscription Plan:USD $39.99/year"     =     "Subscription Plan:USD $39.99/year";
 "Restore"     =     "Restore";
 "Subscribe Successfully!"     =     "Subscribe Successfully!";