Browse Source

Merge branch 'develop_PDFReaderProNew' of git.kdan.cc:Mac_PDF/PDF_Office into develop_PDFReaderProNew

tangchao 11 tháng trước cách đây
mục cha
commit
f14d38e5a0

+ 1 - 1
PDF Office/PDF Master/Class/PDFWindowController/ReadModelView/KMReadModelView.swift

@@ -9,7 +9,7 @@ import Cocoa
 
 enum KMReadModelViewScaleType: String, CaseIterable {
     case fitWidth = "Fit"
-    case actualSize = "Actual"
+    case actualSize = "Actual Size"
     case autoSize = "Auto"
     case _10 = "10%"
     case _25 = "25%"

+ 7 - 0
PDF Office/PDF Master/Class/PDFWindowController/Toolbar/KMToolbarViewController.swift

@@ -139,7 +139,14 @@ class KMToolbarViewController: NSViewController, NSTextFieldDelegate {
     
     override func viewDidLoad() {
         super.viewDidLoad()
+        
         self.zoomTextField.delegate = self
+
+        for item in self.zoomButton.itemArray {
+            let string = item.title 
+            item.title = NSLocalizedString(string, comment: "")
+        }
+        
         NotificationCenter.default.addObserver(self, selector: #selector(listViewAnnotationTypeChangeNotification), name: Notification.Name("CPDFListViewAnnotationTypeChangeNotification"), object: nil)
         NotificationCenter.default.addObserver(self, selector: #selector(listViewAnnotationTypeChangeNotification), name: Notification.Name("CPDFListViewToolModeChangeNotification"), object: nil)
     }