瀏覽代碼

【综合】顶部菜单栏按钮状态判断调整,PPT设置多语处理,AI购买界面跳转链接处理

niehaoyu 10 月之前
父節點
當前提交
43324eeba7

+ 12 - 1
PDF Office/PDF Master/Class/PDFWindowController/MainWindowController/SKPresentationOptionsSheetController.swift

@@ -115,7 +115,7 @@ class SKPresentationOptionsSheetController: KMBaseWindowController {
             self.effectPopUpButton.addItem(withTitle: SKTransitionController.localizedName(for: SKAnimationTransitionStyle(rawValue: UInt(i)) ?? .noTransition))
             self.effectPopUpButton.lastItem?.tag = i
         }
-        self.notesDocumentPopUpButton.item(at: 0)?.title = NSLocalizedString("None", comment: "Menu item title")
+        self.notesDocumentPopUpButton.item(at: 0)?.title = NSLocalizedString("None", comment: "")
 
 //        creatTransitionController()
         let transitionController = self.controller?.listView.transitionController
@@ -127,8 +127,19 @@ class SKPresentationOptionsSheetController: KMBaseWindowController {
         self.transition.shouldRestrict = transitionController?.shouldRestrict ?? false
         self.startObservingTransitions([self.transition])
 
+        self.pageTransitionBox.title = KMLocalizedString("Page Transition")
+        self.effectLabel.stringValue = NSLocalizedString("Effect:", comment: "")
+        self.durationLabel.stringValue = NSLocalizedString("Duration:", comment: "")
+        self.extentLabel.stringValue = NSLocalizedString("Extent:", comment: "")
+        self.screeBtn.title = KMLocalizedString("Screen")
+        self.pageBtn.title = KMLocalizedString("Page")
+        separateCheckButton.title = NSLocalizedString("Distinct page transitions", comment: "")
         self.separateCheckButton.sizeToFit()
 
+        self.synchoronizBox.title = KMLocalizedString("Synchronized Notes Document")
+        cancelBtn.title = NSLocalizedString("Cancel", comment: "")
+        okBtn.title = NSLocalizedString("OK", comment: "")
+        
         SKAutoSizeButtons(buttons as? [Any], true)
         let dw = SKAutoSizeLabelFields(transitionLabels as? [Any], transitionControls as? [Any], false)
         if abs(dw) > 0.0 {

+ 6 - 6
PDF Office/PDF Master/Class/PDFWindowController/MainWindowController/TransitionSheet.xib

@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="22155" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="22505" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
     <dependencies>
         <deployment version="1060" identifier="macosx"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22155"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22505"/>
         <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
     </dependencies>
     <objects>
@@ -32,7 +32,7 @@
             <windowStyleMask key="styleMask" titled="YES" closable="YES"/>
             <windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
             <rect key="contentRect" x="282" y="439" width="426" height="280"/>
-            <rect key="screenRect" x="0.0" y="0.0" width="2560" height="1415"/>
+            <rect key="screenRect" x="0.0" y="0.0" width="1920" height="1055"/>
             <value key="minSize" type="size" width="213" height="107"/>
             <view key="contentView" id="8">
                 <rect key="frame" x="0.0" y="0.0" width="426" height="280"/>
@@ -108,9 +108,9 @@ Gw
                                     </popUpButtonCell>
                                 </popUpButton>
                                 <textField focusRingType="none" verticalHuggingPriority="750" id="9">
-                                    <rect key="frame" x="35" y="75" width="44" height="17"/>
+                                    <rect key="frame" x="3" y="75" width="76" height="17"/>
                                     <autoresizingMask key="autoresizingMask"/>
-                                    <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Effect:" id="438">
+                                    <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Effect:" id="438">
                                         <font key="font" metaFont="system"/>
                                         <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
                                         <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
@@ -119,7 +119,7 @@ Gw
                                 <textField focusRingType="none" verticalHuggingPriority="750" id="25">
                                     <rect key="frame" x="15" y="44" width="64" height="17"/>
                                     <autoresizingMask key="autoresizingMask"/>
-                                    <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Duration:" id="440">
+                                    <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Duration:" id="440">
                                         <font key="font" metaFont="system"/>
                                         <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
                                         <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>

+ 2 - 0
PDF Office/PDF Master/Class/PDFWindowController/PDFListView/CPDFListViewExtension/CPDFListView+Event.m

@@ -1013,6 +1013,8 @@ static inline CPDFAreaOfInterest CAreaOfInterestForResizeHandle(CRectEdges mask,
     } else if (action == @selector(zoomToPhysicalSize:)) {
         [menuItem setState:([self autoScales] || fabs([self physicalScaleFactor] - 1.0 ) > 0.01) ? NSOffState : NSOnState];
         return YES;
+    } else if (action == @selector(autoSelectContent:)) {
+        return self.toolMode == CSelectToolMode;
     }
     
     return [super validateMenuItem:menuItem];

+ 2 - 2
PDF Office/PDF Master/Class/Purchase/DMG/Verification/VerificationManager/VerificationManager.h

@@ -18,13 +18,13 @@
 
 #define kVerificationServer         @"http://test-store.kdan.cn:3018/"
 #define kWebServerLink              NSLocalizedString(@"http://test-pdf-pro.kdan.cn:3021", nil)
-#define kAIStoreServerLink          @"http://test-pdf-pro.kdan.cn:3021/store"
+#define kAIStoreServerLink          @"http://test-pdf-pro.kdan.cn:3021/ai-pdf"
 
 #else
 
 #define kVerificationServer         @"https://store.pdfreaderpro.com/"
 #define kWebServerLink              NSLocalizedString(@"http://www.pdfreaderpro.com/store", nil)
-#define kAIStoreServerLink          @"http://www.pdfreaderpro.com/store"
+#define kAIStoreServerLink          @"https://www.pdfreaderpro.com/ai-pdf"
 
 #endif
 

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

@@ -2834,3 +2834,13 @@
 "Clear"="Klar";
 "Tip: 1 credit for each 10,000 characters" = "Tipp: 1 Credit pro 10.000 Zeichen";
 
+"Page" = "Seite";
+"Screen" = "Bildschirm";
+"Synchronized Notes Document" = "Synchronisierte Notizendatei";
+"OK" = "OK";
+"Cancel" = "Abbrechen";
+"Effect:" = "Effekt:";
+"Duration:" = "Dauer:";
+"Extent:" = "Umfang:";
+"Distinct page transitions" = "Verschiedene Seitenübergänge";
+"%{title1}@ %{title2}@" = "%{title1}@ %{title2}@";

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

@@ -2926,3 +2926,13 @@
 "All the AI content will be removed. Are you sure you want to clear the session?"="Se eliminará todo el contenido de IA. ¿Está seguro de que desea borrar la sesión?";
 "Clear"="Claro";
 "Tip: 1 credit for each 10,000 characters" = "Consejo: 1 crédito por cada 10.000 caracteres";
+
+"Page" = "Página";
+"Screen" = "Pantalla";
+"Synchronized Notes Document" = "Documento de notas sincronizadas";
+"OK" = "Aceptar";
+"Cancel" = "Cancelar";
+"Effect:" = "Efecto:";
+"Duration:" = "Duración:";
+"Extent:" = "Extensión:";
+"Distinct page transitions" = "Transiciones de página distintas";

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

@@ -2797,3 +2797,13 @@
 "All the AI content will be removed. Are you sure you want to clear the session?"="Tout le contenu de l'IA sera supprimé. Êtes-vous sûr de vouloir effacer la session ?";
 "Clear"="Clair";
 "Tip: 1 credit for each 10,000 characters" = "Astuce : 1 crédit pour 10 000 caractères";
+
+"Page" = "Page";
+"Screen" = "Écran";
+"Synchronized Notes Document" = "Document de notes synchronisé";
+"OK" = "OK";
+"Cancel" = "Annuler";
+"Effect:" = "Effet :";
+"Duration:" = "Durée :";
+"Extent:" = "Étendue :";
+"Distinct page transitions" = "Transitions de pages distinctes";

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

@@ -2723,3 +2723,12 @@
 "Clear"="Chiaro";
 "Tip: 1 credit for each 10,000 characters" = "Suggerimento: 1 credito ogni 10.000 caratteri";
 
+"Page" = "Pagina";
+"Screen" = "Schermo";
+"Synchronized Notes Document" = "Nessuno";
+"OK" = "Ok";
+"Cancel" = "Annulla";
+"Effect:" = "Effetto:";
+"Duration:" = "Durata:";
+"Extent:" = "Ampiezza:";
+"Distinct page transitions" = "Transizioni di pagina distinte";

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

@@ -2990,3 +2990,12 @@
 "Clear"="クリア";
 "Tip: 1 credit for each 10,000 characters" = "ヒント: 10,000 文字ごとに 1 クレジット";
 
+"Page" = "ページ";
+"Screen" = "スクリーン";
+"Synchronized Notes Document" = "ノートのドキュメントも同期する";
+"OK" = "OK";
+"Cancel" = "キャンセル";
+"Effect:" = "効果:";
+"Duration:" = "持続時間:";
+"Extent:" = "適用範囲:";
+"Distinct page transitions" = "効果を個別のページに適用する";

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

@@ -3000,3 +3000,12 @@
 "Clear"="Duidelijk";
 "Tip: 1 credit for each 10,000 characters" = "Tip: 1 credit voor elke 10.000 tekens";
 
+"Page" = "Pagina";
+"Screen" = "Scherm";
+"Synchronized Notes Document" = "Gesynchroniseerd notitiedocument";
+"OK" = "OK";
+"Cancel" = "Annuleer";
+"Effect:" = "Effect:";
+"Duration:" = "Tijdsduur:";
+"Extent:" = "Bereik:";
+"Distinct page transitions" = "Verschillende paginaovergangen";

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

@@ -2939,3 +2939,12 @@
 "Clear"="Jasne";
 "Tip: 1 credit for each 10,000 characters" = "Wskazówka: 1 kredyt za każde 10 000 znaków";
 
+"Page" = "Strona";
+"Screen" = "Ekran";
+"Synchronized Notes Document" = "Dokument zsynchronizowanych notatek";
+"OK" = "OK";
+"Cancel" = "Anuluj";
+"Effect:" = "Efekt:";
+"Duration:" = "Czas:";
+"Extent:" = "Zakres:";
+"Distinct page transitions" = "Rozdziel przejścia stron";

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

@@ -2863,3 +2863,12 @@
 "Clear"="Прозрачный";
 "Tip: 1 credit for each 10,000 characters" = "Совет: 1 кредит за каждые 10 000 символов.";
 
+"Page" = "Страница";
+"Screen" = "Экран";
+"Synchronized Notes Document" = "Синхронизированные заметки";
+"OK" = "Продолжить";
+"Cancel" = "Отменить";
+"Effect:" = "Эффект:";
+"Duration:" = "Длительность:";
+"Extent:" = "Размер:";
+"Distinct page transitions" = "Особый переход";

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

@@ -3903,3 +3903,12 @@
 "Clear"="清除";
 "Tip: 1 credit for each 10,000 characters" = "提示:每10,000字符消耗1个权益点。";
 
+"Page" = "页面";
+"Screen" = "屏幕";
+"Synchronized Notes Document" = "同步过的笔记文件";
+"OK" = "好";
+"Cancel" = "取消";
+"Effect:" = "效果:";
+"Duration:" = "期间:";
+"Extent:" = "扩展:";
+"Distinct page transitions" = "独特的页面切换特效";

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

@@ -4033,3 +4033,12 @@
 "Clear"="清除";
 "Tip: 1 credit for each 10,000 characters" = "提示:每10,000字元消耗1個權益點。";
 
+"Page" = "頁面";
+"Screen" = "螢幕";
+"Synchronized Notes Document" = "同步過的筆記文件";
+"OK" = "好";
+"Cancel" = "取消";
+"Effect:" = "效果:";
+"Duration:" = "期間:";
+"Extent:" = "延伸:";
+"Distinct page transitions" = "不同頁面過場特效";