I've got a web page with a link, and the link is suppose to correspond to a PDF is the given user's language. I'm wondering where I should put these PDF files though. If I put them in App_LocalResources, I can't specify a link to /App_LocalResources/TOS_en-US.pdf can I?
ASP.NET localized files
asp.netlocalization
Related Topic
- Schema for a multilanguage database
- .net – ASP.NET Web Site or ASP.NET Web Application
- Asp – How to extract localized string resources for translation
- ASP.NET localization–where are the international resource strings
- ASP.net is not using other locale resource files
- HTTP Error 503, the service is unavailable
Best Answer
The PDF should definitely not be in the App_LocalResources folder. That folder is only for RESX files.
The PDF files can go anywhere else in your app. For example, a great place to put them would be in a ~/PDF folder. Then your links will have to be dynamically generated (similar to what Greg has shown):
However, there are some other things to consider:
CurrentCulture.TwoLetterISOLanguageName
and then the file name would be TOS_en.pdf.