Can you explain how to implement localization in web.sitemap please?
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
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"/>
It's worthy to notice that you also need to set enableLocalization="true"
at siteMap
tag. Otherwise it will not work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With