Browse Source

【2025】【综合】多语修改

niehaoyu 4 days ago
parent
commit
a5fd8f2c7a

+ 6 - 5
PDF Office/PDF Master/Class/OC/AutoSave/AutoSavePopController.m

@@ -8,6 +8,7 @@
 #import "AutoSavePopController.h"
 #import "AutoSaveFileItem.h"
 #import <PDF_Reader_Pro-Swift.h>
+#import "KMOCLanguage.h"
 
 @interface AutoSavePopController ()<
 NSTableViewDelegate,
@@ -57,11 +58,11 @@ NSCollectionViewDataSource>
     
     // Implement this method to handle any initialization after your window controller's window has been loaded from its nib file.
     
-    self.titleLbl.stringValue = NSLocalizedString(@"Document cache records will be cleared if you choose 'Cancel'", nil);
-    self.headerNameLbl.stringValue = NSLocalizedString(@"File Name", nil);
-    self.headerDateLbl.stringValue = NSLocalizedString(@"Autosave Time", nil);
-    self.cancelBtn.title = NSLocalizedString(@"Cancel", nil);
-    self.saveAsBtn.title = NSLocalizedString(@"Save as", nil);
+    self.titleLbl.stringValue = KMLocalizedString(@"Document cache records will be cleared if you choose 'Cancel'", nil);
+    self.headerNameLbl.stringValue = KMLocalizedString(@"File Name", nil);
+    self.headerDateLbl.stringValue = KMLocalizedString(@"Autosave Time", nil);
+    self.cancelBtn.title = KMLocalizedString(@"Cancel", nil);
+    self.saveAsBtn.title = KMLocalizedString(@"Save as", nil);
     
     self.tableBGView.wantsLayer = YES;
     self.tableBGView.layer.cornerRadius = 5.;

+ 7 - 6
PDF Office/PDF Master/Class/PDFWindowController/PDFListView/CPDFKitExtensions/CPDFListViewExtension/CPDFListView+Extension.m

@@ -16,6 +16,7 @@
 #import <objc/runtime.h>
 #import <ComPDFKit/CPDFView+Utilities.h>
 #import <PDF_Reader_Pro-Swift.h>
+#import "KMOCLanguage.h"
 
 CGFloat DEFAULT_SNAPSHOT_HEIGHT = 200.0;
 
@@ -871,9 +872,9 @@ CGFloat DEFAULT_SNAPSHOT_HEIGHT = 200.0;
 - (void)resetFormAnnotation {
     NSAlert* alert = [[NSAlert alloc] init];
     [alert setAlertStyle:NSAlertStyleCritical];
-    [alert setMessageText:NSLocalizedString(@"Do you really want to reset the form?", nil)];
-    [alert addButtonWithTitle:NSLocalizedString(@"Yes", nil)];
-    [alert addButtonWithTitle:NSLocalizedString(@"No", nil)];
+    [alert setMessageText:KMLocalizedString(@"Do you really want to reset the form?", nil)];
+    [alert addButtonWithTitle:KMLocalizedString(@"Yes", nil)];
+    [alert addButtonWithTitle:KMLocalizedString(@"No", nil)];
     
     NSModalResponse response = [alert runModal];
     if (response == NSAlertFirstButtonReturn) {
@@ -887,9 +888,9 @@ CGFloat DEFAULT_SNAPSHOT_HEIGHT = 200.0;
 - (void)removeAllAnnotation {
     NSAlert* alert = [[NSAlert alloc] init];
     [alert setAlertStyle:NSAlertStyleCritical];
-    [alert setMessageText:NSLocalizedString(@"This will permanently remove all annotations. Are you sure to continue?", nil)];
-    [alert addButtonWithTitle:NSLocalizedString(@"Yes", nil)];
-    [alert addButtonWithTitle:NSLocalizedString(@"No", nil)];
+    [alert setMessageText:KMLocalizedString(@"This will permanently remove all annotations. Are you sure to continue?", nil)];
+    [alert addButtonWithTitle:KMLocalizedString(@"Yes", nil)];
+    [alert addButtonWithTitle:KMLocalizedString(@"No", nil)];
     
     NSModalResponse response = [alert runModal];
     if (response == NSAlertFirstButtonReturn) {

+ 0 - 2
PDF Office/PDF Master/KMClass/KMPDFViewController/KMNDisplayViewController/KMNDisplayViewController.swift

@@ -746,8 +746,6 @@ class KMNDisplayViewController: KMNBaseViewController {
         delegate?.displayViewControllerDidSplitModeChanged?(self)
     }
     
-    //MARK: - Mouse
-    
 }
 
 //MARK: - ComponentCColorDelegate

+ 1 - 1
PDF Office/PDF Master/KMClass/KMPDFViewController/KMPDFMenuConfig.swift

@@ -521,7 +521,7 @@ let PDFViewMenuIdentifier_Edit_Reset = "PDFViewMenuIdentifier_Edit_Reset"
                                                                                     itemSelected: false,
                                                                                     isDisabled: false,
                                                                                     keyEquivalent: "⌘]",
-                                                                                    text: KMLocalizedString("Back"),identifier: PDFViewMenuIdentifier_Normal_PageBack,
+                                                                                    text: KMLocalizedString("Backward"),identifier: PDFViewMenuIdentifier_Normal_PageBack,
                                                                                     representedObject: listView)
         
         subMenuItemArr.append(subItem0Property)

+ 2 - 2
PDF Office/PDF Master/KMClass/KMPDFViewController/SideBar/KMPDFSideBarController.swift

@@ -44,8 +44,8 @@ class KMPDFSideBarController: KMNBaseViewController {
 
     let firstPageProperty = ComponentMenuitemProperty(lefticon: NSImage(named: "first_vertical"), righticon: nil, text: KMLocalizedString("First Page"))
     let lastPageProperty = ComponentMenuitemProperty(lefticon: NSImage(named: "last_vertical"), righticon: nil, text: KMLocalizedString("Last Page"))
-    let previouseProperty = ComponentMenuitemProperty(lefticon: NSImage(named: "arrow_left"), righticon: nil, text: KMLocalizedString("Forward"))
-    let nextProperty = ComponentMenuitemProperty(lefticon: NSImage(named: "arrow_right"), righticon: nil, text: KMLocalizedString("Back"))
+    let previouseProperty = ComponentMenuitemProperty(lefticon: NSImage(named: "arrow_left"), righticon: nil, text: KMLocalizedString("Backwark"))
+    let nextProperty = ComponentMenuitemProperty(lefticon: NSImage(named: "arrow_right"), righticon: nil, text: KMLocalizedString("Forward"))
     
     private var groupView: ComponentGroup!
     

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

@@ -2344,6 +2344,7 @@
 
 
 "Back" = "خلف";
+"Forward" = "خلف";
 
 
 

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

@@ -38,6 +38,7 @@
 "Auto Size Row" = "Fila de tamaño automático";
 "Auto Size Rows" = "Filas de tamaño automático";
 "Back" = "Atrás";
+"Forward" = "Atrás";
 "Back/Forward" = "De vuelta atras";
 "Beveled line style" = "Estilo de línea biselada";
 "Book Mode" = "Modo de libro";

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

@@ -2233,6 +2233,7 @@
 "Next" = "Successivo";
 "Previous" = "Precedente";
 "Back" = "Indietro";
+"Forward" = "Indietro";
 "Forward" = "Avanti";
 "Full Screen" = "A schermo pieno";
 "Presentation" = "Presentazione";

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

@@ -38,6 +38,7 @@
 "Auto Size Row" = "自動サイズの行";
 "Auto Size Rows" = "自動サイズの行";
 "Back" = "戻る";
+"Forward" = "戻る";
 "Back/Forward" = "バックフォワード";
 "Beveled line style" = "斜めのラインスタイル";
 "Book Mode" = "ブックモード";

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

@@ -2226,6 +2226,7 @@
 "Next" = "Следующая";
 "Previous" = "Предыдущая";
 "Back" = "Назад";
+"Forward" = "Назад";
 "Forward" = "Вперед";
 "Full Screen" = "Во весь экран";
 "Presentation" = "Презентация";

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

@@ -115,6 +115,7 @@
 
 /* Menu item title */
 "Back" = "向后";
+"Forward" = "向后";
 
 /* Tool tip message
    Toolbar item label */

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

@@ -116,6 +116,7 @@
 
 /* Menu item title */
 "Back" = "向後";
+"Forward" = "向後";
 
 /* Tool tip message
    Toolbar item label */