Skip to content

Commit 1fdfb2c

Browse files
BatJannathanwoulfe
authored andcommitted
Add missing fallback texts
1 parent 7794d55 commit 1fdfb2c

File tree

1 file changed

+26
-22
lines changed

1 file changed

+26
-22
lines changed

src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/templatesections/templatesections.html

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -20,33 +20,35 @@
2020
<div class="umb-insert-code-box__check" ng-class="{'umb-insert-code-box__check--checked': model.insertType === 'renderBody' }">
2121
<umb-icon icon="icon-check" class="icon"></umb-icon>
2222
</div>
23-
24-
<div class="umb-insert-code-box__title"><localize key="template_renderBody"></localize></div>
25-
23+
24+
<div class="umb-insert-code-box__title"><localize key="template_renderBody">Render child template</localize></div>
25+
2626
<div class="umb-insert-code-box__description">
27-
<localize key="template_renderBodyDesc"></localize>
27+
<localize key="template_renderBodyDesc">Renders the contents of a child template, by inserting a <code>@RenderBody()</code> placeholder.</localize>
2828
</div>
2929
</div>
30-
30+
3131
<div class="umb-insert-code-box" ng-click="vm.select('renderSection')">
32-
32+
3333
<div class="umb-insert-code-box__check" ng-class="{'umb-insert-code-box__check--checked': model.insertType === 'renderSection' }">
3434
<umb-icon icon="icon-check" class="icon"></umb-icon>
3535
</div>
36-
<div class="umb-insert-code-box__title"><localize key="template_renderSection"></localize></div>
36+
<div class="umb-insert-code-box__title"><localize key="template_renderSection">Render a named section</localize></div>
3737
<div class="umb-insert-code-box__description">
38-
<localize key="template_renderSectionDesc"></localize>
38+
<localize key="template_renderSectionDesc">Renders a named area of a child template, by inserting a <code>@RenderSection(name)</code> placeholder.
39+
This renders an area of a child template which is wrapped in a corresponding <code>@section [name]{ ... }</code> definition.
40+
</localize>
3941
</div>
40-
42+
4143
<div ng-if="model.insertType === 'renderSection'" style="margin-top: 20px;">
4244
<div style="margin-bottom: 20px;">
43-
<label class="bold"><localize key="template_sectionName"></localize> <span class="red">*</span></label>
45+
<label class="bold"><localize key="template_sectionName">Section Name</localize> <span class="red">*</span></label>
4446
<input type="text" name="renderSectionName" class="-full-width-input" ng-model="model.renderSectionName" required umb-auto-focus />
4547
<span ng-messages="templateSectionsForm.renderSectionName.$error" show-validation-on-submit>
46-
<small class="red" ng-message="required"><localize key="required"></localize></small>
48+
<small class="red" ng-message="required"><localize key="required">Required</localize></small>
4749
</span>
4850
</div>
49-
51+
5052
<div>
5153
<div class="flex">
5254
<umb-checkbox model="model.mandatoryRenderSection"
@@ -55,33 +57,35 @@
5557
</div>
5658

5759
<div class="umb-insert-code-box__description">
58-
<localize key="template_sectionMandatoryDesc"></localize>
60+
<localize key="template_sectionMandatoryDesc">If mandatory, the child template must contain a <code>@section</code> definition, otherwise an error is shown.</localize>
5961
</div>
6062
</div>
6163
</div>
62-
64+
6365
</div>
64-
66+
6567
<div class="umb-insert-code-box" ng-click="vm.select('addSection')">
66-
68+
6769
<div class="umb-insert-code-box__check" ng-class="{'umb-insert-code-box__check--checked': model.insertType === 'addSection' }">
6870
<umb-icon icon="icon-check" class="icon"></umb-icon>
6971
</div>
70-
<div class="umb-insert-code-box__title"><localize key="template_defineSection"></localize></div>
72+
<div class="umb-insert-code-box__title"><localize key="template_defineSection">Define a named section</localize></div>
7173
<div class="umb-insert-code-box__description">
72-
<localize key="template_defineSectionDesc"></localize>
74+
<localize key="template_defineSectionDesc">Defines a part of your template as a named section by wrapping it in <code>@section { ... }</code>.
75+
This can be rendered in a specific area of the parent of this template, by using <code>@RenderSection</code>.
76+
</localize>
7377
</div>
74-
78+
7579
<div ng-if="model.insertType === 'addSection'" style="margin-top: 20px;">
7680
<div>
77-
<label class="bold"><localize key="template_sectionName"></localize> <span class="red">*</span></label>
81+
<label class="bold"><localize key="template_sectionName">Section Name</localize> <span class="red">*</span></label>
7882
<input type="text" name="sectionName" class="-full-width-input" ng-model="model.sectionName" required umb-auto-focus />
7983
<span ng-messages="templateSectionsForm.sectionName.$error" show-validation-on-submit>
80-
<small class="red" ng-message="required"><localize key="required"></localize></small>
84+
<small class="red" ng-message="required"><localize key="required">Required</localize></small>
8185
</span>
8286
</div>
8387
</div>
84-
88+
8589
</div>
8690

8791
</umb-box-content>

0 commit comments

Comments
 (0)