Browse Source

【综合】禅道细节问题修正

niehaoyu 11 months ago
parent
commit
9f38344f77

+ 1 - 1
PDF Office/PDF Master/Class/PDFWindowController/PDFListView/CPDFListView.m

@@ -842,7 +842,7 @@ NSNotificationName const KMPDFViewTableAnnotationDidChangeNotification = @"KMPDF
            }
         }
         drawString = [drawString getMaxStringWithBounds:annotation.bounds attributes:attributes];
-        
+        drawString = @"";
         CGSize size = [drawString sizeWithAttributes:attributes];
         CGRect drawRect = annotation.bounds;
         drawRect.origin.y += (drawRect.size.height - size.height)/2.0;

+ 1 - 1
PDF Office/PDF Master/Class/PDFWindowController/Side/RightSide/AnnotationProperty/KMAnnotationSelectLinkViewController.swift

@@ -169,7 +169,7 @@ enum KMAnnotationLinkType: UInt {
         pageLabel.textColor = KMAppearance.Layout.h1Color()
         allPageLabel.textColor = KMAppearance.Layout.h2Color()
 
-        goButton.title = NSLocalizedString("Go", tableName: "MainMenu", comment: "")
+        goButton.title = NSLocalizedString("Go", comment: "")
         goButton.setTitleColor(KMAppearance.Layout.w0Color())
         goButton.wantsLayer = true
         goButton.layer?.backgroundColor = KMAppearance.Interactive.m0Color().cgColor

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

@@ -2960,6 +2960,11 @@ let LOCKED_KEY  = "locked"
                 currentMenu.insertItem(self.setAnnotationToolStype(), at: 3)
                 currentMenu.insertItem(NSMenuItem.separator(), at: 3)
             }
+            
+            currentMenu.insertItem(NSMenuItem.separator(), at: 0)
+            currentMenu.insertItem(self.setAITranslateStype(), at: 0)
+            currentMenu.insertItem(self.setAIProofreadStype(), at: 0)
+            currentMenu.insertItem(self.setAIRewriteStype(), at: 0)
             return
         }
         if (listView.toolMode == .moveToolMode || listView.toolMode == .magnifyToolMode){
@@ -2975,6 +2980,11 @@ let LOCKED_KEY  = "locked"
                 currentMenu.insertItem(NSMenuItem.separator(), at: 0)
                 currentMenu.insertItem(self.setAnnotationToolStype(), at: 0)
             }
+            
+            currentMenu.insertItem(NSMenuItem.separator(), at: 0)
+            currentMenu.insertItem(self.setAITranslateStype(), at: 0)
+            currentMenu.insertItem(self.setAIProofreadStype(), at: 0)
+            currentMenu.insertItem(self.setAIRewriteStype(), at: 0)
             return
         }
         

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

@@ -2220,7 +2220,7 @@
 "Scroll Tool" = "スクロールツール";
 "Text Tool" = "テキストツール";
 "Magnify Tool" = "拡大鏡ツール";
-"Go" = "移動\t";
+"Go" = "移動";
 "Next" = "次へ";
 "Previous" = "前へ";
 "Back" = "戻る";