Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Localization issues #483
Hi I would like to thank you for this library, it is great help in MVC application :)
But I found a several bugs MvcSiteMapProvider when I would like to use resource files for mvcSiteMapNode.
For Title & Description properties / attributes it works only with Explicit localization ($resources: ...).
I checked the code, and the problem is that MvcSiteMapProvider.SiteMap class has invalid value in ResourceKey property, that returns SiteMapCacheKey (that is generated by ISiteMapCacheKeyGenerator.GenerateKey()) value that returns a string in format "sitemap://hostname/", but it should return Resource file Class Key (that is resource filename without resx extension). Without it, it will never return valid value from any Resource file.
For custom attributes in mvcSiteMapNode it doesn't work for any type of localization.
Hopefully you would have time to fix it in next releases, so we can use the library with proper localization features. :)
Thanks for help