Browse Source

ComPDFKit.Demo(win) - 文案调整

TangJinZhou 3 months ago
parent
commit
5e267e212e

+ 3 - 3
Demo/Examples/Compdfkit.Controls/Edit/PDFPathEdit/PDFPathEditControl/PDFPathEditControl.xaml

@@ -21,15 +21,15 @@
     <ScrollViewer VerticalScrollBarVisibility="Auto">
         <StackPanel>
             <Border Background="White" Height="36">
-                <TextBlock FontSize="14" FontWeight="Bold" HorizontalAlignment="Center" Foreground="#42464D" VerticalAlignment="Center" Text="Path属性"></TextBlock>
+                <TextBlock FontSize="14" FontWeight="Bold" HorizontalAlignment="Center" Foreground="#42464D" VerticalAlignment="Center" Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Title_PathProperty}"></TextBlock>
             </Border>
 
             <StackPanel Grid.Row="1">
                 <TextBlock Margin="0,20,0,0" Foreground="#0E1114" FontSize="14"
-                       Text="边框颜色"></TextBlock>
+                       Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Property_StrokeColor}"></TextBlock>
                 <common:ColorPickerControl x:Name="StrokeColorUI" Grid.Row="1" Margin="0,20,0,0" TransparentBtnProperty="Collapsed"></common:ColorPickerControl>
                 <TextBlock Margin="0,20,0,0" Foreground="#0E1114" FontSize="14"
-                       Text="填充颜色"></TextBlock>
+                       Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Property_FillColor}"></TextBlock>
 
                 <common:ColorPickerControl x:Name="FillColorUI" Grid.Row="1" Margin="0,20,0,0" TransparentBtnProperty="Collapsed"></common:ColorPickerControl>
             </StackPanel>

+ 2 - 2
Demo/Examples/Compdfkit.Controls/Edit/PDFTextEdit/PDFTextEditControl/PDFTextEditControl.xaml

@@ -98,8 +98,8 @@
                 <local:CPDFTextAlignUI x:Name="TextAlignUI" Grid.Row="5" FontSize="16" Margin="0,20,0,0" Width="150" HorizontalAlignment="Left"></local:CPDFTextAlignUI>
 
                 <StackPanel Grid.Row="6" Margin="0,20,0,0">
-                    <CheckBox x:Name="chkMulti" IsChecked="{Binding IsMultiSelected}" Content="Multi Selected" Click="chkMulti_Click"></CheckBox>
-                    <CheckBox x:Name="chkEditPen" IsChecked="{Binding ShowBorder}" Content="Show Border" Margin="0,10,0,0" Click="chkEditPen_Click"></CheckBox>
+                    <CheckBox x:Name="chkMulti" IsChecked="{Binding IsMultiSelected}" Content="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Option_MultiSelect}" Click="chkMulti_Click"></CheckBox>
+                    <CheckBox x:Name="chkEditPen" IsChecked="{Binding ShowBorder}" Content="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Option_ShowBorder}" Margin="0,10,0,0" Click="chkEditPen_Click"></CheckBox>
                 </StackPanel>
             </Grid>
         </Grid>

+ 1 - 1
Demo/Examples/Compdfkit.Controls/PDFView/PDFSearch/PDFSearchUI/CPDFSearchInputUI.xaml

@@ -48,7 +48,7 @@
         <Grid Grid.Column="1">
             <Button Name="SearchBtn" Style="{StaticResource ButtonStyle}"  Width="56" Height="30" FontSize="14" Click="SearchBtn_Click"
                     IsEnabled="{Binding ElementName=SearchTextBox,Path=Text,Converter={StaticResource TextLengthToBoolConverter}}"
-                    Content="{Binding Converter={StaticResource BotaResourceConverter},ConverterParameter=Button_Done}">
+                    Content="{Binding Converter={StaticResource BotaResourceConverter},ConverterParameter=Button_Search}">
             </Button>
         </Grid>
 

+ 5 - 3
Demo/Examples/Compdfkit.Controls/Printer/PrinterDialog.xaml

@@ -81,15 +81,17 @@
                     </StackPanel>
                     <StackPanel Orientation="Horizontal"  Margin="0,0,0,8">
                         <TextBlock                                            
-                             Width="64"
+                            Width="74"
                             Height="22" 
                             FontFamily="Segoe UI"
-                            FontSize="14" Text="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Printer_Oritation}"></TextBlock>
+                            FontSize="14" 
+                            Text="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Printer_Oritation}"></TextBlock> 
+
                         <ComboBox       
                             x:Name="cmbOrientation"
                             Style="{StaticResource ComboBoxStyle1}" 
                             SelectionChanged="cmbOrientation_SelectionChanged"
-                            Width="155"
+                            Width="145"
                             Height="24" 
                             Loaded="cmbOrientation_Loaded" >
                             <ComboBoxItem Tag="Portrait">

+ 2 - 2
Demo/Examples/Compdfkit.Controls/Strings/Bota.Designer.cs

@@ -160,7 +160,7 @@ namespace ComPDFKit.Controls.Strings {
         }
         
         /// <summary>
-        ///   Looks up a localized string similar to Match Whole Word.
+        ///   Looks up a localized string similar to Whole Words Only.
         /// </summary>
         internal static string Chb_Match {
             get {
@@ -241,7 +241,7 @@ namespace ComPDFKit.Controls.Strings {
         }
         
         /// <summary>
-        ///   Looks up a localized string similar to Delete a replies.
+        ///   Looks up a localized string similar to Delete all replies.
         /// </summary>
         internal static string Menu_DelAllReply {
             get {

+ 1 - 1
Demo/Examples/Compdfkit.Controls/Strings/Bota.resx

@@ -244,7 +244,7 @@
     <value>Ignore Case</value>
   </data>
   <data name="Chb_Match" xml:space="preserve">
-    <value>Match Whole Word</value>
+    <value>Whole Words Only</value>
   </data>
   <data name="Button_Search" xml:space="preserve">
     <value>Search</value>

+ 47 - 2
Demo/Examples/Compdfkit.Controls/Strings/Common.Designer.cs

@@ -826,7 +826,7 @@ namespace ComPDFKit.Controls.Strings {
         }
         
         /// <summary>
-        ///   Looks up a localized string similar to .
+        ///   Looks up a localized string similar to Auto.
         /// </summary>
         internal static string Printer_Auto {
             get {
@@ -843,6 +843,24 @@ namespace ComPDFKit.Controls.Strings {
             }
         }
         
+        /// <summary>
+        ///   Looks up a localized string similar to Border.
+        /// </summary>
+        internal static string Printer_Border {
+            get {
+                return ResourceManager.GetString("Printer_Border", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Borderless Printing.
+        /// </summary>
+        internal static string Printer_Borderless {
+            get {
+                return ResourceManager.GetString("Printer_Borderless", resourceCulture);
+            }
+        }
+        
         /// <summary>
         ///   Looks up a localized string similar to Content.
         /// </summary>
@@ -897,6 +915,24 @@ namespace ComPDFKit.Controls.Strings {
             }
         }
         
+        /// <summary>
+        ///   Looks up a localized string similar to Fit to Page.
+        /// </summary>
+        internal static string Printer_FitPage {
+            get {
+                return ResourceManager.GetString("Printer_FitPage", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to Fit to Printable Area.
+        /// </summary>
+        internal static string Printer_FitPrintable {
+            get {
+                return ResourceManager.GetString("Printer_FitPrintable", resourceCulture);
+            }
+        }
+        
         /// <summary>
         ///   Looks up a localized string similar to Gray Scale.
         /// </summary>
@@ -952,7 +988,7 @@ namespace ComPDFKit.Controls.Strings {
         }
         
         /// <summary>
-        ///   Looks up a localized string similar to Oritation.
+        ///   Looks up a localized string similar to Orientation.
         /// </summary>
         internal static string Printer_Oritation {
             get {
@@ -1383,6 +1419,15 @@ namespace ComPDFKit.Controls.Strings {
             }
         }
         
+        /// <summary>
+        ///   Looks up a localized string similar to Content Selection Tool.
+        /// </summary>
+        internal static string Tooltip_Select {
+            get {
+                return ResourceManager.GetString("Tooltip_Select", resourceCulture);
+            }
+        }
+        
         /// <summary>
         ///   Looks up a localized string similar to Sepia.
         /// </summary>

+ 1 - 1
Demo/Examples/Compdfkit.Controls/Strings/Common.resx

@@ -562,7 +562,7 @@
     <value>Only Odd Pages</value>
   </data>
   <data name="Printer_Oritation" xml:space="preserve">
-    <value>Oritation</value>
+    <value>Orientation</value>
   </data>
   <data name="Printer_PageRange" xml:space="preserve">
     <value>Page Range</value>

+ 10 - 1
Demo/Examples/Compdfkit.Controls/Strings/Compress.Designer.cs

@@ -115,7 +115,7 @@ namespace ComPDFKit.Controls.Strings {
         }
         
         /// <summary>
-        ///   Looks up a localized string similar to Optimization Options.
+        ///   Looks up a localized string similar to Compress Quality.
         /// </summary>
         internal static string Compress_OptimizationQuality {
             get {
@@ -339,6 +339,15 @@ namespace ComPDFKit.Controls.Strings {
             }
         }
         
+        /// <summary>
+        ///   Looks up a localized string similar to The file cannot be opened because the file format or file extension is invalid. Please make sure the file is not damaged and the file extension matches the file format..
+        /// </summary>
+        internal static string Main_OpenFileFailedWarning {
+            get {
+                return ResourceManager.GetString("Main_OpenFileFailedWarning", resourceCulture);
+            }
+        }
+        
         /// <summary>
         ///   Looks up a localized string similar to Please select a folder.
         /// </summary>

+ 4 - 1
Demo/Examples/Compdfkit.Controls/Strings/Compress.resx

@@ -142,7 +142,7 @@
     <value>Compress files succeeded!</value>
   </data>
   <data name="Compress_OptimizationQuality" xml:space="preserve">
-    <value>Optimization Options</value>
+    <value>Compress Quality</value>
   </data>
   <data name="ContentSelection_CancelDo" xml:space="preserve">
     <value>Undo</value>
@@ -210,6 +210,9 @@
   <data name="Main_Ok" xml:space="preserve">
     <value>OK</value>
   </data>
+  <data name="Main_OpenFileFailedWarning" xml:space="preserve">
+    <value>The file cannot be opened because the file format or file extension is invalid. Please make sure the file is not damaged and the file extension matches the file format.</value>
+  </data>
   <data name="Main_OpenFolderNoteWarning" xml:space="preserve">
     <value>Please select a folder</value>
   </data>

+ 4 - 1
Demo/Examples/Compdfkit.Controls/Strings/Compress.zh.resx

@@ -142,7 +142,7 @@
     <value>压缩文件成功!</value>
   </data>
   <data name="Compress_OptimizationQuality" xml:space="preserve">
-    <value>优化选项</value>
+    <value>压缩质量</value>
   </data>
   <data name="ContentSelection_CancelDo" xml:space="preserve">
     <value>撤销</value>
@@ -210,6 +210,9 @@
   <data name="Main_Ok" xml:space="preserve">
     <value>确认</value>
   </data>
+  <data name="Main_OpenFileFailedWarning" xml:space="preserve">
+    <value>无法打开文件,因为文件格式或文件扩展名无效。请确定文件未损坏,并且文件扩展名与文件的格式匹配。</value>
+  </data>
   <data name="Main_OpenFolderNoteWarning" xml:space="preserve">
     <value>请选择文件夹</value>
   </data>

+ 27 - 0
Demo/Examples/Compdfkit.Controls/Strings/PropertyPanel.Designer.cs

@@ -582,6 +582,15 @@ namespace ComPDFKit.Controls.Strings {
             }
         }
         
+        /// <summary>
+        ///   Looks up a localized string similar to Multi Select.
+        /// </summary>
+        internal static string Option_MultiSelect {
+            get {
+                return ResourceManager.GetString("Option_MultiSelect", resourceCulture);
+            }
+        }
+        
         /// <summary>
         ///   Looks up a localized string similar to Visible but doesn&apos;t print.
         /// </summary>
@@ -600,6 +609,15 @@ namespace ComPDFKit.Controls.Strings {
             }
         }
         
+        /// <summary>
+        ///   Looks up a localized string similar to Show Border.
+        /// </summary>
+        internal static string Option_ShowBorder {
+            get {
+                return ResourceManager.GetString("Option_ShowBorder", resourceCulture);
+            }
+        }
+        
         /// <summary>
         ///   Looks up a localized string similar to Visible.
         /// </summary>
@@ -1365,6 +1383,15 @@ namespace ComPDFKit.Controls.Strings {
             }
         }
         
+        /// <summary>
+        ///   Looks up a localized string similar to Path Properties.
+        /// </summary>
+        internal static string Title_PathProperty {
+            get {
+                return ResourceManager.GetString("Title_PathProperty", resourceCulture);
+            }
+        }
+        
         /// <summary>
         ///   Looks up a localized string similar to Preferences.
         /// </summary>

+ 9 - 0
Demo/Examples/Compdfkit.Controls/Strings/PropertyPanel.resx

@@ -600,4 +600,13 @@
   <data name="Property_LineShape" xml:space="preserve">
     <value>Line and Border Shape</value>
   </data>
+  <data name="Option_MultiSelect" xml:space="preserve">
+    <value>Multi Select</value>
+  </data>
+  <data name="Option_ShowBorder" xml:space="preserve">
+    <value>Show Border</value>
+  </data>
+  <data name="Title_PathProperty" xml:space="preserve">
+    <value>Path Properties</value>
+  </data>
 </root>

+ 9 - 0
Demo/Examples/Compdfkit.Controls/Strings/PropertyPanel.zh.resx

@@ -600,4 +600,13 @@
   <data name="Property_LineShape" xml:space="preserve">
     <value>线条形状</value>
   </data>
+  <data name="Option_MultiSelect" xml:space="preserve">
+    <value>多选</value>
+  </data>
+  <data name="Option_ShowBorder" xml:space="preserve">
+    <value>显示边框</value>
+  </data>
+  <data name="Title_PathProperty" xml:space="preserve">
+    <value>路径属性</value>
+  </data>
 </root>