Skip to content

Commit bf9c12b

Browse files
committed
GH-158 :: add note about localization to other widgets
1 parent ae6ea50 commit bf9c12b

29 files changed

+88
-2
lines changed

src/TrainingGuides.Web/Features/Activities/Widgets/PageLike/PageLikeWidgetViewComponent.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
using TrainingGuides.Web.Features.Activities.Widgets.PageLike;
88
using TrainingGuides.Web.Features.Shared.Services;
99

10+
// NOTE: For an example of localizing widget name and description,
11+
// see CallToActionWidgetViewComponent in Features/LandingPages/Widgets/CallToAction/
12+
1013
[assembly: RegisterWidget(
1114
identifier: PageLikeWidgetViewComponent.IDENTIFIER,
1215
viewComponentType: typeof(PageLikeWidgetViewComponent),

src/TrainingGuides.Web/Features/Articles/Widgets/ArticleList/ArticleListWidgetProperties.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
namespace TrainingGuides.Web.Features.Articles.Widgets.ArticleList;
1212

13+
// NOTE: For an example of localizing widget properties (labels, explanation texts, and options),
14+
// see CallToActionWidgetProperties in Features/LandingPages/Widgets/CallToAction/
15+
1316
public class ArticleListWidgetProperties : IWidgetProperties
1417
{
1518
[ContentItemSelectorComponent(

src/TrainingGuides.Web/Features/Articles/Widgets/ArticleList/ArticleListWidgetViewComponent.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
using TrainingGuides.Web.Features.Membership.Services;
1212
using TrainingGuides.Web.Features.Shared.Services;
1313

14+
// NOTE: For an example of localizing widget name and description,
15+
// see CallToActionWidgetViewComponent in Features/LandingPages/Widgets/CallToAction/
16+
1417
[assembly:
1518
RegisterWidget(ArticleListWidgetViewComponent.IDENTIFIER, typeof(ArticleListWidgetViewComponent), "Article list widget",
1619
typeof(ArticleListWidgetProperties), Description = "Displays list of articles.", IconClass = "icon-ribbon")]

src/TrainingGuides.Web/Features/Articles/Widgets/FeaturedArticle/FeaturedArticleWidgetProperties.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
namespace TrainingGuides.Web.Features.Articles.Widgets.FeaturedArticle;
66

7+
// NOTE: For an example of localizing widget properties (labels, explanation texts, and options),
8+
// see CallToActionWidgetProperties in Features/LandingPages/Widgets/CallToAction/
9+
710
public class FeaturedArticleWidgetProperties : IWidgetProperties
811
{
912
[ContentItemSelectorComponent(

src/TrainingGuides.Web/Features/Articles/Widgets/FeaturedArticle/FeaturedArticleWidgetViewComponent.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
using TrainingGuides.Web.Features.Articles.Widgets.FeaturedArticle;
66
using TrainingGuides.Web.Features.Shared.Services;
77

8+
// NOTE: For an example of localizing widget name and description,
9+
// see CallToActionWidgetViewComponent in Features/LandingPages/Widgets/CallToAction/
10+
811
[assembly:
912
RegisterWidget(FeaturedArticleWidgetViewComponent.IDENTIFIER, typeof(FeaturedArticleWidgetViewComponent), "Featured article",
1013
typeof(FeaturedArticleWidgetProperties), Description = "Displays a featured article of your choosing.", IconClass = "icon-ribbon")]

src/TrainingGuides.Web/Features/DataProtection/Widgets/CookiePreferences/CookiePreferencesWidgetProperties.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
namespace TrainingGuides.Web.Features.DataProtection.Widgets.CookiePreferences;
55

6+
// NOTE: For an example of localizing widget properties (labels, explanation texts, and options),
7+
// see CallToActionWidgetProperties in Features/LandingPages/Widgets/CallToAction/
8+
69
public class CookiePreferencesWidgetProperties : IWidgetProperties
710
{
811
/// <summary>

src/TrainingGuides.Web/Features/DataProtection/Widgets/CookiePreferences/CookiePreferencesWidgetViewComponent.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
using TrainingGuides.Web.Features.DataProtection.Widgets.CookiePreferences;
1515
using TrainingGuides.Web.Features.Shared.Services;
1616

17+
// NOTE: For an example of localizing widget name and description,
18+
// see CallToActionWidgetViewComponent in Features/LandingPages/Widgets/CallToAction/
19+
1720
[assembly: RegisterWidget(
1821
identifier: CookiePreferencesWidgetViewComponent.IDENTIFIER,
1922
viewComponentType: typeof(CookiePreferencesWidgetViewComponent),

src/TrainingGuides.Web/Features/Gallery/Widgets/GalleryWidget/GalleryWidgetProperties.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
namespace TrainingGuides.Web.Features.Gallery.Widgets.GalleryWidget;
88

9+
// NOTE: For an example of localizing widget properties (labels, explanation texts, and options),
10+
// see CallToActionWidgetProperties in Features/LandingPages/Widgets/CallToAction/
11+
912
public class GalleryWidgetProperties : IWidgetProperties
1013
{
1114
[SmartFolderSelectorComponent(

src/TrainingGuides.Web/Features/Gallery/Widgets/GalleryWidget/GalleryWidgetViewComponent.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
using TrainingGuides.Web.Features.Gallery.Widgets.GalleryWidget;
77
using TrainingGuides.Web.Features.Shared.Models;
88

9+
// NOTE: For an example of localizing widget name and description,
10+
// see CallToActionWidgetViewComponent in Features/LandingPages/Widgets/CallToAction/
11+
912
[assembly:
1013
RegisterWidget(GalleryWidgetViewComponent.IDENTIFIER, typeof(GalleryWidgetViewComponent), "Gallery widget",
1114
typeof(GalleryWidgetProperties), Description = "Displays gallery of images from a smart folder", IconClass = "icon-pictures")]

src/TrainingGuides.Web/Features/HTML/Widgets/HtmlCode/HtmlCodeWidgetProperties.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
namespace TrainingGuides.Web.Features.Html.Widgets.HtmlCode;
55

6+
// NOTE: For an example of localizing widget properties (labels, explanation texts, and options),
7+
// see CallToActionWidgetProperties in Features/LandingPages/Widgets/CallToAction/
68
public class HtmlCodeWidgetProperties : IWidgetProperties
79
{
810
[TextAreaComponent(

0 commit comments

Comments
 (0)