修正readme部分翻译,divider国际化支持(Corrected the translation of readme, and supported divider internationalization)

This commit is contained in:
czz_y 2025-01-17 17:19:09 +08:00
parent bf7caca00f
commit 8225018bfb
6 changed files with 25 additions and 4 deletions

View File

@ -117,6 +117,19 @@ namespace AntdUIDemo.Languages
case "copyfail":
return "Copy failed!";
#endregion
#region Divider
case "Divider.Text":
return "Divider";
case "Divider.Description":
return "A divider line separates different content.";
case "basicusage":
return "Basic Usage";
case "vertical":
return "Vertical";
case "horizontal":
return "Horizontal";
#endregion
default:
return null;

View File

@ -18,7 +18,7 @@ English | <a href="README.md">中文</a>
>4. Compile and run
## ⚠️ Precautions
- The computer screen resolution is lower than 1920×1080 (1080P). Please use a screen with a resolution greater than or equal to 1080P to develop
- If the computer screen resolution is lower than 1920×1080 (1080P), please use a screen with a resolution greater than or equal to 1080P.
- If `TargetFramework` is set to `net6.0-windows7.0` or later, you can directly open the form interface and display the following prompt
![coredesign](assets/screenshots/coredesign-en.png)
- If the `TargetFramework` is set to `net48` or lower, and the computer screen resolution is greater than 1080P or the scaling is not at 100%, it is essential to open the project using one of the following methods. For detailed reasons, please refer to [Fix HDPI/scaling issues with Windows Forms Designer in Visual Studio](https://learn.microsoft.com/zh-cn/visualstudio/designers/disable-dpi-awareness?view=vs-2022)
@ -50,7 +50,7 @@ English | <a href="README.md">中文</a>
### Layout
#### Divider
![Divider](assets/screenshots/Divider.png)
![Divider](assets/screenshots/Divider-en.png)
#### FlowPanel
![FlowPanel](assets/screenshots/FlowPanel.png)
#### GridPanel

View File

@ -23,7 +23,6 @@
![coredesign](assets/screenshots/coredesign.png)
- 如果 `TargetFramework` 设置为 `net48` 及以下且电脑屏幕分辨率大于 1080P 或者缩放不是 100% 的,务必选择以下任一方式打开项目,详细原因见 [解决 Visual Studio 中 Windows 窗体设计器的 HDPI/缩放问题](https://learn.microsoft.com/zh-cn/visualstudio/designers/disable-dpi-awareness?view=vs-2022)
1. 使用 `devenv /noScale` 命令启动 Visual Studio 并点击`文件-打开-项目/解决方案`,如下所示
![vsstart](assets/screenshots/vsstart.png)
![vsopen](assets/screenshots/vsopen.png)
2. 直接打开项目,在窗口页面提示点击 **使用 100% 缩放比例重新启动 Visual Studio**,如下所示
![design](assets/screenshots/design.png)

View File

@ -50,6 +50,8 @@
this.header1.DividerShow = true;
this.header1.Dock = System.Windows.Forms.DockStyle.Top;
this.header1.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
this.header1.LocalizationDescription = "Divider.Description";
this.header1.LocalizationText = "Divider.Text";
this.header1.Location = new System.Drawing.Point(0, 0);
this.header1.Name = "header1";
this.header1.Padding = new System.Windows.Forms.Padding(0, 0, 0, 10);
@ -95,13 +97,14 @@
this.divider_null.Name = "divider_null";
this.divider_null.Size = new System.Drawing.Size(616, 23);
this.divider_null.TabIndex = 78;
this.divider_null.Text = "水平";
this.divider_null.Text = "";
//
// divider8
//
this.divider8.ColorSplit = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(235)))), ((int)(((byte)(59)))));
this.divider8.Dock = System.Windows.Forms.DockStyle.Top;
this.divider8.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.divider8.LocalizationText = "horizontal";
this.divider8.Location = new System.Drawing.Point(128, 46);
this.divider8.Name = "divider8";
this.divider8.Orientation = AntdUI.TOrientation.Right;
@ -114,6 +117,7 @@
this.divider7.ColorSplit = System.Drawing.Color.FromArgb(((int)(((byte)(3)))), ((int)(((byte)(169)))), ((int)(((byte)(244)))));
this.divider7.Dock = System.Windows.Forms.DockStyle.Top;
this.divider7.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.divider7.LocalizationText = "horizontal";
this.divider7.Location = new System.Drawing.Point(128, 23);
this.divider7.Name = "divider7";
this.divider7.Orientation = AntdUI.TOrientation.Left;
@ -125,6 +129,7 @@
//
this.divider2.Dock = System.Windows.Forms.DockStyle.Top;
this.divider2.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.divider2.LocalizationText = "horizontal";
this.divider2.Location = new System.Drawing.Point(128, 0);
this.divider2.Name = "divider2";
this.divider2.Size = new System.Drawing.Size(616, 23);
@ -147,6 +152,7 @@
this.divider6.ColorSplit = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(235)))), ((int)(((byte)(59)))));
this.divider6.Dock = System.Windows.Forms.DockStyle.Left;
this.divider6.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.divider6.LocalizationText = "vertical";
this.divider6.Location = new System.Drawing.Point(64, 0);
this.divider6.Name = "divider6";
this.divider6.Orientation = AntdUI.TOrientation.Right;
@ -160,6 +166,7 @@
this.divider5.ColorSplit = System.Drawing.Color.FromArgb(((int)(((byte)(3)))), ((int)(((byte)(169)))), ((int)(((byte)(244)))));
this.divider5.Dock = System.Windows.Forms.DockStyle.Left;
this.divider5.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.divider5.LocalizationText = "vertical";
this.divider5.Location = new System.Drawing.Point(32, 0);
this.divider5.Name = "divider5";
this.divider5.Orientation = AntdUI.TOrientation.Left;
@ -172,6 +179,7 @@
//
this.divider3.Dock = System.Windows.Forms.DockStyle.Left;
this.divider3.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.divider3.LocalizationText = "vertical";
this.divider3.Location = new System.Drawing.Point(0, 0);
this.divider3.Name = "divider3";
this.divider3.Size = new System.Drawing.Size(32, 371);
@ -182,6 +190,7 @@
// label4
//
this.label4.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label4.LocalizationText = "basicusage";
this.label4.Location = new System.Drawing.Point(3, 3);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(744, 24);

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 247 KiB

After

Width:  |  Height:  |  Size: 96 KiB