Demo Notes - Localization of Tabs

This example demonstrates the localization ability of the Aggregator module. Each tab and each module contained within a tab can be targeted to a specific locale, all locales or a special setting called 'Fallback'. If a tab is specified as 'Fallback' then it will only show if no other tabs are shown because of their locale settings.

In the Aggregator below, I have 6 tabs. One for English (en-us), one for French (fr-fr), one for Italy (it-it) and one for all locales. I have also added a single MMLinks module to the 5th tab, and a single MLHTML module to the 6th tab. If you click on each of the country flags below you will see how the tabs change based on the set locale. In the tab using the MMLinks module, I am using a tab caption of [MMLINKSTITLE] which localizes the tab caption to the title of the first module inside the tab when the locale changes. The same applies to the tab using the MLHTML module although the tab caption here uses the [MLHTMLTITLE] token instead.

English
French
Italian

In this demonstration we are only localizing tabs but you can also target localization for modules within tabs. For example, you could have a tab with 3 modules, one localized for each language but when displayed to a user it would only show one of the modules ... the one specific to his/her language. This can be very useful in localizing modules that don't have a normal ability to be localized.

Localized Tabs
  • English (en-us)
  • All locales
  • MMLinks - English
  • MLHTML - English
Detailed Setup Description

The following images shows the above setup as it appears in the Aggregator setup screen. The advantage of using the MMLinks (or MLHTML) module for localization is that you can use a single module for all locales instead of including 3 as I have done with the first 3 modules. This will work if you have relatively simple localized content such as text, links etc. If you want to localize other modules such as contact list, documents etc. then you would need to include a module for each locale and add them to separate tabs as I've done in tabs 1 through 3.

Privacy StatementTerms Of UseCopyright (c) 2004-2012 DNNStuff