0

Is it possible to localize mvcsitemapnodes by using a embedded resource file (so not using a resource file in App_GlobalResources)?

I found this solution: Resource file for MVCSiteMapProvider, but i'm not sure if it will work and how to do that.

Community
  • 1
  • 1
Luciano
  • 2,691
  • 4
  • 38
  • 64
  • 1
    possible duplicate of [Globalization in MVCSiteMapProvider](http://stackoverflow.com/questions/25126620/globalization-in-mvcsitemapprovider) – NightOwl888 Mar 08 '15 at 00:38
  • Thnx for your comment. I'm still having trouble implementing your solution.I'm getting the following error when trying to set the cacheDetails. Error 1 Cannot implicitly convert type 'StructureMap.Pipeline.SmartInstance' to 'StructureMap.Pipeline.SmartInstance' Any idea how to fix this @NightOwl888? – Luciano Mar 08 '15 at 18:33
  • If you install the NuGet package `MvcSiteMapProvider.MVC4.DI.StructureMap` you will have a working DI configuration. All you need to do is apply the modifications to it in the SO post above. There is no need to copy the entire DI config. – NightOwl888 Mar 09 '15 at 01:56
  • FYI - I just noticed that there appears to be a bug in NuGet where it doesn't install all dependencies. For this to work, you need to first install `MvcSiteMapProvider.MVCx` (where x is your MVC version) followed by the upgrade to `MvcSiteMapProvider.MVCx.DI.StructureMap`. – NightOwl888 Mar 09 '15 at 02:18

0 Answers0