Skip to content

Commit 4cafa4e

Browse files
authored
doc(Translation): translate comments and documentation from Chinese to English (#5604)
* refactor: 文档注释更改为英语 * doc: 更新文档注释 * doc: 文档注释更改为英文 * doc: 文档注释更改为英文 * doc: 更新文档注释 * test: 更新单元测试
1 parent 88e446f commit 4cafa4e

14 files changed

+147
-222
lines changed

src/BootstrapBlazor/Attributes/AutoGenerateBaseAttribute.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,69 +6,69 @@
66
namespace BootstrapBlazor.Components;
77

88
/// <summary>
9-
/// AutoGenerateColumn 标签基类,用于 <see cref="Table{TItem}"/> 标识自动生成列
9+
/// Base class for AutoGenerateColumn attribute, used to mark auto-generated columns in <see cref="Table{TItem}"/>
1010
/// </summary>
1111
public abstract class AutoGenerateBaseAttribute : Attribute
1212
{
1313
/// <summary>
14-
/// 获得/设置 当前列是否可编辑 默认为 true 当设置为 false 时自动生成编辑 UI 不生成此列
14+
/// Gets or sets whether the current column is editable. Default is true. When set to false, the auto-generated edit UI will not generate this column.
1515
/// </summary>
16-
[Obsolete("已弃用,是否可编辑改用 Readonly 参数,是否可见改用 Ignore 参数; Deprecated If it is editable, use the Readonly parameter. If it is visible, use the Ignore parameter.")]
16+
[Obsolete("Deprecated. If it is editable, use the Readonly parameter. If it is visible, use the Ignore parameter.")]
1717
[ExcludeFromCodeCoverage]
1818
public bool Editable { get; set; } = true;
1919

2020
/// <summary>
21-
/// 获得/设置 当前列是否渲染 默认为 false 当设置为 true UI 不生成此列
21+
/// Gets or sets whether the current column is rendered. Default is false. When set to true, the UI will not generate this column.
2222
/// </summary>
2323
public bool Ignore { get; set; }
2424

2525
/// <summary>
26-
/// 获得/设置 当前编辑项是否只读 默认为 false
26+
/// Gets or sets whether the current edit item is read-only. Default is false.
2727
/// </summary>
2828
public bool Readonly { get; set; }
2929

3030
/// <summary>
31-
/// 获得/设置 当前编辑项是否显示 默认为 true
31+
/// Gets or sets whether the current edit item is visible. Default is true.
3232
/// </summary>
3333
public bool Visible { get; set; } = true;
3434

3535
/// <summary>
36-
/// 获得/设置 是否允许排序 默认为 false
36+
/// Gets or sets whether sorting is allowed. Default is false.
3737
/// </summary>
3838
public bool Sortable { get; set; }
3939

4040
/// <summary>
41-
/// 获得/设置 是否允许过滤数据 默认为 false
41+
/// Gets or sets whether data filtering is allowed. Default is false.
4242
/// </summary>
4343
public bool Filterable { get; set; }
4444

4545
/// <summary>
46-
/// 获得/设置 是否参与搜索 默认为 false
46+
/// Gets or sets whether the column participates in search. Default is false.
4747
/// </summary>
4848
public bool Searchable { get; set; }
4949

5050
/// <summary>
51-
/// 获得/设置 本列是否允许换行 默认为 false
51+
/// Gets or sets whether text wrapping is allowed in this column. Default is false.
5252
/// </summary>
5353
public bool TextWrap { get; set; }
5454

5555
/// <summary>
56-
/// 获得/设置 本列文本超出省略 默认为 false
56+
/// Gets or sets whether text overflow is ellipsis in this column. Default is false.
5757
/// </summary>
5858
public bool TextEllipsis { get; set; }
5959

6060
/// <summary>
61-
/// 获得/设置 文字对齐方式 默认为 Alignment.None
61+
/// Gets or sets the text alignment. Default is Alignment.None.
6262
/// </summary>
6363
public Alignment Align { get; set; }
6464

6565
/// <summary>
66-
/// 获得/设置 字段鼠标悬停提示 默认为 false
66+
/// Gets or sets whether to show tooltips on mouse hover. Default is false.
6767
/// </summary>
6868
public bool ShowTips { get; set; }
6969

7070
/// <summary>
71-
/// 获得/设置 是否可以拷贝列 默认 false 不可以
71+
/// Gets or sets whether the column can be copied. Default is false.
7272
/// </summary>
7373
public bool ShowCopyColumn { get; set; }
7474
}

src/BootstrapBlazor/Attributes/AutoGenerateClassAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
namespace BootstrapBlazor.Components;
77

88
/// <summary>
9-
/// AutoGenerateColumn 标签类,用于 <see cref="Table{TItem}"/> 标识自动生成列
9+
/// AutoGenerateColumn attribute class, used to mark auto-generated columns in <see cref="Table{TItem}"/>
1010
/// </summary>
1111
[AttributeUsage(AttributeTargets.Class)]
1212
public class AutoGenerateClassAttribute : AutoGenerateBaseAttribute

0 commit comments

Comments
 (0)