locked
Implicit localization in web.sitemap RRS feed

  • Question

  • User1013016947 posted

    Hi,

    I am having problems with the implicit localization of web.sitemap file. Here is the web.sitemap file:

    <?xml version="1.0" encoding="utf-8" ?>
    <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" enableLocalization="true" >
        <siteMapNode resourceKey="HomePage" url="~/Default.aspx"
                                title="title"
                                description="description">
        </siteMapNode>
    </siteMap>
     

    Here is the web.config file's globalization setting:

    <globalization uiCulture="auto" culture="auto"/>

    I have two resx files below in the App_GlobalResources folder.

    Web.sitemap.resx
    Web.sitemap.en-us.resx

    I created a Default.aspx file with the @page directive like this:

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Culture="en-us" UICulture="en-us" %>

    Now here is what I am confiused about:

    Then I request this page, I get the values from the nautral resource file (Web.sitemap.resx) instead of the en-us resource file (Web.sitemap.en-us.resx). The default culture and uiculture is auto so when the page defines a culture as in the Default.aspx @page directive, shouldn't the page's cultures to that culture? So why can't I get the values from the en-us resource file?

    Thanks

    -Al

     

    Wednesday, October 11, 2006 2:25 PM

Answers

  • User1013016947 posted

    This is wierd. It is working now. It didn't work right away (I had made several requests to the page).

    Thanks anyways...

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, October 11, 2006 6:37 PM