Language Localization

Content for automatically generated tooltip is already localized since it comes from DNN resource files. This section only covers localization of custom tooltips.

Localizing content for custom tooltips is very simple. Each item nodes supports a lang attribute where you input the locale code.

For example (formatting attributes have been removed for simplicity),

<avt:HandyTips runat = "server">
<Items>
<Item lang = "en-US" Selector = "#dnn_ctr481_ModuleContent">
Hello!
</Item>
<Item lang = "es-ES" Selector = "#dnn_ctr481_ModuleContent">
hola!
</Item>
</Items>
</avt:HandyTips>

HandyTips takes the current locale as computed by DotNetNuke and matches which item to show. If no item matches current locale, then no tooltip is shown.