Prechádzať zdrojové kódy

【综合】补充多语

tangchao 5 mesiacov pred
rodič
commit
f4be17e6fa

+ 1 - 0
PDF Office/PDF Master/Class/Batch/WindowController/VC/KMBatchOperateConvertViewController.swift

@@ -335,6 +335,7 @@ class KMBatchOperateConvertViewController: KMBatchOperateBaseViewController{
             self?.moreConvertInfoAction()
         }
         
+        self.ocrLabel.stringValue = NSLocalizedString("Language Option", comment: "") + ":"
         ocrLanguageBox.selectItem(at: 0)
         ocrLabel.textColor = KMAppearance.Layout.h2Color()
         ocrLanguageBox.isEnabled = false

+ 1 - 1
PDF Office/PDF Master/Class/PDFTools/Convert/NewController/KMConvertWindowController.swift

@@ -216,7 +216,7 @@ let kConvertFileSavePath = (kTempSavePath?.stringByAppendingPathComponent("conve
         separateButton.title = KMLocalizedString("Convert each page to a separate worksheet", nil)
         singleButton.title = KMLocalizedString("Convert all pages to a single worksheet", nil)
         ocrBox.title = KMLocalizedString("OCR Settings", nil)
-        ocrLabel.stringValue = KMLocalizedString("Document Language:", nil)
+        ocrLabel.stringValue = KMLocalizedString("Language Option", nil) + ":"
         ocrButton.title = KMLocalizedString("Recognize text if needed", nil)
 
         separateStypeLabel.stringValue = KMLocalizedString("Excel Worksheet Settings", nil)

+ 3 - 0
PDF Office/PDF Master/Class/PDFWindowController/Side/LeftSide/KMLeftSideViewController+Note.swift

@@ -546,6 +546,7 @@ extension KMLeftSideViewController {
                         }
                     }
                 }
+                self.annoListModel?.datas.removeAll()
                 self.dataUpdating = false
 
                 self.note_refrshUIIfNeed()
@@ -1078,6 +1079,8 @@ extension KMLeftSideViewController {
                     preDate = date
                 }
                 
+                item.sectionModel = secM
+                
                 let replyAnnos = self.noteReplyHanddler.fetchReplyAnnotations(anno) ?? []
                 for replyAnno in replyAnnos {
                     let replyM = KMBotaAnnotationReplyModel()

+ 8 - 0
PDF Office/PDF Master/Class/PDFWindowController/Side/LeftSide/KMLeftSideViewController.swift

@@ -2757,6 +2757,14 @@ extension KMLeftSideViewController: KMCustomOutlineViewDelegate, KMCustomOutline
                 }
                 self.listView?.remove(anno)
             }
+            for item in items {
+                if let data = item as? KMBotaAnnotationModel {
+                    data.sectionModel?.items.removeObject(data)
+                    if let footerModel = data.footerModel {
+                        data.sectionModel?.items.removeObject(footerModel)
+                    }
+                }
+            }
             self.dataUpdating = false
             self.listView?.undoManager?.setActionName(KMLocalizedString("Remove Note", "Undo action name"))
             

+ 1 - 0
PDF Office/PDF Master/Class/PDFWindowController/Side/LeftSide/Model/KMAnnotationModel.swift

@@ -25,6 +25,7 @@ class KMBotaAnnotationModel: KMBotaAnnotationBaseModel {
     var foldType: KMFoldType    = .none
     var foldH: CGFloat = 30
     
+    weak var sectionModel: KMBotaAnnotationSectionModel?
     weak var footerModel: KMBotaAnnotationFooterModel?
     var replyAnnos: [KMBotaAnnotationReplyModel] = []
     

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

@@ -4710,3 +4710,4 @@
 "--> If you still can't access your benefits after restarting, please contact us at: support@pdfreaderpro.com" = "--> إذا كنت لا تزال غير قادر على الوصول إلى مزاياك بعد إعادة التشغيل، فيرجى الاتصال بنا على: support@pdfreaderpro.com";
 
 "OCR Settings" = "إعدادات التعرف الضوئي على الحروف";
+"Language Option" = "خيارات اللغة";

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

@@ -3075,3 +3075,4 @@
 "--> If you still can't access your benefits after restarting, please contact us at: support@pdfreaderpro.com" = "--> Wenn Sie nach dem Neustart immer noch nicht auf Ihre Vorteile zugreifen können, kontaktieren Sie uns bitte unter: support@pdfreaderpro.com";
 
 "OCR Settings" = "OCR-Einstellungen";
+"Language Option" = "Sprachoptionen";

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

@@ -4241,3 +4241,4 @@
 "--> If you still can't access your benefits after restarting, please contact us at: support@pdfreaderpro.com" = "--> If you still can't access your benefits after restarting, please contact us at: support@pdfreaderpro.com";
 
 "OCR Settings" = "OCR Settings";
+"Language Option" = "Language Option";

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

@@ -3157,4 +3157,5 @@
 "--> If you still can't access your benefits after restarting, please contact us at: support@pdfreaderpro.com" = "--> Si aún no puede acceder a sus beneficios después de reiniciar, contáctenos en: support@pdfreaderpro.com";
 
 "OCR Settings" = "Configuración de OCR";
+"Language Option" = "Opciones de idioma";
 

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

@@ -3039,3 +3039,4 @@
 "--> If you still can't access your benefits after restarting, please contact us at: support@pdfreaderpro.com" = "--> Si vous ne parvenez toujours pas à accéder à vos avantages après le redémarrage, veuillez nous contacter à : support@pdfreaderpro.com";
 
 "OCR Settings" = "Paramètres ROC";
+"Language Option" = "Options de langue";

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

@@ -2953,3 +2953,4 @@
 "--> If you still can't access your benefits after restarting, please contact us at: support@pdfreaderpro.com" = "--> Se non riesci ancora ad accedere ai vantaggi dopo il riavvio, contattaci all'indirizzo: support@pdfreaderpro.com";
 
 "OCR Settings" = "Impostazioni dell'OCR";
+"Language Option" = "Opzioni della lingua";

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

@@ -3232,3 +3232,4 @@
 "--> If you still can't access your benefits after restarting, please contact us at: support@pdfreaderpro.com" = "--> 再起動しても特典にアクセスできない場合は、support@pdfreaderpro.com までご連絡ください。";
 
 "OCR Settings" = "OCR設定";
+"Language Option" = "言語オプション";

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

@@ -3112,3 +3112,4 @@
 "--> If you still can't access your benefits after restarting, please contact us at: support@pdfreaderpro.com" = "--> Als u na het opnieuw opstarten nog steeds geen toegang heeft tot uw voordelen, neem dan contact met ons op via: support@pdfreaderpro.com";
 
 "OCR Settings" = "OCR-instellingen";
+"Language Option" = "Taaloptie";

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

@@ -3169,3 +3169,4 @@
 "--> If you still can't access your benefits after restarting, please contact us at: support@pdfreaderpro.com" = "--> Jeśli po ponownym uruchomieniu nadal nie możesz uzyskać dostępu do korzyści, skontaktuj się z nami pod adresem: support@pdfreaderpro.com";
 
 "OCR Settings" = "Ustawienia OCR";
+"Language Option" = "Opcje językowe";

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

@@ -4631,3 +4631,4 @@
 "--> If you still can't access your benefits after restarting, please contact us at: support@pdfreaderpro.com" = "--> Se você ainda não conseguir acessar seus benefícios após reiniciar, entre em contato conosco: support@pdfreaderpro.com";
 
 "OCR Settings" = "Configurações de OCR";
+"Language Option" = "Opções de idioma";

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

@@ -3103,3 +3103,4 @@
 "--> If you still can't access your benefits after restarting, please contact us at: support@pdfreaderpro.com" = "--》Если после перезапуска вы по-прежнему не можете получить соответствующие права, свяжитесь с нами по электронной почте: support@pdfreaderpro.com";
 
 "OCR Settings" = "настройки оптического распознавания символов";
+"Language Option" = "Языковые параметры";

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

@@ -4142,3 +4142,4 @@
 "--> If you still can't access your benefits after restarting, please contact us at: support@pdfreaderpro.com" = "--》若重启后仍然无法获取相关权益,请联系我们邮箱:support@pdfreaderpro.com";
 
 "OCR Settings" = "OCR设置";
+"Language Option" = "语言选项";

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

@@ -4273,3 +4273,4 @@
 "--> If you still can't access your benefits after restarting, please contact us at: support@pdfreaderpro.com" = "--》若重啟APP仍無法取得相關權益,請聯絡我們信箱:support@pdfreaderpro.com";
 
 "OCR Settings" = "OCR設定";
+"Language Option" = "語言選項";