Localization in SharePoint ASPX Pages
May 16, 2008
To add a text from a resource file into your SharePoint ASPX page you have to place this code where ever you want this text to places.
<%$Resources:MyResource, MyName%>
where:
- MyResource: is the resource file name.
-MyName: is the resource entry key.
Your resource files must be placed in this directory:
..\12\CONFIG\Resources\
all resource files in this directory are copied to the global resources for every web application when it’s creating.
if the webapplication already exists place the resources files in this directory:
C:\Inetpub\wwwroot\wss\VirtualDirectories\<port>\App_GlobalResources\
where <port> is the the web application port
Entry Filed under: Multilingual & Localization, Sharepoint. Tags: Multilingual, resources, Resx, Sharepoint, Wss.
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed