ssg: advanced config front matter: use strings

This commit is contained in:
Nick Vella 2019-08-04 19:12:18 +10:00
parent 232708a3f3
commit bf1e8adb6f
1 changed files with 13 additions and 0 deletions

View File

@ -45,12 +45,25 @@ namespace OpenLiveWriter.PostEditor.Configuration.StaticSiteAdvanced
public FrontMatterPanel() : base()
{
InitializeComponent();
LocalizeStrings();
}
public FrontMatterPanel(StaticSitePreferencesController controller)
: base(controller)
{
InitializeComponent();
LocalizeStrings();
}
private void LocalizeStrings()
{
PanelName = Res.Get(StringId.SSGConfigFrontMatterTitle);
labelSubtitle.Text = Res.Get(StringId.SSGConfigFrontMatterSubtitle);
colKey.HeaderText = Res.Get(StringId.SSGConfigFrontMatterKeyCol);
colProperty.HeaderText = Res.Get(StringId.SSGConfigFrontMatterPropertyCol);
buttonResetDefaults.Text = Res.Get(StringId.SSGConfigFrontMatterReset);
}
public override void LoadConfig()