Last post Apr 11, 2007 03:47 PM by vivek_iit
Apr 10, 2007 09:16 AM|swaino|LINK
Hi I've started developing a multi-language website. However, I can understand the .resx files being used to provide different language literals for control captions, text etc. but how do I go about translating a whole page of HTML complete with headings,
labels, hyperlinks etc..
One noticeable problem is that within the HTML are lots of formatting, (e.g. spans for bit of text that should be bold) paragraphs, mixed content, labels and hyperlinks which can't be contained in one label which could then be translated.
What is the best solution to convert an HTML page full of content?
Apr 10, 2007 01:18 PM|vivek_iit|LINK
You can out only pure content in the resx files and leave the formatting in ASPX files only. At runtime the content will come inside the formatted places. If you want you can put formatted content too in the resx files for some cultures. It really depends
on individual project needs.
Hope this helps,
Apr 11, 2007 05:19 AM|swaino|LINK
Apr 11, 2007 03:47 PM|vivek_iit|LINK
You need to use some placeholders where you localized text will get "filled in". It is not neccessary to use Labels, you can use, for e.g., Literal controls.