DotNetNuke Menu Localization

If you are building a multilingual site you can use DotNetNuke localization interfaces to translate names, field labels etc. But what about your main menu? If you have in English

Home | Services | Products | Contacts

you may want to see these captions in other language also (Russian for me).

Главная | Услуги | Продукты | Контакты

And this is easy to do without any additional tools. Open the following file

<DNN>\App_GlobalResources\GlobalResources.<your-language>.resx

(GlobalResources.ru-RU.resx in my case) And find a position of system menu items, something like this:

<data name="//Admin.String" xml:space="preserve">
   <value>Админ</value>
</data>

Here you can see a tab path and translated name. It is natural to suppose that DotNetNuke doesn’t make difference between system and custom menu items and it really doesn’t!!! You can just create another translations for the Home, Services etc. menu items:

<data name="//Home.String" xml:space="preserve">
   <value>Главная</value>
</data>
<data name="//Services.String" xml:space="preserve">
   <value>Услуги</value>
</data>
<data name="//Products.String" xml:space="preserve">
   <value>Продукты</value>
</data>
<data name="//Contacts.String" xml:space="preserve">
   <value>Контакты</value>
</data>

And DotNetNuke read it immediately!

Tips

  • This localization is applied to every portal of your DNN installation
  • Tab paths (e.g. //Products) are case sensitive in resx files

Here is the sample: http://xsltdb.com

Also review XsltDb Localization sample:

Advertisements

About Anton Burtsev

Develop software since 2000
This entry was posted in DotNetNuke. Bookmark the permalink.

One Response to DotNetNuke Menu Localization

  1. Don Boulton says:

    Google translation with Telerik Menus provide full translations for any site, see how it works at Mansbooks.com. Love the XsltDb Module and use it for Ratings and Comments on Mansbooks contact page, http://www.mansbooks.com/Home/Contact.aspx.
    Soon full window surfing of all modules with Telerik Windows and XsltDb.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s