Skip to content

Commit 3445b76

Browse files
authored
doc(Labels): update localizer content (#7617)
* doc(Labels): update localizer content * doc: 更新命名空间 * doc: 更新中文资源文件
1 parent f97b613 commit 3445b76

File tree

3 files changed

+31
-31
lines changed

3 files changed

+31
-31
lines changed

src/BootstrapBlazor.Server/Components/Samples/Labels.razor

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
</DemoBlock>
7474

7575
<DemoBlock Title="@Localizer["LabelsEditorFormTitle"]" Introduction="@Localizer["LabelsEditorFormIntro"]" Name="EditorForm">
76-
<p>@((MarkupString)Localizer["LabelsEditorFormDescription1"].Value)</p>
76+
<section ignore>@((MarkupString)Localizer["LabelsEditorFormDescription1"].Value)</section>
7777
<GroupBox>
7878
<EditorForm Model="@Dummy2" ShowLabel="false" RowType="RowType.Inline" ItemsPerRow="2">
7979
<FieldItems>
@@ -83,7 +83,7 @@
8383
</EditorForm>
8484
</GroupBox>
8585

86-
<p class="mt-3">@((MarkupString)Localizer["LabelsEditorFormDescription2"].Value)</p>
86+
<section ignore>@((MarkupString)Localizer["LabelsEditorFormDescription2"].Value)</section>
8787
<GroupBox>
8888
<EditorForm Model="@Dummy2" RowType="RowType.Inline" ItemsPerRow="2">
8989
<FieldItems>
@@ -93,7 +93,7 @@
9393
</EditorForm>
9494
</GroupBox>
9595

96-
<p class="mt-3">@((MarkupString)Localizer["EditorFormLabelAlignRight"].Value)</p>
96+
<section>@((MarkupString)Localizer["EditorFormLabelAlignRight"].Value)</section>
9797
<GroupBox>
9898
<EditorForm Model="@Dummy2" ShowLabel="true" RowType="RowType.Inline" ItemsPerRow="2" LabelAlign="Alignment.Right">
9999
<FieldItems>
@@ -103,7 +103,7 @@
103103
</EditorForm>
104104
</GroupBox>
105105

106-
<p class="mt-3">@((MarkupString)Localizer["EditorFormLabelAlignCenter"].Value)</p>
106+
<section ignore>@((MarkupString)Localizer["EditorFormLabelAlignCenter"].Value)</section>
107107
<GroupBox>
108108
<EditorForm Model="@Dummy2" ShowLabel="true" RowType="RowType.Inline" ItemsPerRow="2" LabelAlign="Alignment.Center">
109109
<FieldItems>
@@ -115,7 +115,7 @@
115115
</DemoBlock>
116116

117117
<DemoBlock Title="@Localizer["LabelsValidateForm1Title"]" Introduction="@Localizer["LabelsValidateForm1Intro"]" Name="ValidateForm">
118-
<p>@((MarkupString)Localizer["LabelsValidateForm1Description1"].Value)</p>
118+
<section ignore>@((MarkupString)Localizer["LabelsValidateForm1Description1"].Value)</section>
119119

120120
<GroupBox>
121121
<ValidateForm Model="@Dummy3">
@@ -128,7 +128,7 @@
128128
</ValidateForm>
129129
</GroupBox>
130130

131-
<p class="mt-3">@((MarkupString)Localizer["LabelsValidateForm1Description2"].Value)</p>
131+
<section ignore>@((MarkupString)Localizer["LabelsValidateForm1Description2"].Value)</section>
132132
<GroupBox>
133133
<ValidateForm Model="@Dummy3" ShowLabel="false">
134134
<EditorForm TModel="Foo" RowType="RowType.Inline" ItemsPerRow="2">
@@ -142,7 +142,7 @@
142142
</DemoBlock>
143143

144144
<DemoBlock Title="@Localizer["LabelsValidateForm2Title"]" Introduction="@Localizer["LabelsValidateForm2Intro"]" Name="ShowLabel">
145-
<p>@((MarkupString)Localizer["LabelsValidateForm2Description1"].Value)</p>
145+
<section ignore>@((MarkupString)Localizer["LabelsValidateForm2Description1"].Value)</section>
146146
<ValidateForm Model="@Dummy4">
147147
<div class="row g-3">
148148
<div class="col-sm-12 col-md-6">
@@ -154,7 +154,7 @@
154154
</div>
155155
</ValidateForm>
156156

157-
<p class="mt-3">@((MarkupString)Localizer["LabelsValidateForm2Description2"].Value)</p>
157+
<section ignore>@((MarkupString)Localizer["LabelsValidateForm2Description2"].Value)</section>
158158
<ValidateForm Model="@Dummy4" ShowLabel="false">
159159
<div class="row g-3">
160160
<div class="col-sm-12 col-md-6">
@@ -166,7 +166,7 @@
166166
</div>
167167
</ValidateForm>
168168

169-
<p class="mt-3">@((MarkupString)Localizer["LabelsValidateForm2Description3"].Value)</p>
169+
<section ignore>@((MarkupString)Localizer["LabelsValidateForm2Description3"].Value)</section>
170170
<ValidateForm Model="@Dummy4">
171171
<div class="row g-3 form-inline">
172172
<div class="col-sm-12 col-md-6">
@@ -178,7 +178,7 @@
178178
</div>
179179
</ValidateForm>
180180

181-
<p class="mt-3">@((MarkupString)Localizer["ValidateFormAlignRight"].Value)</p>
181+
<section ignore>@((MarkupString)Localizer["ValidateFormAlignRight"].Value)</section>
182182
<ValidateForm Model="@Dummy4">
183183
<div class="row g-3 form-inline form-inline-end">
184184
<div class="col-sm-12 col-md-6">
@@ -190,7 +190,7 @@
190190
</div>
191191
</ValidateForm>
192192

193-
<p class="mt-3">@((MarkupString)Localizer["ValidateFormAlignCenter"].Value)</p>
193+
<section>@((MarkupString)Localizer["ValidateFormAlignCenter"].Value)</section>
194194
<ValidateForm Model="@Dummy4">
195195
<div class="row g-3 form-inline form-inline-center">
196196
<div class="col-sm-12 col-md-6">

src/BootstrapBlazor.Server/Locales/en-US.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2753,14 +2753,14 @@
27532753
"OpenUrlTitle": "OpenUrl"
27542754
},
27552755
"BootstrapBlazor.Server.Components.Samples.Labels": {
2756-
"EditorFormLabelAlignCenter": "<b>Alignment</b><div><code>LabelAlign=\"Alignment.Center\"</code> set the label alignment is center</div>",
2757-
"EditorFormLabelAlignRight": "<b>Alignment</b><div><code>LabelAlign=\"Alignment.Right\"</code> set the label alignment is right</div>",
2756+
"EditorFormLabelAlignCenter": "<p><b>Alignment</b></p><div><code>LabelAlign=\"Alignment.Center\"</code> set the label alignment is center</div>",
2757+
"EditorFormLabelAlignRight": "<p><b>Alignment</b></p><div><code>LabelAlign=\"Alignment.Right\"</code> set the label alignment is right</div>",
27582758
"LabelsDescription": "This set of components includes <code>ValidateForm</code> <code>EditorForm</code> and a variety of <b>Form components</b> inherited from <code>ValidateBase&lt;TValue&gt;</code>. Among these components There is a special set of display front label logic, now let’s sort it out in a unified way:",
27592759
"LabelsDescriptionTips1": "The <a href='/validate-form' target='_blank'>ValidateForm</a> component is a <b>verifiable</b> form component. The form component in this component will automatically perform data compliance checks. If Data non-compliance will prevent the <b>Submit</b> action, which is the most frequently used component in data submission",
27602760
"LabelsDescriptionTips2": "The <a href='/editor-form' target='_blank'>EditorForm</a> component is an ordinary form component. After this component is bound to the <code>Model</code>, the entire form can be automatically generated, which greatly reduces repetition Code, put the <code>ValidateForm</code> on the outside to open the <b>data compliance check</b> very convenient, concise and efficient",
27612761
"LabelsDescriptionTips3": "Take the <a href='input' target='_blank'>BootstrapInput</a> input box component as an example to explain whether to display the <code>Label</code> logic",
2762-
"LabelsEditorFormDescription1": "<b>Do not display labels</b><div>Set <code>ShowLabel=\"false\"</code>, all form components in the component <b>Do not display</b> tags</div>",
2763-
"LabelsEditorFormDescription2": "<b>Show label</b><div>The <code>ShowLabel</code> property of the <coe>EditorForm</coe> component is not set. If it is not set, it is equivalent to set to <code>true</code>. All components <b>display</b> tags</div>",
2762+
"LabelsEditorFormDescription1": "<p><b class=\"mb-3\">Do not display labels</b></p><div>Set <code>ShowLabel=\"false\"</code>, all form components in the component <b>Do not display</b> tags</div>",
2763+
"LabelsEditorFormDescription2": "<p><b class=\"mb-3\">Show label</b></p><div>The <code>ShowLabel</code> property of the <coe>EditorForm</coe> component is not set. If it is not set, it is equivalent to set to <code>true</code>. All components <b>display</b> tags</div>",
27642764
"LabelsEditorFormIntro": "Not used in <code>ValidateForm</code>",
27652765
"LabelsEditorFormTitle": "Used in EditorForm",
27662766
"LabelsNormalDescription": "When two-way binding is not used",
@@ -2785,21 +2785,21 @@
27852785
"LabelsRowLabelWidthTitle": "Style setting label width",
27862786
"LabelsTips": "The logic of <code>ShowLabel</code> is the principle of proximity. The closer the setting is to itself, the setting takes effect. For example, the form component is built into the <code>ValidateForm</code> component, even if <code>ValidateForm</code> is set to <code>>ShowLabel=true</code>, when the form component itself sets <code>ShowLabel=false</code>, the final result of the label is <b>not displayed</b>",
27872787
"LabelsTitle": "Component label",
2788-
"LabelsValidateForm1Description1": "<b>Show label</b><div>The <code>ShowLabel</code> property of the <coe>EditorForm</coe> component is not set. If it is not set, it is equivalent to set to <code>true</code>. All components <b>display</b> tags</div>",
2789-
"LabelsValidateForm1Description2": "<b>Do not display labels</b><div>Set <code>ShowLabel=\"false\"</code>, all form components in the component <b>Do not display</b> tags</div>",
2788+
"LabelsValidateForm1Description1": "<p><b>Show label</b></p><div>The <code>ShowLabel</code> property of the <coe>EditorForm</coe> component is not set. If it is not set, it is equivalent to set to <code>true</code>. All components <b>display</b> tags</div>",
2789+
"LabelsValidateForm1Description2": "<p><b>Do not display labels</b></p><div>Set <code>ShowLabel=\"false\"</code>, all form components in the component <b>Do not display</b> tags</div>",
27902790
"LabelsValidateForm1Intro": "Used in external <code>ValidateForm</code>",
27912791
"LabelsValidateForm1Title": "Use in EditorForm built-in ValidateForm",
2792-
"LabelsValidateForm2Description1": "<b>Show label</b><div>The <code>ShowLabel</code> property of the <coe>EditorForm</coe> component is not set. If it is not set, it is equivalent to set to <code>true</code>. All components <b>display</b> tags</div>",
2793-
"LabelsValidateForm2Description2": "<b>Do not display labels</b><div>Set <code>ShowLabel=\"false\"</code>, all form components in the component <b>Do not display</b> tags</div>",
2792+
"LabelsValidateForm2Description1": "<p><b>Show label</b></p><div>The <code>ShowLabel</code> property of the <coe>EditorForm</coe> component is not set. If it is not set, it is equivalent to set to <code>true</code>. All components <b>display</b> tags</div>",
2793+
"LabelsValidateForm2Description2": "<p><b>Do not display labels</b></p><div>Set <code>ShowLabel=\"false\"</code>, all form components in the component <b>Do not display</b> tags</div>",
27942794
"LabelsValidateForm2Description3": "<b>Show labels</b><div>set class <code>form-inline</code> for the all labels within the component are prefixed</div>",
27952795
"LabelsValidateForm2Intro": "Show labels are automatically turned on by default",
27962796
"LabelsValidateForm2Title": "Used in ValidateForm",
27972797
"LabelsWidthCode1": "As shown in the code above, the final value is <b>180</b> according to the principle of proximity",
27982798
"LabelsWidthDescription": "The components <code>ValidateForm</code> <code>EditorForm</code> <code>BootstrapLabelSetting</code> <code>ValidateForm</code> can set the label width value. The components use the <b>proximity principle</b> to determine the final value",
27992799
"LabelsWidthIntro": "Control the label width by setting the variable <code>LabelWidth</code>",
28002800
"LabelsWidthTitle": "Parameter setting label width",
2801-
"ValidateFormAlignCenter": "<b>Center</b><div><code>form-inline-center</code> set the label alignment is center</div>",
2802-
"ValidateFormAlignRight": "<b>Right</b><div><code>form-inline-end</code> set the label alignment is right</div>"
2801+
"ValidateFormAlignCenter": "<p><b>Center</b></p><div><code>form-inline-center</code> set the label alignment is center</div>",
2802+
"ValidateFormAlignRight": "<p><b>Right</b></p><div><code>form-inline-end</code> set the label alignment is right</div>"
28032803
},
28042804
"BootstrapBlazor.Server.Components.Samples.LayoutPages": {
28052805
"H1": "full page level components",

src/BootstrapBlazor.Server/Locales/zh-CN.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2753,14 +2753,14 @@
27532753
"OpenUrlTitle": "OpenUrl"
27542754
},
27552755
"BootstrapBlazor.Server.Components.Samples.Labels": {
2756-
"EditorFormLabelAlignCenter": "<b>居中对齐</b><div>通过 <code>LabelAlign=\"Alignment.Center\"</code> 设置标签居中对齐</div>",
2757-
"EditorFormLabelAlignRight": "<b>右对齐</b><div>通过 <code>LabelAlign=\"Alignment.Right\"</code> 设置标签右对齐</div>",
2756+
"EditorFormLabelAlignCenter": "<p><b>居中对齐</b></p><div>通过 <code>LabelAlign=\"Alignment.Center\"</code> 设置标签居中对齐</div>",
2757+
"EditorFormLabelAlignRight": "<p><b>右对齐</b></p><div>通过 <code>LabelAlign=\"Alignment.Right\"</code> 设置标签右对齐</div>",
27582758
"LabelsDescription": "本套组件中有 <code>ValidateForm</code> <code>EditorForm</code> 以及多种继承 <code>ValidateBase&lt;TValue&gt;</code> 的 <b>表单组件</b>,这些组件中有一套特殊的显示前置标签逻辑,现在我们统一的梳理一下:",
27592759
"LabelsDescriptionTips1": "<a href='/validate-form' target='_blank'>ValidateForm</a> 组件是 <b>可验证的</b> 表单组件,此组件内的表单组件会自动进行数据合规性检查,如果数据不合规将会阻止 <b>提交(Submit)</b> 动作,是数据提交中使用最最最频繁的组件",
27602760
"LabelsDescriptionTips2": "<a href='/editor-form' target='_blank'>EditorForm</a> 组件是普通的表单组件,此组件绑定 <code>Model</code> 后即可自动生成整个表单,大大减少重复性编码,外面套上 <code>ValidateForm</code> 即可开启 <b>数据合规性检查</b> 非常方便、简洁、高效",
27612761
"LabelsDescriptionTips3": "以 <a href='input' target='_blank'>BootstrapInput</a> 输入框组件为例,阐述一下是否显示 <code>Label</code> 逻辑",
2762-
"LabelsEditorFormDescription1": "<b>不显示标签</b><div>设置 <code>ShowLabel=\"false\"</code>,组件内的所有表单组件 <b>不显示</b> 标签</div>",
2763-
"LabelsEditorFormDescription2": "<b>显示标签</b><div>未设置 <coe>EditorForm</coe> 组件的 <code>ShowLabel</code> 属性等同于设置为 <code>true</code>,所有组件 <b>显示</b> 标签</div>",
2762+
"LabelsEditorFormDescription1": "<p><b class=\"mb-3\">不显示标签</b></p><div>设置 <code>ShowLabel=\"false\"</code>,组件内的所有表单组件 <b>不显示</b> 标签</div>",
2763+
"LabelsEditorFormDescription2": "<p><b class=\"mb-3\">显示标签</b></p><div>未设置 <coe>EditorForm</coe> 组件的 <code>ShowLabel</code> 属性等同于设置为 <code>true</code>,所有组件 <b>显示</b> 标签</div>",
27642764
"LabelsEditorFormIntro": "未套 <code>ValidateForm</code> 中使用",
27652765
"LabelsEditorFormTitle": "EditorForm 中使用",
27662766
"LabelsNormalDescription": "未使用双向绑定时",
@@ -2785,21 +2785,21 @@
27852785
"LabelsRowLabelWidthTitle": "样式设置标签宽度",
27862786
"LabelsTips": "<code>ShowLabel</code> 的逻辑即就近原则,离自身越近的设置生效,如表单组件内置到 <code>ValidateForm</code> 组件中,即使 <code>ValidateForm</code> 设置 <code>ShowLabel=true</code>,表单组件自身设置 <code>ShowLabel=false</code> 时,标签最终结果为 <b>不显示</b>",
27872787
"LabelsTitle": "组件标签",
2788-
"LabelsValidateForm1Description1": "<b>显示标签</b><div>未设置 <coe>EditorForm</coe> 组件的 <code>ShowLabel</code> 属性,未设置时等同于设置为 <code>ShowLabel=\"true\"</code>,所有组件 <b>显示</b> 标签</div>",
2789-
"LabelsValidateForm1Description2": "<b>不显示标签</b><div>设置 <code>ShowLabel=\"false\"</code>,组件内的所有表单组件 <b>不显示</b> 标签</div>",
2788+
"LabelsValidateForm1Description1": "<p><b>显示标签</b></p><div>未设置 <coe>EditorForm</coe> 组件的 <code>ShowLabel</code> 属性,未设置时等同于设置为 <code>ShowLabel=\"true\"</code>,所有组件 <b>显示</b> 标签</div>",
2789+
"LabelsValidateForm1Description2": "<p><b>不显示标签</b></p><div>设置 <code>ShowLabel=\"false\"</code>,组件内的所有表单组件 <b>不显示</b> 标签</div>",
27902790
"LabelsValidateForm1Intro": "内置 <code>ValidateForm</code> 中使用",
27912791
"LabelsValidateForm1Title": "EditorForm 内置 ValidateForm 中使用",
2792-
"LabelsValidateForm2Description1": "<b>显示标签</b><div>未设置 <coe>EditorForm</coe> 组件的 <code>ShowLabel</code> 属性,未设置时等同于设置为 <code>true</code>,所有组件 <b>显示</b> 标签</div>",
2793-
"LabelsValidateForm2Description2": "<b>不显示标签</b><div>设置 <code>ShowLabel=\"false\"</code>,组件内的所有表单组件 <b>不显示</b> 标签</div>",
2792+
"LabelsValidateForm2Description1": "<p><b>显示标签</b></p><div>未设置 <coe>EditorForm</coe> 组件的 <code>ShowLabel</code> 属性,未设置时等同于设置为 <code>true</code>,所有组件 <b>显示</b> 标签</div>",
2793+
"LabelsValidateForm2Description2": "<p><b>不显示标签</b></p><div>设置 <code>ShowLabel=\"false\"</code>,组件内的所有表单组件 <b>不显示</b> 标签</div>",
27942794
"LabelsValidateForm2Description3": "<b>显示标签</b><div>设置样式 <code>form-inline</code>,组件内的所有表单组件标签前置</div>",
27952795
"LabelsValidateForm2Intro": "默认自动开启显示标签",
27962796
"LabelsValidateForm2Title": "ValidateForm 中使用",
27972797
"LabelsWidthCode1": "如上代码所示, 根据就近原则最终取值 <b>180</b>",
27982798
"LabelsWidthDescription": "组件 <code>ValidateForm</code> <code>EditorForm</code> <code>BootstrapLabelSetting</code> <code>ValidateForm</code> 均可以设置标签宽度值,组件采用 <b>就近原则</b> 来确定最终值",
27992799
"LabelsWidthIntro": "通过设置变量 <code>LabelWidth</code> 控制标签宽度",
28002800
"LabelsWidthTitle": "参数设置标签宽度",
2801-
"ValidateFormAlignCenter": "<b>居中对齐</b><div>通过设置样式 <code>form-inline-center</code> 标签居中对齐</div>",
2802-
"ValidateFormAlignRight": "<b>右对齐</b><div>通过设置样式 <code>form-inline-end</code> 标签右对齐</div>"
2801+
"ValidateFormAlignCenter": "<p><b>居中对齐</b></p><div>通过设置样式 <code>form-inline-center</code> 标签居中对齐</div>",
2802+
"ValidateFormAlignRight": "<p><b>右对齐</b></p><div>通过设置样式 <code>form-inline-end</code> 标签右对齐</div>"
28032803
},
28042804
"BootstrapBlazor.Server.Components.Samples.LayoutPages": {
28052805
"H1": "整页面级别组件",

0 commit comments

Comments
 (0)