locked
site map localization not working RRS feed

  • Question

  • User1912084383 posted

    I am using explicit localization in sitemap and also have resource files in App_GlobalResources. Resource file names are Web.sitemap.en-US.resx and Web.sitemap.es-ES.resx

    I have set cultureinfo in BasePage.CS by overriding InitializationCulture() method and also custom Base Page too(In custom base page i set culture info in page load..). No specification of culture info in webconfig. I do not see App_GlobalResources.compile file in bin(Running this project on development server). In sitemap node enablelocalization is true and used following code.

    <

    siteMapNode url="blah.aspx"

     

    title="$resources:Web.sitemap,key,defaultvalue"

     

    description=""

    >

    I provided every information possible. What could be the isssue please help me.

    Though the culture information is set before sitemap control is rendered why it couldnt find the appropriate file?

     

     

    Wednesday, November 17, 2010 8:24 PM

All replies

  • User-231977777 posted

    hi

    this link should help :http://msdn.microsoft.com/en-us/library/ms178427.aspx 

     

    Thursday, November 18, 2010 12:35 AM
  • User1912084383 posted

    using that link itself i have built sitemap localization but wasnt working..... Assume i have not defined  culture information in basepage then how will sitemap know which culture to select because there are many language resources in App_GlobalResources like filename.en-US.resx, filename.es-ES.resx etc.

    Thursday, November 18, 2010 9:27 AM
  • User1912084383 posted

    Strange things happening. If I have only one file filename.en-US.resx file in App_GlobalResources. Sitemap(Which is referring as "$resources:Web.sitemap,key") is throwing error that object or key couldnt find. But when i have two files filename.en-US.resx and filename.resx[this has no keys it is empty], sitemap is working fine. Please need some explanation.

    Thursday, November 18, 2010 1:24 PM