Bläddra i källkod

页面编辑 文案

OYXH\oyxh 1 år sedan
förälder
incheckning
ccdfe9032e

+ 1 - 1
PDF Office/CustomControl/WritableComboBox.xaml.cs

@@ -375,7 +375,7 @@ namespace PDF_Master.CustomControl
             {
                 AlertsMessage alertsMessage = new AlertsMessage();
                 //alertsMessage.ShowDialog($"Value must be between 1 and {MaxPageRange}", App.MainPageLoader.GetString("PageRangeWarning"), App.ServiceLoader.GetString("Text_ok"), IconType.Tip);
-                alertsMessage.ShowDialog($"Value must be between 1 and {MaxPageRange}", "Values cannot exceed the page range.", App.ServiceLoader.GetString("Text_ok"), IconType.Tip);
+                alertsMessage.ShowDialog($"{App.MainPageLoader.GetString("PageEdit_SplitErrorTile")}{MaxPageRange}", $"{App.MainPageLoader.GetString("PageEdit_SplitErrorContent")}", App.ServiceLoader.GetString("Text_ok"), IconType.Tip);
                 ErrorBorder.Visibility = Visibility.Visible;
                 writableTextBox.Text = "";
             }

+ 31 - 23
PDF Office/MultilingualResources/PDF Office.en.xlf

@@ -3223,13 +3223,13 @@ Some functions may not work, please restart or re-download PDF Reader Pro from o
           <target state="new">Page</target>
         </trans-unit>
         <trans-unit id="PageEdit_10Envelope" translate="yes" xml:space="preserve">
-          <source>#10 Envelope (105*241mm)</source>
-          <target state="new">#10 Envelope (105*241mm)</target>
+          <source>#10 Envelope </source>
+          <target state="new">#10 Envelope </target>
           <note from="MultilingualBuild" annotates="source" priority="2">10号信封(105*241mm)</note>
         </trans-unit>
         <trans-unit id="PageEdit_Choukei3" translate="yes" xml:space="preserve">
-          <source>Choukei #3 Envelope (120*235mm)</source>
-          <target state="new">Choukei #3 Envelope (120*235mm)</target>
+          <source>Choukei #3 Envelope </source>
+          <target state="new">Choukei #3 Envelope </target>
           <note from="MultilingualBuild" annotates="source" priority="2">Choukei 3信封(120*235mm)</note>
         </trans-unit>
         <trans-unit id="PageEdit_CurrentPage" translate="yes" xml:space="preserve">
@@ -3242,8 +3242,8 @@ Some functions may not work, please restart or re-download PDF Reader Pro from o
           <note from="MultilingualBuild" annotates="source" priority="2">自定义</note>
         </trans-unit>
         <trans-unit id="PageEdit_DLEnvelope" translate="yes" xml:space="preserve">
-          <source>DL Envelope (110*220mm)</source>
-          <target state="new">DL Envelope (110*220mm)</target>
+          <source>DL Envelope </source>
+          <target state="new">DL Envelope </target>
           <note from="MultilingualBuild" annotates="source" priority="2">DL信封(110*220mm)</note>
         </trans-unit>
         <trans-unit id="PageEdit_Extract" translate="yes" xml:space="preserve">
@@ -3306,15 +3306,10 @@ Some functions may not work, please restart or re-download PDF Reader Pro from o
           <note from="MultilingualBuild" annotates="source" priority="2">拆分</note>
         </trans-unit>
         <trans-unit id="PageEdit_SplitAveragelyToXfiles" translate="yes" xml:space="preserve">
-          <source>Split averagely to X files</source>
-          <target state="new">Split averagely to X files</target>
+          <source>Split averagely to</source>
+          <target state="new">Split averagely to</target>
           <note from="MultilingualBuild" annotates="source" priority="2">平均拆分为X个PDF文件</note>
         </trans-unit>
-        <trans-unit id="PageEdit_SplitByEveryXpage(s)" translate="yes" xml:space="preserve">
-          <source>Split by every X page(s)</source>
-          <target state="new">Split by every X page(s)</target>
-          <note from="MultilingualBuild" annotates="source" priority="2">平均每X页拆分为一个PDF文件</note>
-        </trans-unit>
         <trans-unit id="PageEdit_SplitByPageRange" translate="yes" xml:space="preserve">
           <source>Split by page range</source>
           <target state="new">Split by page range</target>
@@ -3340,23 +3335,23 @@ Some functions may not work, please restart or re-download PDF Reader Pro from o
           <note from="MultilingualBuild" annotates="source" priority="2">超大B/A3型(330*483mm)</note>
         </trans-unit>
         <trans-unit id="PageEdit_TabloidPaper" translate="yes" xml:space="preserve">
-          <source>Tabloid Paper (279*432mm)</source>
-          <target state="new">Tabloid Paper (279*432mm)</target>
+          <source>Tabloid Paper </source>
+          <target state="new">Tabloid Paper </target>
           <note from="MultilingualBuild" annotates="source" priority="2">小报用纸(279*432mm)</note>
         </trans-unit>
         <trans-unit id="PageEdit_TabloidPaperBig" translate="yes" xml:space="preserve">
-          <source>Tabloid Paper (305*457mm)</source>
-          <target state="new">Tabloid Paper (305*457mm)</target>
+          <source>Tabloid Paper </source>
+          <target state="new">Tabloid Paper </target>
           <note from="MultilingualBuild" annotates="source" priority="2">小报用纸(特大)(305*457mm)</note>
         </trans-unit>
         <trans-unit id="PageEdit_USLegalPaper" translate="yes" xml:space="preserve">
-          <source>U.S. Legal Paper (216*356mm)</source>
-          <target state="new">U.S. Legal Paper (216*356mm)</target>
+          <source>U.S. Legal Paper </source>
+          <target state="new">U.S. Legal Paper </target>
           <note from="MultilingualBuild" annotates="source" priority="2">美国法定用纸(216*356mm)</note>
         </trans-unit>
         <trans-unit id="PageEdit_USLetterPaper" translate="yes" xml:space="preserve">
-          <source>U.S. Letter Paper (216*279mm)</source>
-          <target state="new">U.S. Letter Paper (216*279mm)</target>
+          <source>U.S. Letter Paper </source>
+          <target state="new">U.S. Letter Paper </target>
           <note from="MultilingualBuild" annotates="source" priority="2">美国信纸(216*279mm)</note>
         </trans-unit>
         <trans-unit id="PageEdit_Cancel" translate="yes" xml:space="preserve">
@@ -3392,8 +3387,8 @@ Some functions may not work, please restart or re-download PDF Reader Pro from o
           <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-拆分-弹窗-按页面范围拆分 自定义输入框,输入错误弹窗 内容</note>
         </trans-unit>
         <trans-unit id="PageEdit_SplitErrorTile" translate="yes" xml:space="preserve">
-          <source>Page range must between 1 and 10</source>
-          <target state="new">Page range must between 1 and 10</target>
+          <source>Page range must between 1 and</source>
+          <target state="new">Page range must between 1 and</target>
           <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-拆分-弹窗-按页面范围拆分 自定义输入框,输入错误弹窗 标题</note>
         </trans-unit>
         <trans-unit id="PageEdit_SplitFileName" translate="yes" xml:space="preserve">
@@ -3414,6 +3409,19 @@ Some functions may not work, please restart or re-download PDF Reader Pro from o
           <source>Replace Page</source>
           <target state="new">Replace Page</target>
         </trans-unit>
+        <trans-unit id="PageEdit_SplitByEvery" translate="yes" xml:space="preserve">
+          <source>Split by every</source>
+          <target state="new">Split by every</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">平均每X页拆分为一个PDF文件</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_Xfiles" translate="yes" xml:space="preserve">
+          <source>files</source>
+          <target state="new">files</target>
+        </trans-unit>
+        <trans-unit id="PageEdit_Xpage" translate="yes" xml:space="preserve">
+          <source>page(s)</source>
+          <target state="new">page(s)</target>
+        </trans-unit>
       </group>
     </body>
   </file>

+ 31 - 23
PDF Office/MultilingualResources/PDF Office.zh-Hans.xlf

@@ -3223,13 +3223,13 @@ Some functions may not work, please restart or re-download PDF Reader Pro from o
           <target state="new">Page</target>
         </trans-unit>
         <trans-unit id="PageEdit_10Envelope" translate="yes" xml:space="preserve">
-          <source>#10 Envelope (105*241mm)</source>
-          <target state="new">#10 Envelope (105*241mm)</target>
+          <source>#10 Envelope </source>
+          <target state="new">#10 Envelope </target>
           <note from="MultilingualBuild" annotates="source" priority="2">10号信封(105*241mm)</note>
         </trans-unit>
         <trans-unit id="PageEdit_Choukei3" translate="yes" xml:space="preserve">
-          <source>Choukei #3 Envelope (120*235mm)</source>
-          <target state="new">Choukei #3 Envelope (120*235mm)</target>
+          <source>Choukei #3 Envelope </source>
+          <target state="new">Choukei #3 Envelope </target>
           <note from="MultilingualBuild" annotates="source" priority="2">Choukei 3信封(120*235mm)</note>
         </trans-unit>
         <trans-unit id="PageEdit_CurrentPage" translate="yes" xml:space="preserve">
@@ -3242,8 +3242,8 @@ Some functions may not work, please restart or re-download PDF Reader Pro from o
           <note from="MultilingualBuild" annotates="source" priority="2">自定义</note>
         </trans-unit>
         <trans-unit id="PageEdit_DLEnvelope" translate="yes" xml:space="preserve">
-          <source>DL Envelope (110*220mm)</source>
-          <target state="new">DL Envelope (110*220mm)</target>
+          <source>DL Envelope </source>
+          <target state="new">DL Envelope </target>
           <note from="MultilingualBuild" annotates="source" priority="2">DL信封(110*220mm)</note>
         </trans-unit>
         <trans-unit id="PageEdit_Extract" translate="yes" xml:space="preserve">
@@ -3306,15 +3306,10 @@ Some functions may not work, please restart or re-download PDF Reader Pro from o
           <note from="MultilingualBuild" annotates="source" priority="2">拆分</note>
         </trans-unit>
         <trans-unit id="PageEdit_SplitAveragelyToXfiles" translate="yes" xml:space="preserve">
-          <source>Split averagely to X files</source>
-          <target state="new">Split averagely to X files</target>
+          <source>Split averagely to</source>
+          <target state="new">Split averagely to</target>
           <note from="MultilingualBuild" annotates="source" priority="2">平均拆分为X个PDF文件</note>
         </trans-unit>
-        <trans-unit id="PageEdit_SplitByEveryXpage(s)" translate="yes" xml:space="preserve">
-          <source>Split by every X page(s)</source>
-          <target state="new">Split by every X page(s)</target>
-          <note from="MultilingualBuild" annotates="source" priority="2">平均每X页拆分为一个PDF文件</note>
-        </trans-unit>
         <trans-unit id="PageEdit_SplitByPageRange" translate="yes" xml:space="preserve">
           <source>Split by page range</source>
           <target state="new">Split by page range</target>
@@ -3340,23 +3335,23 @@ Some functions may not work, please restart or re-download PDF Reader Pro from o
           <note from="MultilingualBuild" annotates="source" priority="2">超大B/A3型(330*483mm)</note>
         </trans-unit>
         <trans-unit id="PageEdit_TabloidPaper" translate="yes" xml:space="preserve">
-          <source>Tabloid Paper (279*432mm)</source>
-          <target state="new">Tabloid Paper (279*432mm)</target>
+          <source>Tabloid Paper </source>
+          <target state="new">Tabloid Paper </target>
           <note from="MultilingualBuild" annotates="source" priority="2">小报用纸(279*432mm)</note>
         </trans-unit>
         <trans-unit id="PageEdit_TabloidPaperBig" translate="yes" xml:space="preserve">
-          <source>Tabloid Paper (305*457mm)</source>
-          <target state="new">Tabloid Paper (305*457mm)</target>
+          <source>Tabloid Paper </source>
+          <target state="new">Tabloid Paper </target>
           <note from="MultilingualBuild" annotates="source" priority="2">小报用纸(特大)(305*457mm)</note>
         </trans-unit>
         <trans-unit id="PageEdit_USLegalPaper" translate="yes" xml:space="preserve">
-          <source>U.S. Legal Paper (216*356mm)</source>
-          <target state="new">U.S. Legal Paper (216*356mm)</target>
+          <source>U.S. Legal Paper </source>
+          <target state="new">U.S. Legal Paper </target>
           <note from="MultilingualBuild" annotates="source" priority="2">美国法定用纸(216*356mm)</note>
         </trans-unit>
         <trans-unit id="PageEdit_USLetterPaper" translate="yes" xml:space="preserve">
-          <source>U.S. Letter Paper (216*279mm)</source>
-          <target state="new">U.S. Letter Paper (216*279mm)</target>
+          <source>U.S. Letter Paper </source>
+          <target state="new">U.S. Letter Paper </target>
           <note from="MultilingualBuild" annotates="source" priority="2">美国信纸(216*279mm)</note>
         </trans-unit>
         <trans-unit id="PageEdit_Cancel" translate="yes" xml:space="preserve">
@@ -3392,8 +3387,8 @@ Some functions may not work, please restart or re-download PDF Reader Pro from o
           <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-拆分-弹窗-按页面范围拆分 自定义输入框,输入错误弹窗 内容</note>
         </trans-unit>
         <trans-unit id="PageEdit_SplitErrorTile" translate="yes" xml:space="preserve">
-          <source>Page range must between 1 and 10</source>
-          <target state="new">Page range must between 1 and 10</target>
+          <source>Page range must between 1 and</source>
+          <target state="new">Page range must between 1 and</target>
           <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-拆分-弹窗-按页面范围拆分 自定义输入框,输入错误弹窗 标题</note>
         </trans-unit>
         <trans-unit id="PageEdit_SplitFileName" translate="yes" xml:space="preserve">
@@ -3414,6 +3409,19 @@ Some functions may not work, please restart or re-download PDF Reader Pro from o
           <source>Replace Page</source>
           <target state="new">Replace Page</target>
         </trans-unit>
+        <trans-unit id="PageEdit_SplitByEvery" translate="yes" xml:space="preserve">
+          <source>Split by every</source>
+          <target state="new">Split by every</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">平均每X页拆分为一个PDF文件</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_Xfiles" translate="yes" xml:space="preserve">
+          <source>files</source>
+          <target state="new">files</target>
+        </trans-unit>
+        <trans-unit id="PageEdit_Xpage" translate="yes" xml:space="preserve">
+          <source>page(s)</source>
+          <target state="new">page(s)</target>
+        </trans-unit>
       </group>
     </body>
   </file>

+ 31 - 23
PDF Office/MultilingualResources/PDF Office.zh-Hant.xlf

@@ -3223,13 +3223,13 @@ Some functions may not work, please restart or re-download PDF Reader Pro from o
           <target state="new">Page</target>
         </trans-unit>
         <trans-unit id="PageEdit_10Envelope" translate="yes" xml:space="preserve">
-          <source>#10 Envelope (105*241mm)</source>
-          <target state="new">#10 Envelope (105*241mm)</target>
+          <source>#10 Envelope </source>
+          <target state="new">#10 Envelope </target>
           <note from="MultilingualBuild" annotates="source" priority="2">10号信封(105*241mm)</note>
         </trans-unit>
         <trans-unit id="PageEdit_Choukei3" translate="yes" xml:space="preserve">
-          <source>Choukei #3 Envelope (120*235mm)</source>
-          <target state="new">Choukei #3 Envelope (120*235mm)</target>
+          <source>Choukei #3 Envelope </source>
+          <target state="new">Choukei #3 Envelope </target>
           <note from="MultilingualBuild" annotates="source" priority="2">Choukei 3信封(120*235mm)</note>
         </trans-unit>
         <trans-unit id="PageEdit_CurrentPage" translate="yes" xml:space="preserve">
@@ -3242,8 +3242,8 @@ Some functions may not work, please restart or re-download PDF Reader Pro from o
           <note from="MultilingualBuild" annotates="source" priority="2">自定义</note>
         </trans-unit>
         <trans-unit id="PageEdit_DLEnvelope" translate="yes" xml:space="preserve">
-          <source>DL Envelope (110*220mm)</source>
-          <target state="new">DL Envelope (110*220mm)</target>
+          <source>DL Envelope </source>
+          <target state="new">DL Envelope </target>
           <note from="MultilingualBuild" annotates="source" priority="2">DL信封(110*220mm)</note>
         </trans-unit>
         <trans-unit id="PageEdit_Extract" translate="yes" xml:space="preserve">
@@ -3306,15 +3306,10 @@ Some functions may not work, please restart or re-download PDF Reader Pro from o
           <note from="MultilingualBuild" annotates="source" priority="2">拆分</note>
         </trans-unit>
         <trans-unit id="PageEdit_SplitAveragelyToXfiles" translate="yes" xml:space="preserve">
-          <source>Split averagely to X files</source>
-          <target state="new">Split averagely to X files</target>
+          <source>Split averagely to</source>
+          <target state="new">Split averagely to</target>
           <note from="MultilingualBuild" annotates="source" priority="2">平均拆分为X个PDF文件</note>
         </trans-unit>
-        <trans-unit id="PageEdit_SplitByEveryXpage(s)" translate="yes" xml:space="preserve">
-          <source>Split by every X page(s)</source>
-          <target state="new">Split by every X page(s)</target>
-          <note from="MultilingualBuild" annotates="source" priority="2">平均每X页拆分为一个PDF文件</note>
-        </trans-unit>
         <trans-unit id="PageEdit_SplitByPageRange" translate="yes" xml:space="preserve">
           <source>Split by page range</source>
           <target state="new">Split by page range</target>
@@ -3340,23 +3335,23 @@ Some functions may not work, please restart or re-download PDF Reader Pro from o
           <note from="MultilingualBuild" annotates="source" priority="2">超大B/A3型(330*483mm)</note>
         </trans-unit>
         <trans-unit id="PageEdit_TabloidPaper" translate="yes" xml:space="preserve">
-          <source>Tabloid Paper (279*432mm)</source>
-          <target state="new">Tabloid Paper (279*432mm)</target>
+          <source>Tabloid Paper </source>
+          <target state="new">Tabloid Paper </target>
           <note from="MultilingualBuild" annotates="source" priority="2">小报用纸(279*432mm)</note>
         </trans-unit>
         <trans-unit id="PageEdit_TabloidPaperBig" translate="yes" xml:space="preserve">
-          <source>Tabloid Paper (305*457mm)</source>
-          <target state="new">Tabloid Paper (305*457mm)</target>
+          <source>Tabloid Paper </source>
+          <target state="new">Tabloid Paper </target>
           <note from="MultilingualBuild" annotates="source" priority="2">小报用纸(特大)(305*457mm)</note>
         </trans-unit>
         <trans-unit id="PageEdit_USLegalPaper" translate="yes" xml:space="preserve">
-          <source>U.S. Legal Paper (216*356mm)</source>
-          <target state="new">U.S. Legal Paper (216*356mm)</target>
+          <source>U.S. Legal Paper </source>
+          <target state="new">U.S. Legal Paper </target>
           <note from="MultilingualBuild" annotates="source" priority="2">美国法定用纸(216*356mm)</note>
         </trans-unit>
         <trans-unit id="PageEdit_USLetterPaper" translate="yes" xml:space="preserve">
-          <source>U.S. Letter Paper (216*279mm)</source>
-          <target state="new">U.S. Letter Paper (216*279mm)</target>
+          <source>U.S. Letter Paper </source>
+          <target state="new">U.S. Letter Paper </target>
           <note from="MultilingualBuild" annotates="source" priority="2">美国信纸(216*279mm)</note>
         </trans-unit>
         <trans-unit id="PageEdit_Cancel" translate="yes" xml:space="preserve">
@@ -3392,8 +3387,8 @@ Some functions may not work, please restart or re-download PDF Reader Pro from o
           <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-拆分-弹窗-按页面范围拆分 自定义输入框,输入错误弹窗 内容</note>
         </trans-unit>
         <trans-unit id="PageEdit_SplitErrorTile" translate="yes" xml:space="preserve">
-          <source>Page range must between 1 and 10</source>
-          <target state="new">Page range must between 1 and 10</target>
+          <source>Page range must between 1 and</source>
+          <target state="new">Page range must between 1 and</target>
           <note from="MultilingualBuild" annotates="source" priority="2">页面编辑-拆分-弹窗-按页面范围拆分 自定义输入框,输入错误弹窗 标题</note>
         </trans-unit>
         <trans-unit id="PageEdit_SplitFileName" translate="yes" xml:space="preserve">
@@ -3414,6 +3409,19 @@ Some functions may not work, please restart or re-download PDF Reader Pro from o
           <source>Replace Page</source>
           <target state="new">Replace Page</target>
         </trans-unit>
+        <trans-unit id="PageEdit_SplitByEvery" translate="yes" xml:space="preserve">
+          <source>Split by every</source>
+          <target state="new">Split by every</target>
+          <note from="MultilingualBuild" annotates="source" priority="2">平均每X页拆分为一个PDF文件</note>
+        </trans-unit>
+        <trans-unit id="PageEdit_Xfiles" translate="yes" xml:space="preserve">
+          <source>files</source>
+          <target state="new">files</target>
+        </trans-unit>
+        <trans-unit id="PageEdit_Xpage" translate="yes" xml:space="preserve">
+          <source>page(s)</source>
+          <target state="new">page(s)</target>
+        </trans-unit>
       </group>
     </body>
   </file>

+ 30 - 12
PDF Office/Strings/MainPage/MainPage.Designer.cs

@@ -1598,7 +1598,7 @@ namespace PDF_Master.Strings.MainPage {
         }
         
         /// <summary>
-        ///   查找类似 #10 Envelope (105*241mm) 的本地化字符串。
+        ///   查找类似 #10 Envelope  的本地化字符串。
         /// </summary>
         public static string PageEdit_10Envelope {
             get {
@@ -1616,7 +1616,7 @@ namespace PDF_Master.Strings.MainPage {
         }
         
         /// <summary>
-        ///   查找类似 Choukei #3 Envelope (120*235mm) 的本地化字符串。
+        ///   查找类似 Choukei #3 Envelope  的本地化字符串。
         /// </summary>
         public static string PageEdit_Choukei3 {
             get {
@@ -1661,7 +1661,7 @@ namespace PDF_Master.Strings.MainPage {
         }
         
         /// <summary>
-        ///   查找类似 DL Envelope (110*220mm) 的本地化字符串。
+        ///   查找类似 DL Envelope  的本地化字符串。
         /// </summary>
         public static string PageEdit_DLEnvelope {
             get {
@@ -1904,7 +1904,7 @@ namespace PDF_Master.Strings.MainPage {
         }
         
         /// <summary>
-        ///   查找类似 Split averagely to X files 的本地化字符串。
+        ///   查找类似 Split averagely to 的本地化字符串。
         /// </summary>
         public static string PageEdit_SplitAveragelyToXfiles {
             get {
@@ -1913,11 +1913,11 @@ namespace PDF_Master.Strings.MainPage {
         }
         
         /// <summary>
-        ///   查找类似 Split by every X page(s) 的本地化字符串。
+        ///   查找类似 Split by every 的本地化字符串。
         /// </summary>
-        public static string PageEdit_SplitByEveryXpage_s_ {
+        public static string PageEdit_SplitByEvery {
             get {
-                return ResourceManager.GetString("PageEdit_SplitByEveryXpage(s)", resourceCulture);
+                return ResourceManager.GetString("PageEdit_SplitByEvery", resourceCulture);
             }
         }
         
@@ -1940,7 +1940,7 @@ namespace PDF_Master.Strings.MainPage {
         }
         
         /// <summary>
-        ///   查找类似 Page range must between 1 and 10 的本地化字符串。
+        ///   查找类似 Page range must between 1 and 的本地化字符串。
         /// </summary>
         public static string PageEdit_SplitErrorTile {
             get {
@@ -2012,7 +2012,7 @@ namespace PDF_Master.Strings.MainPage {
         }
         
         /// <summary>
-        ///   查找类似 Tabloid Paper (279*432mm) 的本地化字符串。
+        ///   查找类似 Tabloid Paper  的本地化字符串。
         /// </summary>
         public static string PageEdit_TabloidPaper {
             get {
@@ -2021,7 +2021,7 @@ namespace PDF_Master.Strings.MainPage {
         }
         
         /// <summary>
-        ///   查找类似 Tabloid Paper (305*457mm) 的本地化字符串。
+        ///   查找类似 Tabloid Paper  的本地化字符串。
         /// </summary>
         public static string PageEdit_TabloidPaperBig {
             get {
@@ -2030,7 +2030,7 @@ namespace PDF_Master.Strings.MainPage {
         }
         
         /// <summary>
-        ///   查找类似 U.S. Legal Paper (216*356mm) 的本地化字符串。
+        ///   查找类似 U.S. Legal Paper  的本地化字符串。
         /// </summary>
         public static string PageEdit_USLegalPaper {
             get {
@@ -2039,7 +2039,7 @@ namespace PDF_Master.Strings.MainPage {
         }
         
         /// <summary>
-        ///   查找类似 U.S. Letter Paper (216*279mm) 的本地化字符串。
+        ///   查找类似 U.S. Letter Paper  的本地化字符串。
         /// </summary>
         public static string PageEdit_USLetterPaper {
             get {
@@ -2047,6 +2047,24 @@ namespace PDF_Master.Strings.MainPage {
             }
         }
         
+        /// <summary>
+        ///   查找类似 files 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_Xfiles {
+            get {
+                return ResourceManager.GetString("PageEdit_Xfiles", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   查找类似 page(s) 的本地化字符串。
+        /// </summary>
+        public static string PageEdit_Xpage {
+            get {
+                return ResourceManager.GetString("PageEdit_Xpage", resourceCulture);
+            }
+        }
+        
         /// <summary>
         ///   查找类似 Invalid page range or the page number is out of range. Please try again. 的本地化字符串。
         /// </summary>

+ 17 - 11
PDF Office/Strings/MainPage/MainPage.resx

@@ -676,14 +676,14 @@ You can also add files or folders via the lower left button.</value>
     <value>Promote</value>
   </data>
   <data name="PageEdit_10Envelope" xml:space="preserve">
-    <value>#10 Envelope (105*241mm)</value>
+    <value>#10 Envelope </value>
     <comment>10号信封(105*241mm)</comment>
   </data>
   <data name="PageEdit_Cancel" xml:space="preserve">
     <value>Cancel</value>
   </data>
   <data name="PageEdit_Choukei3" xml:space="preserve">
-    <value>Choukei #3 Envelope (120*235mm)</value>
+    <value>Choukei #3 Envelope </value>
     <comment>Choukei 3信封(120*235mm)</comment>
   </data>
   <data name="PageEdit_CurrentPage" xml:space="preserve">
@@ -701,7 +701,7 @@ You can also add files or folders via the lower left button.</value>
     <comment>删除全部页面时,提示文案</comment>
   </data>
   <data name="PageEdit_DLEnvelope" xml:space="preserve">
-    <value>DL Envelope (110*220mm)</value>
+    <value>DL Envelope </value>
     <comment>DL信封(110*220mm)</comment>
   </data>
   <data name="PageEdit_EvenPages" xml:space="preserve">
@@ -798,11 +798,11 @@ You can also add files or folders via the lower left button.</value>
     <comment>拆分</comment>
   </data>
   <data name="PageEdit_SplitAveragelyToXfiles" xml:space="preserve">
-    <value>Split averagely to X files</value>
+    <value>Split averagely to</value>
     <comment>平均拆分为X个PDF文件</comment>
   </data>
-  <data name="PageEdit_SplitByEveryXpage(s)" xml:space="preserve">
-    <value>Split by every X page(s)</value>
+  <data name="PageEdit_SplitByEvery" xml:space="preserve">
+    <value>Split by every</value>
     <comment>平均每X页拆分为一个PDF文件</comment>
   </data>
   <data name="PageEdit_SplitByPageRange" xml:space="preserve">
@@ -814,7 +814,7 @@ You can also add files or folders via the lower left button.</value>
     <comment>页面编辑-拆分-弹窗-按页面范围拆分 自定义输入框,输入错误弹窗 内容</comment>
   </data>
   <data name="PageEdit_SplitErrorTile" xml:space="preserve">
-    <value>Page range must between 1 and 10</value>
+    <value>Page range must between 1 and</value>
     <comment>页面编辑-拆分-弹窗-按页面范围拆分 自定义输入框,输入错误弹窗 标题</comment>
   </data>
   <data name="PageEdit_SplitFileName" xml:space="preserve">
@@ -844,21 +844,27 @@ You can also add files or folders via the lower left button.</value>
     <comment>超大B/A3型(330*483mm)</comment>
   </data>
   <data name="PageEdit_TabloidPaper" xml:space="preserve">
-    <value>Tabloid Paper (279*432mm)</value>
+    <value>Tabloid Paper </value>
     <comment>小报用纸(279*432mm)</comment>
   </data>
   <data name="PageEdit_TabloidPaperBig" xml:space="preserve">
-    <value>Tabloid Paper (305*457mm)</value>
+    <value>Tabloid Paper </value>
     <comment>小报用纸(特大)(305*457mm)</comment>
   </data>
   <data name="PageEdit_USLegalPaper" xml:space="preserve">
-    <value>U.S. Legal Paper (216*356mm)</value>
+    <value>U.S. Legal Paper </value>
     <comment>美国法定用纸(216*356mm)</comment>
   </data>
   <data name="PageEdit_USLetterPaper" xml:space="preserve">
-    <value>U.S. Letter Paper (216*279mm)</value>
+    <value>U.S. Letter Paper </value>
     <comment>美国信纸(216*279mm)</comment>
   </data>
+  <data name="PageEdit_Xfiles" xml:space="preserve">
+    <value>files</value>
+  </data>
+  <data name="PageEdit_Xpage" xml:space="preserve">
+    <value>page(s)</value>
+  </data>
   <data name="PageRangeWarning" xml:space="preserve">
     <value>Invalid page range or the page number is out of range. Please try again.</value>
     <comment>页面范围错误提示</comment>

+ 6 - 5
PDF Office/Views/Dialog/PageEditDialogs/ExtractDialog.xaml

@@ -8,6 +8,7 @@
     xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
     xmlns:pageeditdialogs="clr-namespace:PDF_Master.ViewModels.Dialog.PageEditDialogs"
     xmlns:prism="http://prismlibrary.com/"
+    xmlns:mainpage="clr-namespace:PDF_Master.Strings.MainPage"
     Width="432"
     Height="166"
     d:DataContext="{d:DesignInstance Type=pageeditdialogs:ExtractDialogViewModel}"
@@ -16,7 +17,7 @@
     prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
     prism:ViewModelLocator.AutoWireViewModel="True"
     mc:Ignorable="d">
-    <cus:DialogContent Header="提取页面">
+    <cus:DialogContent Header="{ x:Static mainpage:MainPage.PageEdit_ExtractPage}">
         <cus:DialogContent.Content>
             <StackPanel
                 Margin="16,0"
@@ -24,12 +25,12 @@
                 <CheckBox
                     Margin="0,8"
                     VerticalAlignment="Center"
-                    Content="每个页面作为单独页面"
+                    Content="{ x:Static mainpage:MainPage.PageEdit_ExtractTip}"
                     FontFamily="Segoe UI"
                     FontSize="14"
                     IsChecked="{Binding Model.IsEveryPageToFile, Mode=TwoWay}" />
                 <CheckBox
-                    Content="提取后删除页面"
+                    Content="{ x:Static mainpage:MainPage.PageEdit_ExtractDel}"
                     FontFamily="Segoe UI"
                     FontSize="14"
                     IsEnabled="{Binding IsEnabledDeleteAfterExtract}"
@@ -44,7 +45,7 @@
                     Margin="0,0,124,0"
                     HorizontalAlignment="Right"
                     Command="{Binding ExtractCommnad}"
-                    Content="提取"
+                    Content="{ x:Static mainpage:MainPage.PageEdit_Extract}"
                     Style="{StaticResource Btn.cta}" />
                 <Button
                     Width="98"
@@ -52,7 +53,7 @@
                     Margin="16,0"
                     HorizontalAlignment="Right"
                     Command="{Binding CancelCommand}"
-                    Content="取消"
+                    Content="{ x:Static mainpage:MainPage.PageEdit_Cancel}"
                     Style="{StaticResource btn.sec}" />
             </Grid>
         </cus:DialogContent.BottmBar>

+ 3 - 3
PDF Office/Views/Dialog/PageEditDialogs/InsertDialog.xaml

@@ -251,7 +251,7 @@
                         FontSize="12"
                         FontWeight="SemiBold"
                         Foreground="{StaticResource color.sys.text.neutral.lv2}"
-                        Text="方向" />
+                        Text="{ x:Static mainpage:MainPage.Print_Orientation}" />
                     <StackPanel Orientation="Horizontal">
                         <RadioButton
                             Width="86"
@@ -285,7 +285,7 @@
                     Margin="16,0"
                     HorizontalAlignment="Right"
                     Command="{Binding CancelCommand}"
-                    Content="取消"
+                    Content="{ x:Static mainpage:MainPage.PageEdit_Cancel}"
                     Style="{StaticResource btn.sec}" />
                 <Button
                     Width="98"
@@ -293,7 +293,7 @@
                     Margin="124,0"
                     HorizontalAlignment="Right"
                     Command="{Binding InsertCommnad}"
-                    Content="插入"
+                    Content="{ x:Static mainpage:MainPage.PageEdit_Insert}"
                     Style="{StaticResource Btn.cta}" />
             </Grid>
         </cus:DialogContent.BottmBar>

+ 14 - 13
PDF Office/Views/Dialog/PageEditDialogs/SplitDialog.xaml

@@ -8,6 +8,7 @@
     xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
     xmlns:pageeditdialogs="clr-namespace:PDF_Master.ViewModels.Dialog.PageEditDialogs"
     xmlns:prism="http://prismlibrary.com/"
+    xmlns:mainpage="clr-namespace:PDF_Master.Strings.MainPage"
     Width="468"
     Height="464"
     d:DataContext="{d:DesignInstance Type=pageeditdialogs:SplitDialogViewModel}"
@@ -16,7 +17,7 @@
     prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
     prism:ViewModelLocator.AutoWireViewModel="True"
     mc:Ignorable="d">
-    <cus:DialogContent Header="拆分页面">
+    <cus:DialogContent Header="{ x:Static mainpage:MainPage.PageEdit_SplitPage}">
         <cus:DialogContent.Content>
             <Grid>
                 <Grid.RowDefinitions>
@@ -29,14 +30,14 @@
                         FontSize="12"
                         FontWeight="SemiBold"
                         Foreground="{StaticResource color.sys.text.neutral.lv2}"
-                        Text="拆分方式" />
+                        Text="{ x:Static mainpage:MainPage.PageEdit_SplitMethod}" />
                     <StackPanel Margin="0,15" Orientation="Horizontal">
                         <RadioButton
                             Name="RbtnPage"
                             Height="24"
                             VerticalAlignment="Center"
                             VerticalContentAlignment="Center"
-                            Content="平均每"
+                            Content="{x:Static mainpage:MainPage.PageEdit_SplitByEvery}"
                             FontFamily="Segoe UI"
                             FontSize="14"
                             GroupName="SplitMode"
@@ -53,14 +54,14 @@
                             VerticalAlignment="Center"
                             FontFamily="Segoe UI"
                             FontSize="14"
-                            Text="页拆分为一个PDF文件" />
+                            Text="{x:Static mainpage:MainPage.PageEdit_Xpage}" />
                     </StackPanel>
                     <StackPanel Margin="0,0,0,15" Orientation="Horizontal">
                         <RadioButton
                             Name="RbtnPdf"
                             VerticalAlignment="Center"
                             VerticalContentAlignment="Center"
-                            Content="平均拆分为"
+                            Content="{x:Static mainpage:MainPage.PageEdit_SplitAveragelyToXfiles}"
                             FontFamily="Segoe UI"
                             FontSize="14"
                             GroupName="SplitMode"
@@ -77,14 +78,14 @@
                             VerticalAlignment="Center"
                             FontFamily="Segoe UI"
                             FontSize="14"
-                            Text="个PDF文件" />
+                            Text="{x:Static mainpage:MainPage.PageEdit_Xfiles}" />
                     </StackPanel>
                     <StackPanel Margin="0,0,0,15" Orientation="Horizontal">
                         <RadioButton
                             x:Name="RbtnPagerange"
                             VerticalAlignment="Center"
                             VerticalContentAlignment="Center"
-                            Content="按页面范围拆分"
+                            Content="{x:Static mainpage:MainPage.PageEdit_SplitByPageRange}"
                             FontFamily="Segoe UI"
                             FontSize="14"
                             GroupName="SplitMode"
@@ -107,7 +108,7 @@
                         FontSize="12"
                         FontWeight="SemiBold"
                         Foreground="{StaticResource color.sys.text.neutral.lv2}"
-                        Text="文档命名" />
+                        Text="{x:Static mainpage:MainPage.PageEdit_SplitFileName}" />
                     <TextBox
                         Width="360"
                         Height="32"
@@ -131,7 +132,7 @@
                         Margin="0,8"
                         HorizontalAlignment="Left"
                         VerticalContentAlignment="Center"
-                        Content="将原始文档名前置"
+                        Content="{x:Static mainpage:MainPage.PageEdit_ShowOriginalFileNameInFront}"
                         FontFamily="Segoe UI"
                         FontSize="14"
                         IsChecked="{Binding Model.IsSourceNameFront}" />
@@ -142,7 +143,7 @@
                             Width="{Binding ElementName=ChkSeparator, Path=ActualWidth}"
                             Margin="0,6"
                             VerticalContentAlignment="Center"
-                            Content="标签"
+                            Content="{x:Static mainpage:MainPage.PageEdit_SplitLabel}"
                             FontFamily="Segoe UI"
                             FontSize="14"
                             IsChecked="{Binding Model.HasLabel}" />
@@ -165,7 +166,7 @@
                             Name="ChkSeparator"
                             Margin="0,6"
                             VerticalContentAlignment="Center"
-                            Content="分隔符"
+                            Content="{x:Static mainpage:MainPage.PageEdit_SplitSeparator}"
                             FontFamily="Segoe UI"
                             FontSize="14"
                             IsChecked="{Binding Model.HasDeimiter}" />
@@ -194,7 +195,7 @@
                     Margin="16,0"
                     HorizontalAlignment="Right"
                     Command="{Binding CancelCommand}"
-                    Content="取消"
+                    Content="{x:Static mainpage:MainPage.PageEdit_Cancel}"
                     Style="{StaticResource btn.sec}" />
                 <Button
                     Width="98"
@@ -202,7 +203,7 @@
                     Margin="124,0"
                     HorizontalAlignment="Right"
                     Command="{Binding SplitCommnad}"
-                    Content="拆分"
+                    Content="{x:Static mainpage:MainPage.PageEdit_Split}"
                     Style="{StaticResource Btn.cta}" />
             </Grid>
         </cus:DialogContent.BottmBar>