How to: Localize Health Alerts
Updated: October 9, 2012
Applies To: Windows Server 2012 Essentials, Windows Home Server 2011, Windows Storage Server 2008 R2 Essentials, Windows Small Business Server 2011 Essentials
The network health infrastructure allows for localized health alerts that match the language of server and client. The following section provides the necessary knowledge to set up custom network health alerts with localized message strings.
From the Definition.xml file, the following attribute values will be displayed in the user interface:
<FeatureDefinition> title attribute
<HealthDefinition> title attribute
<TroubleShoot><Steps> element
<PowerShell><Description> element
The following XML illustrates how to specify a localized string in the Definition.xml file:
<HealthDefinition
Name="AutoStartServices"
Title="HealthActions!Microsoft.WindowsServerSolutions.NetworkHealth.Actions#ServiceNotRunningDefnTitle">
<Condition>
<Binary>
<Assembly>HealthActions</Assembly>
<Class>Microsoft.WindowsServerSolutions.NetworkHealth.Actions.WindowsServiceAction</Class>
</Binary>
</Condition>
<HealthStatusChange>
<Status>Critical</Status>
</HealthStatusChange>
<Troubleshoot>
<Steps>HealthActions!Microsoft.WindowsServerSolutions.NetworkHealth.Actions#ServiceNotRunningTroubleshootingSteps</Steps>
</Troubleshoot>
<RepairAction>
<Binary>
<Assembly>HealthActions</Assembly>
<Class>Microsoft.WindowsServerSolutions.NetworkHealth.Actions.WindowsServiceRepairAction</Class>
</Binary>
</RepairAction>
</HealthDefinition>
In the preceding example, the HealthDefinition Title and Troubleshoot steps are using a pattern of [assembly_name]![resource_base]#[resource_ID] to tell the Health Engine to load the specified resource from an assembly.