I am using the MvcSiteMapProvider and I want to localize the menu entries. So I have added the resourceKey attribute to my node as follows:
<mvcSiteMapNode resourceKey="Home" title="Home" area ="" controller="Home" action="Index"/>
I have created ressource files for each language in the root of the App_GlobalResources folder, and I named them Mvc.sitemap.resx, Mvc.sitemap.nl.resx, etc. Of course, all keys referenced in the sitemap are defined in the resource files.
My sitemap is named Mvc.sitemap and is located in the folder SiteMap in the root of the project.
But both names do not work. The title
attribute is null / empty when the sitemap is build, so the node won't appear.
I have also tried to use a resource file called Web.sitemap.resx.
EDIT:
I have set enableLocalization="true"
in web.config as well as in Mvc.sitemap.
What am i doing wrong?