소스 검색

【会员系统】订单界面显示价格补充多语

wangshuai 2 일 전
부모
커밋
6ff3573203

+ 36 - 1
PDF Office/PDF Master/Class/Purchase/DMG/KMPurchaseEmbeddedWindowController.swift

@@ -1120,7 +1120,42 @@ class KMPurchaseEmbeddedWindowController: NSWindowController {
                 
                 xibInitialization()
                 priceRefresh(productsModel: _product_Info)
-                pdfReaderProLabel.stringValue = product_Info.productName //待区分多语
+                
+                func isSubscribeCode()-> Bool {//是否是订阅
+                    if(product_code == "standard-annual-subscription" ||
+                       product_code == "advanced-annual-subscription-blackFive" ||
+                       product_code == "advanced-annual-subscription-trail" ||
+                       product_code == "advanced-annual-subscription" ||
+                       product_code == "ai-subscription-year-trail" ||
+                       product_code == "ai-subscription-month") {
+                        return true
+                    }
+                    return false
+                }
+                
+                func isOneTimePurchaseCode()-> Bool { //是否是一次性购买
+                    if(product_code == "advanced-permanent-blackFive" ||
+                       product_code == "advanced-permanent") {
+                        return true
+                    }
+                    return false
+                }
+                if(_product_code == "standard-annual-subscription") {
+                    pdfReaderProLabel.stringValue = NSLocalizedString("PDF Reader Pro Standard - Annual Plan", tableName: "MemberCenterLocalizable", comment: "")
+                } else if (_product_code == "advanced-annual-subscription-blackFive" ||
+                           _product_code == "advanced-annual-subscription-trail" ||
+                           _product_code == "advanced-annual-subscription") {
+                    pdfReaderProLabel.stringValue = NSLocalizedString("PDF Reader Pro Advanced - Annual Plan", tableName: "MemberCenterLocalizable", comment: "")
+                } else if (_product_code == "ai-subscription-year-trail") {
+                    pdfReaderProLabel.stringValue = NSLocalizedString("PDF Reader Pro Al - Annual Plan", tableName: "MemberCenterLocalizable", comment: "")
+                } else if (_product_code == "ai-subscription-month") {
+                    pdfReaderProLabel.stringValue = NSLocalizedString("PDF Reader Pro Al - Monthly Plan", tableName: "MemberCenterLocalizable", comment: "")
+                } else if (_product_code == "advanced-permanent-blackFive" ||
+                           _product_code == "advanced-permanent") {
+                    pdfReaderProLabel.stringValue = NSLocalizedString("PDF Reader Pro Permanent", tableName: "MemberCenterLocalizable", comment: "")
+                } else {
+                    pdfReaderProLabel.stringValue = product_Info.productName //待区分多语
+                }
             }
         }
     }

+ 3 - 0
PDF Office/PDF Master/MemberCenter/Assets/en.lproj/MemberCenterLocalizable.strings

@@ -103,6 +103,9 @@
 "PDF Reader Pro Standard - Annual Plan" = "PDF Reader Pro Standard - Annual Plan";
 "PDF Reader Pro Advanced - Annual Plan" = "PDF Reader Pro Advanced - Annual Plan";
 "PDF Reader Pro Permanent" = "PDF Reader Pro Permanent";
+"PDF Reader Pro Al - Annual Plan" = "PDF Reader Pro Al - Annual Plan";
+"PDF Reader Pro Al - Monthly Plan" = "PDF Reader Pro Al - Monthly Plan";
+
 "Subscribe to All Access Pack to Enjoy More Expanded Features" = "Subscribe to All Access Pack to Enjoy More Expanded Features";
 "Auto-renewal | Billed yearly" = "Auto-renewal | Billed yearly";
 "(Tax Incl.)" = "(Tax Incl.)";

+ 3 - 1
PDF Office/PDF Master/MemberCenter/Assets/zh-Hans.lproj/MemberCenterLocalizable.strings

@@ -98,6 +98,8 @@
 
 "PDF Reader Pro Standard - Annual Plan" = "PDF Reader Pro 标准版 - 年订阅";
 "PDF Reader Pro Advanced - Annual Plan" = "PDF Reader Pro 高级版 - 年订阅";
+"PDF Reader Pro Al - Annual Plan" = "PDF Reader Pro - 年订阅";
+"PDF Reader Pro Al - Monthly Plan" = "PDF Reader Pro - 月订阅";
 "PDF Reader Pro Permanent" = "PDF Reader Pro 永久版";
 "Subscribe to All Access Pack to Enjoy More Expanded Features" = "升级会员套餐解锁更多功能";
 "Auto-renewal | Billed yearly" = "自动续费 | 年订阅";
@@ -178,7 +180,7 @@
 "If you have purchased multiple PDF Reader Pro Permanent in volume, check them in Account Center -> Transfer Benefits. %@" = "如您购买了多个永久版会员,可在用户中心-赠送会员中查看,%@";
 "Check Benefit" = "立即查看";
 
-"If you need to manage seats in PDF Reader Pro, please purchase the %@." = "如需团队席位管理功能,请前往购买%@";
+"If you need to manage seats in PDF Reader Pro, please purchase the %@." = "如需团队席位管理功能,请前往购买%@";
 "enterprise version" = "企业版";
 
 "You can purchase with the account linked to this email. If the email is not registered, an account will be automatically created for you upon successful purchase." = "您可以通过此邮箱关联的账户购买。如该邮箱未注册,购买后将自动为您注册。";

+ 3 - 1
PDF Office/PDF Master/MemberCenter/Assets/zh-Hant.lproj/MemberCenterLocalizable.strings

@@ -98,6 +98,8 @@
 
 "PDF Reader Pro Standard - Annual Plan" = "PDF Reader Pro 標準版 - 年訂閱";
 "PDF Reader Pro Advanced - Annual Plan" = "PDF Reader Pro 進階版 - 年訂閱";
+"PDF Reader Pro Al - Annual Plan" = "PDF Reader Pro Al - 年訂閱";
+"PDF Reader Pro Al - Monthly Plan" = "PDF Reader Pro Al - 月訂閱";
 "PDF Reader Pro Permanent" = "PDF Reader Pro 永久版";
 "Subscribe to All Access Pack to Enjoy More Expanded Features" = "升級會員套餐解鎖更多功能";
 "Auto-renewal | Billed yearly" = "自動續費 | 年訂閱";
@@ -179,7 +181,7 @@
 "If you have purchased multiple PDF Reader Pro Permanent in volume, check them in Account Center -> Transfer Benefits. %@" = "若您購買了多位永久版會員,可在用戶中心-積分會員中查看,%@";
 "Check Benefit" = "立即查看";
 
-"If you need to manage seats in PDF Reader Pro, please purchase the %@." = "如需團隊席位管理功能,請前往購買%@";
+"If you need to manage seats in PDF Reader Pro, please purchase the %@." = "如需團隊席位管理功能,請前往購買%@";
 "enterprise version" = "企業版";
 
 "You can purchase with the account linked to this email. If the email is not registered, an account will be automatically created for you upon successful purchase." = "您可以透過此郵箱關聯的帳戶購買。";