Преглед изворни кода

【2025】【综合】多语补充,Edit模块完善

niehaoyu пре 4 дана
родитељ
комит
14d5dab223

+ 3 - 0
PDF Office/PDF Master/KMClass/KMPDFViewController/EditTool/Bates/KMBatesController.swift

@@ -137,6 +137,8 @@ class KMBatesController: NSViewController {
             propertyController.editSubType = editSubType
             propertyController.reloadData()
         }
+        
+        updatePDFDocumentBates()
     }
     
     func updatePDFDocumentBates() {
@@ -192,6 +194,7 @@ extension KMBatesController: KMBatesPropertyControllerDelegate {
     func batesPropertyControllerDidUpdate(_ controller: KMBatesPropertyController) {
         updatePDFDocumentBates()
         
+        delegate?.kmBatesControllerDidModelDataUpdated?(self)
     }
     
     func batesPropertyControllerDidChangetoTemplate(_ controller: KMBatesPropertyController) {

+ 1 - 1
PDF Office/PDF Master/KMClass/KMPDFViewController/EditTool/Bates/Views/KMBatesPropertyController.swift

@@ -380,7 +380,7 @@ class KMBatesPropertyController: KMNBaseViewController {
         layoutPosition.reloadData()
         
         layoutTextarea.properties.text = ""
-        layoutTextarea.properties.placeholderString = KMLocalizedString("Typing text here to customize Bates ")
+        layoutTextarea.properties.placeholderString = KMLocalizedString("Typing text here to customize Bates, or click + button to insert.")
         layoutTextarea.reloadData()
         
         updateTextAreaText()

+ 1 - 1
PDF Office/PDF Master/KMClass/KMPDFViewController/HeaderFooter/Views/KMHeaderPropertyController.swift

@@ -290,7 +290,7 @@ class KMHeaderPropertyController: KMNBaseViewController {
         startPageLabel.textColor = ComponentLibrary.shared.getComponentColorFromKey("comp-field/colorText-filled-nor")
         startPageLabel.font = ComponentLibrary.shared.getFontFromKey("mac/body-s-regular")
         
-        layoutTextarea.properties.placeholderString = KMLocalizedString("Typing text here to customize header&footer ")
+        layoutTextarea.properties.placeholderString = KMLocalizedString("Typing text here to customize header&footer, or click + button to insert Date/Page number.")
     }
     
     func clearData() {

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

@@ -2834,7 +2834,7 @@ struct KMNMWCFlags {
         editDocument?.insertPageObject(page, at: 0)
         
         batesViewController?.pdfDocument = editDocument
-        headerFooterViewController?.pdfViewCurrentIndex = listView.currentPageIndex
+        batesViewController?.pdfViewCurrentIndex = listView.currentPageIndex
         batesViewController?.reloadData()
         
     }

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

@@ -5169,3 +5169,5 @@
 "Diamond"="الماس";
 "Press any key on the keyboard to exit touchpad mode."="اضغط على أي مفتاح على لوحة المفاتيح للخروج من وضع لوحة اللمس.";
 "Are you sure you want to delete the selected image files?"="هل أنت متأكد أنك تريد حذف ملفات الصور المحددة؟";
+"Typing text here to customize header&footer, or click + button to insert Date/Page number."="اكتب نصًا هنا لتخصيص الرأس والتذييل، أو انقر فوق الزر + لإدراج رقم التاريخ/الصفحة.";
+"Typing text here to customize Bates, or click + button to insert."="كتابة نص هنا لتخصيص بيتس، أو انقر فوق زر + لإدراجه.";

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

@@ -3615,3 +3615,5 @@
 "Diamond"="Diamant";
 "Press any key on the keyboard to exit touchpad mode."="Drücken Sie eine beliebige Taste auf der Tastatur, um den Touchpad-Modus zu verlassen.";
 "Are you sure you want to delete the selected image files?"="Sind Sie sicher, dass Sie die ausgewählten Bilddateien löschen möchten?";
+"Typing text here to customize header&footer, or click + button to insert Date/Page number."="Geben Sie hier Text ein, um Kopf- und Fußzeile anzupassen, oder klicken Sie auf die Schaltfläche „+“, um Datum/Seitenzahl einzufügen.";
+"Typing text here to customize Bates, or click + button to insert."="Geben Sie hier Text ein, um Bates anzupassen, oder klicken Sie zum Einfügen auf die Schaltfläche „+“.";

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

@@ -3536,3 +3536,5 @@
 "Diamond"="Diamante";
 "Press any key on the keyboard to exit touchpad mode."="Presione cualquier tecla del teclado para salir del modo de panel táctil.";
 "Are you sure you want to delete the selected image files?"="¿Está seguro de que desea eliminar los archivos de imagen seleccionados?";
+"Typing text here to customize header&footer, or click + button to insert Date/Page number."="Escriba texto aquí para personalizar el encabezado y pie de página, o haga clic en el botón + para insertar la fecha/el número de página.";
+"Typing text here to customize Bates, or click + button to insert."="Escriba texto aquí para personalizar Bates o haga clic en el botón + para insertar.";

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

@@ -3566,3 +3566,5 @@
 "Diamond"="Diamant";
 "Press any key on the keyboard to exit touchpad mode."="Appuyez sur n’importe quelle touche du clavier pour quitter le mode pavé tactile.";
 "Are you sure you want to delete the selected image files?"="Êtes-vous sûr de vouloir supprimer les fichiers image sélectionnés ?";
+"Typing text here to customize header&footer, or click + button to insert Date/Page number."="Tapez du texte ici pour personnaliser l'en-tête et le pied de page, ou cliquez sur le bouton + pour insérer la date/le numéro de page.";
+"Typing text here to customize Bates, or click + button to insert."="Tapez du texte ici pour personnaliser Bates, ou cliquez sur le bouton + pour l'insérer.";

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

@@ -3494,3 +3494,5 @@
 "Diamond"="Diamante";
 "Press any key on the keyboard to exit touchpad mode."="Premere un tasto qualsiasi sulla tastiera per uscire dalla modalità touchpad.";
 "Are you sure you want to delete the selected image files?"="Sei sicuro di voler eliminare i file immagine selezionati?";
+"Typing text here to customize header&footer, or click + button to insert Date/Page number."="Digitare qui il testo per personalizzare intestazione e piè di pagina oppure fare clic sul pulsante + per inserire data/numero di pagina.";
+"Typing text here to customize Bates, or click + button to insert."="Digitare il testo qui per personalizzare Bates oppure fare clic sul pulsante + per inserirlo.";

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

@@ -3773,3 +3773,5 @@
 "Diamond"="ダイヤモンド";
 "Press any key on the keyboard to exit touchpad mode."="キーボードのいずれかのキーを押して、タッチパッド モードを終了します。";
 "Are you sure you want to delete the selected image files?"="選択した画像ファイルを削除してもよろしいですか?";
+"Typing text here to customize header&footer, or click + button to insert Date/Page number."="ここにテキストを入力してヘッダーとフッターをカスタマイズするか、+ ボタンをクリックして日付/ページ番号を挿入します。";
+"Typing text here to customize Bates, or click + button to insert."="ここにテキストを入力してベイツをカスタマイズするか、+ ボタンをクリックして挿入します。";

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

@@ -3259,3 +3259,5 @@
 "Diamond"="Diamant";
 "Press any key on the keyboard to exit touchpad mode."="Druk op een willekeurige toets op het toetsenbord om de touchpad-modus te verlaten.";
 "Are you sure you want to delete the selected image files?"="Weet u zeker dat u de geselecteerde afbeeldingsbestanden wilt verwijderen?";
+"Typing text here to customize header&footer, or click + button to insert Date/Page number."="Typ hier tekst om de kop- en voettekst aan te passen, of klik op de knop + om het datum-/paginanummer in te voegen.";
+"Typing text here to customize Bates, or click + button to insert."="Typ hier tekst om Bates aan te passen, of klik op de knop + om in te voegen.";

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

@@ -3373,3 +3373,5 @@
 "Diamond"="Diament";
 "Press any key on the keyboard to exit touchpad mode."="Naciśnij dowolny klawisz na klawiaturze, aby wyjść z trybu touchpada.";
 "Are you sure you want to delete the selected image files?"="Czy na pewno chcesz usunąć wybrane pliki obrazów?";
+"Typing text here to customize header&footer, or click + button to insert Date/Page number."="Wpisz tutaj tekst, aby dostosować nagłówek i stopkę, lub kliknij przycisk +, aby wstawić datę/numer strony.";
+"Typing text here to customize Bates, or click + button to insert."="Wpisz tutaj tekst, aby dostosować Bates, lub kliknij przycisk +, aby go wstawić.";

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

@@ -5166,3 +5166,5 @@
 "Diamond"="Diamante";
 "Press any key on the keyboard to exit touchpad mode."="Pressione qualquer tecla do teclado para sair do modo touchpad.";
 "Are you sure you want to delete the selected image files?"="Tem certeza de que deseja excluir os arquivos de imagem selecionados?";
+"Typing text here to customize header&footer, or click + button to insert Date/Page number."="Digite o texto aqui para personalizar o cabeçalho e rodapé ou clique no botão + para inserir a data/número da página.";
+"Typing text here to customize Bates, or click + button to insert."="Digite o texto aqui para personalizar Bates ou clique no botão + para inserir.";

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

@@ -3437,3 +3437,5 @@
 "Diamond"="Алмаз";
 "Press any key on the keyboard to exit touchpad mode."="Нажмите любую клавишу на клавиатуре, чтобы выйти из режима сенсорной панели.";
 "Are you sure you want to delete the selected image files?"="Вы уверены, что хотите удалить выбранные файлы изображений?";
+"Typing text here to customize header&footer, or click + button to insert Date/Page number."="Введите текст здесь, чтобы настроить верхний и нижний колонтитулы, или нажмите кнопку +, чтобы вставить дату/номер страницы.";
+"Typing text here to customize Bates, or click + button to insert."="Введите текст здесь, чтобы настроить Бейтса, или нажмите кнопку +, чтобы вставить.";

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

@@ -4692,3 +4692,5 @@
 "Failed to open the Office document. Please install Microsoft Office first."="Office文档打开失败,请先安装微软Office软件。";
 "Diamond"="菱形";
 "Press any key on the keyboard to exit touchpad mode."="点击任意按键,退出手绘板模式。";
+"Typing text here to customize header&footer, or click + button to insert Date/Page number."="在此处输入页眉&页脚内容,或点击 + 号来插入日期/页码。";
+"Typing text here to customize Bates, or click + button to insert."="在此处输入贝茨码内容,或点击 + 号插入。";

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

@@ -4590,3 +4590,5 @@
 "Failed to open the Office document. Please install Microsoft Office first."="Office文件開啟失敗,請先安裝微軟Office軟體。";
 "Diamond"="菱形";
 "Press any key on the keyboard to exit touchpad mode."="點選任何按鍵,退出手繪板模式。";
+"Typing text here to customize header&footer, or click + button to insert Date/Page number."="在此輸入頁首&頁尾內容,或點選 + 號來插入日期/頁碼。";
+"Typing text here to customize Bates, or click + button to insert."="在此輸入貝茨碼內容,或點選 + 號插入。";