Localization of module container title in DNN or Translate your DNN module Title In different Languages
Dear All
If you are looking for the translation of dnn container title then there are two solution
1) You can go with the appolo module which helps you to localize the HTML module title (for this see my prior post http://bestvisualization.blogspot.com/2011/06/multi-language-website-in-dnn-or.html)
2) If you are developing you own module then use (Specially thanks for Psturdee answer get through dnn forum
your module's Page_Init method:
protected void Page_Init(object sender, EventArgs e)
{
this.ModuleConfiguration.ModuleTitle = "Whatever you want your module title to be";
}
You can use Resource files to provide the strings with something like this:
protected void Page_Init(object sender, EventArgs e)
{
this.ModuleConfiguration.ModuleTitle = Localization.GetString("ModuleTitle", Localization.GetResourceFile(this, "YourModule.ascx");
}
then define in your resource files, "YourModule.ascx.[lang].resx", a name, "ModuleTitle.Text",
with the language-specific value.
Regards
Rashid Imran Bilgrami
http://www.bestvisualization.com
If you are looking for the translation of dnn container title then there are two solution
1) You can go with the appolo module which helps you to localize the HTML module title (for this see my prior post http://bestvisualization.blogspot.com/2011/06/multi-language-website-in-dnn-or.html)
2) If you are developing you own module then use (Specially thanks for Psturdee answer get through dnn forum
your module's Page_Init method:
protected void Page_Init(object sender, EventArgs e)
{
this.ModuleConfiguration.ModuleTitle = "Whatever you want your module title to be";
}
You can use Resource files to provide the strings with something like this:
protected void Page_Init(object sender, EventArgs e)
{
this.ModuleConfiguration.ModuleTitle = Localization.GetString("ModuleTitle", Localization.GetResourceFile(this, "YourModule.ascx");
}
then define in your resource files, "YourModule.ascx.[lang].resx", a name, "ModuleTitle.Text",
with the language-specific value.
Regards
Rashid Imran Bilgrami
http://www.bestvisualization.com
Comments
Post a Comment
Thanks for the Comments , Your review will display soon