浏览代码

【综合】AI优化版本内容同步

niehaoyu 1 年之前
父节点
当前提交
3c463bbba3

+ 6 - 12
PDF Office/PDF Master/Class/AIInfo/AIConfigWindowController/AIConfigWindowController.swift

@@ -646,21 +646,15 @@ import Cocoa
                 let fileURL = openPanel.urls.first
                 let fileSize = self.getFileSize(atPath: fileURL!.path)
                 
-                if self.configType == .translate {
+                if fileSize/(1024*1024) > 10 {
+                    self.fileSizeTipView.isHidden = false
+                    DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 5) {
+                        self.fileSizeTipView.isHidden = true
+                    }
+                } else {
                     self.filePath = fileURL!.path
                     self.fileEmptyTextView.string = ""
                     self.updateActionViewUI()
-                } else {
-                    if fileSize/(1024*1024) > 10 {
-                        self.fileSizeTipView.isHidden = false
-                        DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 5) {
-                            self.fileSizeTipView.isHidden = true
-                        }
-                    } else {
-                        self.filePath = fileURL!.path
-                        self.fileEmptyTextView.string = ""
-                        self.updateActionViewUI()
-                    }
                 }
             }
         }

+ 1 - 0
PDF Office/PDF Master/Class/Home/ViewController/KMHomeViewController.swift

@@ -841,6 +841,7 @@ extension KMHomeViewController {
                 windowVC.cancelHandle = { [weak self] windowVC in
                     self?.view.window?.endSheet(windowVC.window!)
                 }
+                windowVC.refreshUI()
                 self?.view.window?.beginSheet(windowVC.window!)
                 windowVC.refreshUI()
             }

+ 1 - 0
PDF Office/PDF Master/Class/PDFWindowController/ViewController/KMMainViewController.swift

@@ -845,6 +845,7 @@ let LOCKED_KEY  = "locked"
         windowVC.cancelHandle = { [weak self] windowVC in
             self?.view.window?.endSheet(windowVC.window!)
         }
+        windowVC.refreshUI()
         self.view.window?.beginSheet(windowVC.window!)
         windowVC.refreshUI()
     }

+ 1 - 1
PDF Office/PDF Master/Class/Purchase/DMG/Verification/KMVerificationInfoViewController.m

@@ -50,7 +50,7 @@
     self.continueButton.layer.masksToBounds = YES;
     self.continueButton.layer.cornerRadius = 1.0;
     
-    self.label.stringValue = NSLocalizedString(@"Successful activation!", nil);
+    self.label.stringValue = NSLocalizedString(@"Successful Activation!", nil);
     
     self.licenseLabel.stringValue = NSLocalizedString(@"License ID:", nil);
     self.deviceLabel.stringValue = NSLocalizedString(@"UUID:", nil);

+ 1 - 1
PDF Office/PDF Master/Class/Purchase/DMG/Verification/KMVerificationMessageViewController.m

@@ -561,7 +561,7 @@ NSPopoverDelegate>
     controller.enterLicenseHandle = ^(AIUserInfoController * _Nonnull vc) {
         KMVerificationWindowController *verifyVC = [KMVerificationWindowController verificationWithType:KMVerificationTypeActivateAIInfo];
         verifyVC.callback = ^{
-            [[KMPurchaseCompareWindowController sharedInstance] showWindow:nil];
+
         };
         [verifyVC showWindow:nil];
     };

+ 1 - 1
PDF Office/PDF Master/Class/Purchase/DMG/Verification/KMVerificationWindowController.m

@@ -588,7 +588,7 @@ static KMVerificationWindowController *_currentWindowController = nil;
                 }
             }
         } else {
-            blockSelf.activityAlertViewController.alertTitle = NSLocalizedString(@"Successful activation!", nil);
+            blockSelf.activityAlertViewController.alertTitle = NSLocalizedString(@"Successful Activation!", nil);
             blockSelf.activityAlertViewController.alertMessage = NSLocalizedString(@"Congrats! You can start enjoying the advanced features of PDF Reader Pro.", nil);
             [blockSelf setContentView:blockSelf.activityAlertViewController.view];
         }

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

@@ -793,7 +793,7 @@
 "If you have already purchased PDF Reader Pro for Mac, you should find your license in an email confirmation." = "Wenn Sie PDF Reader Pro für Mac bereits gekauft haben, sollten Sie Ihre Lizenz in einer E -Mail -Bestätigung finden.";
 "License Number" = "Amtliches Kennzeichen";
 "Continue" = "Weitermachen";
-"Successful activation!" = "Erfolgreiche Aktivierung!";
+"Successful Activation!" = "Erfolgreiche Aktivierung!";
 "Congrats! You are eligible to enjoy all available features in PDF Reader Pro." = "Glückwunsch! Sie können alle verfügbaren Funktionen in PDF Reader Pro genießen.";
 "Enjoy all features to annotate and edit PDF for the next 7 days." = "Genießen Sie alle Funktionen, um PDF für die nächsten 7 Tage zu kommentieren und zu bearbeiten.";
 "Activation Error" = "Aktivierungsfehler";

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

@@ -793,7 +793,7 @@
 "If you have already purchased PDF Reader Pro for Mac, you should find your license in an email confirmation." = "Si ya ha comprado PDF Reader Pro para Mac, debe encontrar su licencia en una confirmación de correo electrónico.";
 "License Number" = "Número de licencia";
 "Continue" = "Continuar";
-"Successful activation!" = "¡Activación exitosa!";
+"Successful Activation!" = "¡Activación exitosa!";
 "Congrats! You are eligible to enjoy all available features in PDF Reader Pro." = "¡Felicitaciones! Eres elegible para disfrutar de todas las funciones disponibles en PDF Reader Pro.";
 "Enjoy all features to annotate and edit PDF for the next 7 days." = "Disfrute de todas las características para anotar y editar PDF durante los próximos 7 días.";
 "Activation Error" = "Error de activación";

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

@@ -793,7 +793,7 @@
 "If you have already purchased PDF Reader Pro for Mac, you should find your license in an email confirmation." = "Si vous avez déjà acheté PDF Reader Pro pour Mac, vous devriez trouver votre licence dans une confirmation par e-mail.";
 "License Number" = "Numéro de licence";
 "Continue" = "Continuer";
-"Successful activation!" = "Activation réussie!";
+"Successful Activation!" = "Activation réussie!";
 "Congrats! You are eligible to enjoy all available features in PDF Reader Pro." = "Bravo! Vous êtes admissible à profiter de toutes les fonctionnalités disponibles dans PDF Reader Pro.";
 "Enjoy all features to annotate and edit PDF for the next 7 days." = "Profitez de toutes les fonctionnalités pour annoter et modifier PDF pour les 7 prochains jours.";
 "Activation Error" = "Erreur d'activation";

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

@@ -793,7 +793,7 @@
 "If you have already purchased PDF Reader Pro for Mac, you should find your license in an email confirmation." = "Se hai già acquistato PDF Reader Pro per Mac, dovresti trovare la tua licenza in una conferma e -mail.";
 "License Number" = "Numero di licenza";
 "Continue" = "Continua";
-"Successful activation!" = "Attivazione riuscita!";
+"Successful Activation!" = "Attivazione riuscita!";
 "Congrats! You are eligible to enjoy all available features in PDF Reader Pro." = "Congratulazioni! Hai diritto a goderti tutte le funzionalità disponibili in PDF Reader Pro.";
 "Enjoy all features to annotate and edit PDF for the next 7 days." = "Goditi tutte le funzionalità per annotare e modificare il PDF per i prossimi 7 giorni.";
 "Activation Error" = "Errore di attivazione";

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

@@ -793,7 +793,7 @@
 "If you have already purchased PDF Reader Pro for Mac, you should find your license in an email confirmation." = "PDF Reader Pro for Macを既に購入している場合は、メール確認書にライセンスを見つける必要があります。";
 "License Number" = "ライセンス番号";
 "Continue" = "続く";
-"Successful activation!" = "アクティベーションが成功しました!";
+"Successful Activation!" = "アクティベーションが成功しました!";
 "Congrats! You are eligible to enjoy all available features in PDF Reader Pro." = "おめでとう! PDF Reader Proで利用可能なすべての機能を楽しむ資格があります。";
 "Enjoy all features to annotate and edit PDF for the next 7 days." = "次の7日間、PDFを注釈および編集するすべての機能をお楽しみください。";
 "Activation Error" = "アクティベーションエラー";

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

@@ -793,7 +793,7 @@
 "If you have already purchased PDF Reader Pro for Mac, you should find your license in an email confirmation." = "Als u PDF Reader Pro al voor Mac hebt gekocht, moet u uw licentie vinden in een e-mailbevestiging.";
 "License Number" = "Licentienummer";
 "Continue" = "Doorgaan";
-"Successful activation!" = "Succesvolle activering!";
+"Successful Activation!" = "Succesvolle activering!";
 "Congrats! You are eligible to enjoy all available features in PDF Reader Pro." = "Gefeliciteerd! U komt in aanmerking om te genieten van alle beschikbare functies in PDF Reader Pro.";
 "Enjoy all features to annotate and edit PDF for the next 7 days." = "Geniet van alle functies om de komende 7 dagen PDF te annoteren en te bewerken.";
 "Activation Error" = "Activatie fout";

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

@@ -793,7 +793,7 @@
 "If you have already purchased PDF Reader Pro for Mac, you should find your license in an email confirmation." = "Jeśli kupiłeś już PDF Reader Pro dla komputerów Mac, powinieneś znaleźć swoją licencję w potwierdzeniu e-mail.";
 "License Number" = "Numer licencji";
 "Continue" = "Kontynuować";
-"Successful activation!" = "Udana aktywacja!";
+"Successful Activation!" = "Udana aktywacja!";
 "Congrats! You are eligible to enjoy all available features in PDF Reader Pro." = "Gratulacje! Możesz cieszyć się wszystkimi dostępnymi funkcjami w PDF Reader Pro.";
 "Enjoy all features to annotate and edit PDF for the next 7 days." = "Ciesz się wszystkimi funkcjami do adnotacji i edycji PDF na następne 7 dni.";
 "Activation Error" = "Błąd aktywacji";

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

@@ -793,7 +793,7 @@
 "If you have already purchased PDF Reader Pro for Mac, you should find your license in an email confirmation." = "Если вы уже приобрели PDF Reader Pro для Mac, вы должны найти свою лицензию в подтверждении электронной почты.";
 "License Number" = "Лицензионный номер";
 "Continue" = "Продолжать";
-"Successful activation!" = "Успешная активация!";
+"Successful Activation!" = "Успешная активация!";
 "Congrats! You are eligible to enjoy all available features in PDF Reader Pro." = "Поздравляю! Вы имеете право наслаждаться всеми доступными функциями в PDF Reader Pro.";
 "Enjoy all features to annotate and edit PDF for the next 7 days." = "Наслаждайтесь всеми функциями, чтобы аннотировать и редактировать PDF в течение следующих 7 дней.";
 "Activation Error" = "Ошибка активации";

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

@@ -1768,7 +1768,7 @@
 "If you have already purchased PDF Reader Pro for Mac, you should find your license in an email confirmation." = "如果您已经购买 PDF Reader Pro for Mac版本,请至确认邮件中查阅您的序列码。";
 "License Number" = "序列码";
 "Continue" = "继续";
-"Successful activation!" = "激活成功 !";
+"Successful Activation!" = "激活成功 !";
 "Congrats! You are eligible to enjoy all available features in PDF Reader Pro." = "恭喜! 您可以开始享用PDF Reader Pro中的所有可用功能。";
 "Enjoy all features to annotate and edit PDF for the next 7 days." = "批注、编辑 PDF,七天免费试用完整功能。";
 "Activation Error" = "激活错误";

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

@@ -1718,7 +1718,7 @@
 "If you have already purchased PDF Reader Pro for Mac, you should find your license in an email confirmation." = "若您已購買PDF Reader Pro,序號會寄到您提供的信箱中。";
 "License Number" = "序號";
 "Continue" = "繼續";
-"Successful activation!" = "成功啟用!";
+"Successful Activation!" = "成功啟用!";
 "Congrats! You are eligible to enjoy all available features in PDF Reader Pro." = "恭喜!您可以開始享用PDF Reader Pro完整功能. ";
 "Enjoy all features to annotate and edit PDF for the next 7 days." = "開啟七天免費試用文件注釋、編輯等完整功能。";
 "Activation Error" = "啟用失敗";