DotNetNuke Modules – Internationalization (part 2)

Last Thursday, we looked at how you could change the text of the modules in DotNetNuke.  Today, we want to show you how to add that same capability to your own modules.

When you created your module, one of the directories that was created for you was a directory named “App_LocalResources”.  In this directory are three resx files that should hold the strings you will be using in your modules.

If you open up one of them, you will see several strings that have already been added for you.

You’ll remember that last week, we looked at the action menus.  One of the parameters that we passed in to create the action menu looked like:

Localization.GetString(ModuleActionType.AddContent,
                this.LocalResourceFile)

That ModuleActionType.AddContent actually is the string “AddContent.Action” which you will find in the “ViewDMBSample.ascx.resx” file.  You will see that “AddContent.Action” resolves to “Add Content” in the resx file.

 


Other post in DotNetNuke - Module Development

Other Related Items:

Universal Learning Bypass ModuleUniversal Learning Bypass ModuleUniversal Learning Bypass Module, works on all vehicles equipped with a factory anti-theft system, Automatically learns resistance values without setting dip switches or using a volt meter.
Standard Deviants School Geology Module 5: Plate TectonicsEver feel like you're on shaky ground? Have you ever wondered where mountains come from? The Standard Deviants explore the crash and crunch factors that build mountains and keep things shaking. You'll learn about seismic waves, plate tectonics, continental drift, and much, much more.
Access Virus Version C Desktop SynthAccess Virus Version C Desktop SynthEqually comfortable in professional studios or beside a home computer, as well suited to clubs and concerts as it is to museum soundtracks, the Virus C Desktop Synth is heir to a legendary line of predecessors, and it inherits their incredible musical traditions with flying colors.

Related Post

4 Responses to “DotNetNuke Modules – Internationalization (part 2)”

  • [...] Internationalization (Part 2) [...]

  • Creating resource files for standard .Net controls:

    Hi,

    This tutorial seems unfinished. Will you be coming back to it?

    Regardless, it is very useful, thanks. I have one question:

    Can you create resource files for standard controls – like the Asp Label control? Or do you have to use the DNN label control? The reason I ask is because the DNN labels come with those help images and other formatting which I could really do without.

  • Dave:

    This is one of several articles on the topic. The very next article in this series covers your question.

    See that list of links that are right before the comments? That’s all the articles in the series on creating DNN Modules.

  • Oops:

    :)

    sometimes it pays to actually read things- thanks

DotNetNuke Sponsor

 

Most Valuable Blogger
Sponsor