Browse Source

文案 - V1.0.1版本文案调整

wanjun 1 year ago
parent
commit
186aeceeaf

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

@@ -77,7 +77,7 @@ class KMAIOpenPDFFilesVC: NSViewController {
     
     func initLocalization() -> Void {
         self.openPDFFilesLabel.stringValue = NSLocalizedString("Open PDF Files", comment: "")
-        self.selectYourFilesLabel.stringValue = NSLocalizedString("Select your files", comment: "")
+        self.selectYourFilesLabel.stringValue = NSLocalizedString("Select Your Files", comment: "")
         self.orDropFilesHereToOpenLabel.stringValue = NSLocalizedString("or drop files here to open", comment: "")
         self.creatPDFLabel.stringValue = NSLocalizedString("Create PDF", comment: "")
         self.newFromFilesLabel.stringValue = NSLocalizedString("New From Files", comment: "")

+ 7 - 7
PDF Office/PDF Master/Class/Home/ViewController/KMAIRewritingVC.swift

@@ -100,7 +100,7 @@ class KMAIRewritingVC: NSViewController {
         case .AIRewriting:
             self.aiRewritingLabel.stringValue = NSLocalizedString("AI Rewriting", comment: "")
             self.aiRewritingSubLabel.stringValue = NSLocalizedString("Limited to 150 characters per session, 5 times per month", comment: "")
-            self.rewritingLabel.stringValue = NSLocalizedString("Rewriting", comment: "")
+            self.rewritingLabel.stringValue = NSLocalizedString("Rewrite", comment: "")
             self.resultLabel.stringValue = NSLocalizedString("Result", comment: "")
             self.copyLabel.stringValue = NSLocalizedString("Copy", comment: "")
             self.rewritingTextField.placeholderString = NSLocalizedString("Please enter text content here...", comment: "")
@@ -112,7 +112,7 @@ class KMAIRewritingVC: NSViewController {
         case .AIErrorCorrection:
             self.aiRewritingLabel.stringValue = NSLocalizedString("AI Error Correction", comment: "")
             self.aiRewritingSubLabel.stringValue = NSLocalizedString("Limited to 150 characters per session, 5 times per month", comment: "")
-            self.rewritingLabel.stringValue = NSLocalizedString("Correction", comment: "")
+            self.rewritingLabel.stringValue = NSLocalizedString("Correct", comment: "")
             self.resultLabel.stringValue = NSLocalizedString("Result", comment: "")
             self.copyLabel.stringValue = NSLocalizedString("Copy", comment: "")
             self.rewritingTextField.placeholderString = NSLocalizedString("Please enter text content here...", comment: "")
@@ -201,7 +201,7 @@ class KMAIRewritingVC: NSViewController {
             self.rewritingBox.borderColor = NSColor(hex: "#F3465B")
             self.emptyImageView.isHidden = true
             self.errorView.isHidden = false
-            self.errorLabel.stringValue = NSLocalizedString("Limit 150 characters at a time", comment: "")
+            self.errorLabel.stringValue = NSLocalizedString("Limit to 150 characters at a time", comment: "")
         } else if self.uiState == .Error {
             self.rewritingBox.fillColor = NSColor(hex: "#1770F4")
             self.rewritingBox.borderWidth = 0.0
@@ -307,9 +307,9 @@ class KMAIRewritingVC: NSViewController {
     func showProgressWindow() {
         let progress = SKProgressController()
         if self.state == .AIRewriting {
-            progress.message = NSLocalizedString("Under Rewrite...", comment: "")
+            progress.message = NSLocalizedString("Rewriting...", comment: "")
         } else if self.state == . AIErrorCorrection {
-            progress.message = NSLocalizedString("Error Correction...", comment: "")
+            progress.message = NSLocalizedString("Error Correcting...", comment: "")
         }
         progress.window?.backgroundColor = NSColor(hex: "#36383B")
         progress.window?.contentView?.wantsLayer = true
@@ -420,9 +420,9 @@ extension KMAIRewritingVC: NSTextFieldDelegate {
         if object.stringValue.count > 150 {
             self.uiState = .Exceed
             if self.state == .AIRewriting {
-                self.aiRewritingErrorStr = NSLocalizedString("Limit 150 characters at a time", comment: "")
+                self.aiRewritingErrorStr = NSLocalizedString("Limit to 150 characters at a time", comment: "")
             } else if self.state == .AIErrorCorrection {
-                self.aiErrorCorrectionErrorStr = NSLocalizedString("Limit 150 characters at a time", comment: "")
+                self.aiErrorCorrectionErrorStr = NSLocalizedString("Limit to 150 characters at a time", comment: "")
             }
         } else {
             if self.state == .AIRewriting {

+ 6 - 6
PDF Office/PDF Master/Class/Home/ViewController/KMAITranslationVC.swift

@@ -127,7 +127,7 @@ class KMAITranslationVC: NSViewController {
                             }
                             if self.isFileGreaterThan10MB(atPath: url.path) {
                                 self.errorView.isHidden = false
-                                self.errorLabel.stringValue = NSLocalizedString("The uploaded file cannot exceed 10MB", comment: "")
+                                self.errorLabel.stringValue = NSLocalizedString("The uploaded file size cannot exceed 10MB", comment: "")
                             } else {
                                 DispatchQueue.main.async {
                                     self.showProgressWindow()
@@ -175,7 +175,7 @@ class KMAITranslationVC: NSViewController {
     
     func initLocalization() -> Void {
         self.aiTranslationLabel.stringValue = NSLocalizedString("AI Translation", comment: "")
-        self.supportPDFWordFileLabel.stringValue = NSLocalizedString("Support PDF, Word file", comment: "")
+        self.supportPDFWordFileLabel.stringValue = NSLocalizedString("Support PDF and Word file", comment: "")
         self.supportPDFWordFileSubLabel.stringValue = NSLocalizedString("Limit document size to 10M, document page number to 30, 10w characters per month.", comment: "")
         self.translationLanguageLabel.stringValue = NSLocalizedString("Translation Language:", comment: "")
         self.selectYourFilesLabel.stringValue = NSLocalizedString("Select your file", comment: "")
@@ -243,7 +243,7 @@ class KMAITranslationVC: NSViewController {
             if let error = error {
                 let alert = NSAlert()
                 alert.alertStyle = .critical
-                alert.messageText = String(format: "%@:\(error)", NSLocalizedString("Download failure", comment: ""))
+                alert.messageText = String(format: "%@:\(error)", NSLocalizedString("Download failed", comment: ""))
                 alert.runModal()
                 
                 return
@@ -252,7 +252,7 @@ class KMAITranslationVC: NSViewController {
             guard let tempLocalURL = tempLocalURL else {
                 let alert = NSAlert()
                 alert.alertStyle = .critical
-                alert.messageText = NSLocalizedString("The download file temporary path is invalid", comment: "")
+                alert.messageText = NSLocalizedString("Invalid temporary directory", comment: "")
                 alert.runModal()
 
                 return
@@ -275,7 +275,7 @@ class KMAITranslationVC: NSViewController {
             } catch {
                 let alert = NSAlert()
                 alert.alertStyle = .critical
-                alert.messageText = String(format: "%@:\(error)", NSLocalizedString("File saving failure", comment: ""))
+                alert.messageText = String(format: "%@:\(error)", NSLocalizedString("Failed to save file", comment: ""))
                 alert.runModal()
             }
         }
@@ -341,7 +341,7 @@ class KMAITranslationVC: NSViewController {
     
     func showProgressWindow() {
         let progress = SKProgressController()
-        progress.message = NSLocalizedString("translation...", comment: "")
+        progress.message = NSLocalizedString("Translating...", comment: "")
         progress.window?.backgroundColor = NSColor(hex: "#36383B")
         progress.window?.contentView?.wantsLayer = true
         progress.window?.contentView?.layer?.backgroundColor = NSColor(hex: "#36383B").cgColor

+ 4 - 4
PDF Office/PDF Master/Class/Home/ViewController/KMHomeViewController+Action.swift

@@ -605,7 +605,7 @@ extension KMHomeViewController {
         
         if self.isFileGreaterThan10MB(atPath: path) {
             self.aiTranslationViewController.errorView.isHidden = false
-            self.aiTranslationViewController.errorLabel.stringValue = NSLocalizedString("The uploaded file cannot exceed 10MB", comment: "")
+            self.aiTranslationViewController.errorLabel.stringValue = NSLocalizedString("The uploaded file size cannot exceed 10MB", comment: "")
         } else {
             let url = URL(fileURLWithPath: path)
             if (url.pathExtension == "pdf") || url.pathExtension == "PDF" {
@@ -701,7 +701,7 @@ extension KMHomeViewController {
             if let error = error {
                 let alert = NSAlert()
                 alert.alertStyle = .critical
-                alert.messageText = String(format: "%@:\(error)", NSLocalizedString("Download failure", comment: ""))
+                alert.messageText = String(format: "%@:\(error)", NSLocalizedString("Download failed", comment: ""))
                 alert.runModal()
                 
                 return
@@ -710,7 +710,7 @@ extension KMHomeViewController {
             guard let tempLocalURL = tempLocalURL else {
                 let alert = NSAlert()
                 alert.alertStyle = .critical
-                alert.messageText = NSLocalizedString("The download file temporary path is invalid", comment: "")
+                alert.messageText = NSLocalizedString("Invalid temporary directory", comment: "")
                 alert.runModal()
 
                 return
@@ -733,7 +733,7 @@ extension KMHomeViewController {
             } catch {
                 let alert = NSAlert()
                 alert.alertStyle = .critical
-                alert.messageText = String(format: "%@:\(error)", NSLocalizedString("File saving failure", comment: ""))
+                alert.messageText = String(format: "%@:\(error)", NSLocalizedString("Failed to save file", comment: ""))
                 alert.runModal()
             }
         }

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

@@ -603,7 +603,7 @@ import KMAdvertisement
     
     func showProgressWindow() {
         let progress = SKProgressController()
-        progress.message = NSLocalizedString("translation...", comment: "")
+        progress.message = NSLocalizedString("Translating...", comment: "")
         progress.window?.backgroundColor = NSColor(hex: "#36383B")
         progress.window?.contentView?.wantsLayer = true
         progress.window?.contentView?.layer?.backgroundColor = NSColor(hex: "#36383B").cgColor

+ 5 - 5
PDF Office/PDF Master/Class/Home/WindowController/KMAITranslationConfirmWindowController.swift

@@ -102,7 +102,7 @@ class KMAITranslationConfirmWindowController: NSWindowController {
         self.translateLabel.stringValue = NSLocalizedString("Translate", comment: "")
         self.fromLabel.stringValue = "Automatic"
         self.toLabel.stringValue = "English"
-        self.tipsLabel1.stringValue = NSLocalizedString("Scanning PDF file is not supported.", comment: "")
+        self.tipsLabel1.stringValue = NSLocalizedString("Scanned PDF files are not supported", comment: "")
         self.tipsLabel2.stringValue = NSLocalizedString("Limit document size to 10M, document page number to 30, 10w characters per month.", comment: "")
     }
     
@@ -235,7 +235,7 @@ class KMAITranslationConfirmWindowController: NSWindowController {
 
     func showProgressWindow() {
         let progress = SKProgressController()
-        progress.message = NSLocalizedString("translation...", comment: "")
+        progress.message = NSLocalizedString("Translating...", comment: "")
         progress.window?.backgroundColor = NSColor(hex: "#36383B")
         progress.window?.contentView?.wantsLayer = true
         progress.window?.contentView?.layer?.backgroundColor = NSColor(hex: "#36383B").cgColor
@@ -318,7 +318,7 @@ class KMAITranslationConfirmWindowController: NSWindowController {
             if let error = error {
                 let alert = NSAlert()
                 alert.alertStyle = .critical
-                alert.messageText = String(format: "%@:\(error)", NSLocalizedString("Download failure", comment: ""))
+                alert.messageText = String(format: "%@:\(error)", NSLocalizedString("Download failed", comment: ""))
                 alert.runModal()
                 
                 return
@@ -327,7 +327,7 @@ class KMAITranslationConfirmWindowController: NSWindowController {
             guard let tempLocalURL = tempLocalURL else {
                 let alert = NSAlert()
                 alert.alertStyle = .critical
-                alert.messageText = NSLocalizedString("The download file temporary path is invalid", comment: "")
+                alert.messageText = NSLocalizedString("Invalid temporary directory", comment: "")
                 alert.runModal()
 
                 return
@@ -352,7 +352,7 @@ class KMAITranslationConfirmWindowController: NSWindowController {
             } catch {
                 let alert = NSAlert()
                 alert.alertStyle = .critical
-                alert.messageText = String(format: "%@:\(error)", NSLocalizedString("File saving failure", comment: ""))
+                alert.messageText = String(format: "%@:\(error)", NSLocalizedString("Failed to save file", comment: ""))
                 alert.runModal()
             }
         }

+ 1 - 1
PDF Office/PDF Master/Class/Home/WindowController/KMAITranslationWindowController.swift

@@ -291,7 +291,7 @@ class KMAITranslationWindowController: NSWindowController {
     
     func showProgressWindow() {
         let progress = SKProgressController()
-        progress.message = NSLocalizedString("translation...", comment: "")
+        progress.message = NSLocalizedString("Translating...", comment: "")
         progress.window?.backgroundColor = NSColor(hex: "#36383B")
         progress.window?.contentView?.wantsLayer = true
         progress.window?.contentView?.layer?.backgroundColor = NSColor(hex: "#36383B").cgColor

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

@@ -1922,7 +1922,7 @@ extension KMMainViewController : KMMainToolbarControllerDelegate {
         if self.isFileGreaterThan10MB(atPath: (self.document?.documentURL.path)!) {
             let alert = NSAlert()
             alert.alertStyle = .critical
-            alert.messageText = NSLocalizedString("The uploaded file cannot exceed 10MB", comment: "")
+            alert.messageText = NSLocalizedString("The uploaded file size cannot exceed 10MB", comment: "")
             alert.runModal()
 
             return

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

@@ -3824,29 +3824,29 @@
 "AI Rewriting" = "AI Rewriting";
 "AI Error Correction" = "AI Error Correction";
 "Open PDF Files" = "Open PDF Files";
-"Select your files" = "Select your files";
+"Select Your Files" = "Select Your Files";
 "or drop files here to open" = "or drop files here to open";
 "New From Files" = "New From Files";
-"Support PDF, Word file" = "Support PDF, Word file";
+"Support PDF and Word file" = "Support PDF and Word file";
 "Translation Language:" = "Translation Language:";
 "or drop file here" = "or drop file here";
-"Download failure" = "Download failure";
-"The download file temporary path is invalid" = "The download file temporary path is invalid";
-"File saving failure" = "File saving failure";
+"Download failed" = "Download failed";
+"Invalid temporary directory" = "Invalid temporary directory";
+"Failed to save file" = "Failed to save file";
 "Invalid file link" = "Invalid file link";
 "Copied" = "Copied";
-"Correction" = "Correction";
+"Correct" = "Correct";
 "Limited to 150 characters per session, 5 times per month" = "Limited to 150 characters per session, 5 times per month";
-"Rewriting" = "Rewriting";
+"Rewrite" = "Rewrite";
 "Result" = "Result";
 "Please enter text content here..." = "Please enter text content here...";
-"Limit 150 characters at a time" = "Limit 150 characters at a time";
-"Under Rewrite..." = "Under Rewrite...";
-"Error Correction..." = "Error Correction...";
-"translation..." = "translation...";
+"Limit to 150 characters at a time" = "Limit to 150 characters at a time";
+"Rewriting..." = "Rewriting...";
+"Error Correcting..." = "Error Correcting...";
+"Translating..." = "Translating...";
 "Uploading..." = "Uploading...";
-"Intelligent translation of the currently open document, the translated file will be opened as a new file." = "Intelligent translation of the currently open document, the translated file will be opened as a new file.";
+"The translated file will be opened as a new file." = "The translated file will be opened as a new file.";
 "Translate" = "Translate";
-"The uploaded file cannot exceed 10MB" = "The uploaded file cannot exceed 10MB";
-"Scanning PDF file is not supported." = "Scanning PDF file is not supported.";
+"The uploaded file size cannot exceed 10MB" = "The uploaded file size cannot exceed 10MB";
+"Scanned PDF files are not supported" = "Scanned PDF files are not supported";
 "Limit document size to 10M, document page number to 30, 10w characters per month." = "Limit document size to 10M, document page number to 30, 10w characters per month.";