The MLSkinHelper module lets you put localized content anywhere in your portal, either with a module, with a skinobject, or by using the class directly from your skin or module
The moduletitle of the feedback module on the left is being localized by MLSkinHelper. This is done by adding the skinhelper to the container, and add an appropriate key in the SkinHelperAdmin module. We use the direct method, we cannot pas dynamic attributes to a skinobject very easy, so first we import the correct namespace:
<%@ Assembly Name="Apollo.DNN.Modules.MLSkinHelper" %>
<%@ Import Namespace="Apollo.DNN.Modules.MLSkinHelper" %>
next we will get the module id, for this we use the original title skinobject, but we will not display the title, by adding visible="false" to the definition. We get the moduleid by getting a reference to the module via the module title skinobject.:
<dnn:TITLE runat="server" id="dnnTITLE" visible="false"/>
<%dim moduleID as string = DotNetNuke.UI.Containers.Container.GetPortalModuleBase(dnnTitle).ModuleId.ToString() %>
The actual display of the localized title goes like this then:
<span class="Head"><%=MLSkinHelper.LocalizeMe("ModuleTitle_" & ModuleID, True)%></span>
We pass the key name which looks like this: ModuleTitle_123 to the function, and also we pass True for paramater UseDefault. This means that if the title is not localized for a certain language, the default language is used.
Please feel free to try out the module below
Online help is available here: http://www.apollo-software.nl/OnlineHelp/MLSkinhelperHelp/tabid/308/Default.aspx
The module is for sale on SnowCovered