mojoPortal Tips: How to Add and Edit Language-Specific Labels

mojoPortal, like all content management systems, provides a great deal of control over the content displayed on a mojoPortal-based website. However, some basic components are not accessible via the content administration interface. These components are the labels such as the Login/Registration screens, administration dialogs, etc. Today, we’ll cover how to edit these labels.

mojoPortal intrinsically supports a wide array of languages, thanks to the efforts of a multi-lingual community. Not all languages are supported equally, due to available resources. Speaking of resources: the method by which these languages are supported is by using *.resx (resource) files, located in the App_GlobalResources folder under mojoPortal.Web:

Resource Files

As you can see, the resource files are organized by functional areas, as well as language. The primary language for your mojoPortal audience will determine which files you’ll want to adapt. You may have a client request to change the string “User ID” to “Company Location”, for instance, if your users are designated by company locations, for instance.  In order to do that, you’ll want to open the resource.resx file (US English default), and scroll down to the appropriate entry:

Resource File

In this instance, we’d replace the string “User ID” with “Company Name”. Save the resource.resx file, and re-compile your mojoPortal instance. Now, you’ll see that “User ID” has been replaced by “Customer Name”

If you’re adding any additional labels, this is also where you’d add a name/value pair. The “name” is the unique name of your string that will be the same no matter what language you’re using; the value is the string in the language you want displayed.

For more information about localization and language support of mojoPortal, check out the support articles under “Localization” on mojoPortal.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Looking for quality mojoPortal Hosting? Look no further than Arvixe Web Hosting!

Tags: , , , , , , , | Posted under MojoPortal | RSS 2.0

Author Spotlight

Carole Bennett

Carole Bennett is the founder and principal of IndigoTea. As a professional IT consultant, Carole has provided solutions for companies as diverse as Verizon, Frito-Lay, Capital One Auto Finance, and Zales Jewelers, parlaying a unique talent for acting as a translator between the worlds of business challenges and technology solutions. She considers multi-tasking skills gained from simultaneously 1) managing a fire performance troupe, 2) raising a family, and 3) working as a full-time IT consultant excellent preparation for her current career incarnation as the driving force behind IndigoTea. "Fire-breathing redhead on a mission" is not just a metaphorical description!

One Comment on mojoPortal Tips: How to Add and Edit Language-Specific Labels

  1. Crispin says:

    Just note that if you customize the resx files, you’ll need to keep safe copies somewhere and put them back into App_GlobalResources after upgrading mojoPortal, as the contents of this folder will be overwritten (assuming you upgrade using the recommended method).

Leave a Reply

Your email address will not be published. Required fields are marked *


+ 6 = 12

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>