views:

600

answers:

2

Can you explain how to implement localization in web.sitemap please?

+1  A: 

Use a global resource file.

App_GlobalResources\Web.sitemap.resx

Then use keys in the web.sitemap like;

<siteMapNode url="somepage.aspx" title="Name"  resourceKey="PageName"/>
Dead account
but in the resource what should i do,,means i have 5 resource file and i am using one resource file(cart.resx) for menu
peter
You need to create a resx for the web.sitemap. Copy one from somewhere else and then put in "PageName" as the resource key and then put in the new value. Please upvote and mark as answer :)
Dead account
means,, i didnt get u,,all breadcrumbs are coming in any one of 5 resource files ,,in resource file(.resx) what i have to do for title(breadcrumb)
peter
A: 

If you have global resources you can use it like this

<siteMapNode url="~/Default.aspx" Title="$resources:SiteMapLocalizations,HomePageTitle"></siteMapNode>

Where SiteMapLocalizations: is the resource Name HomePageTitle: thee resource Key

Reference: http://msdn.microsoft.com/en-us/library/ms178427.aspx

Pr0fess0rX