Last post Oct 18, 2006 11:38 PM by ashudotnet
Oct 18, 2006 10:06 AM|ashudotnet|LINK
We are in process of converting a ASP.NET application to multilingual web application. We have around 20 ASPX pages in project and every ASPX page have 4-10 images in form ImageButton, Banner(<img> tag). We have separate set of button and banner images for
supporting English and Spanish languages. For correctly point to language specific image directory, at page load event I detect CultureInfo of current thread and according to culture, I set
easily image URL of ImageButton, banners and so on. One of my friends suggested that I should use Themes to incorporate this functionality. Following are my queries:
Any response to above queries will be very helpful to me.
Thanks in advance.
Oct 18, 2006 02:00 PM|vivek_iit|LINK
1. No. If you are using only images as the whole localization process, then it might be ok, but Themes are generally used to change the "look and feel" of the website, and should be ideally independent of the culture being used.
2. You need to use the Theme attribute of the page (or for all pages in the web.config file). As such there are no changes you need to make in the ASPX, just change the theme per page or for all pages using the Theme attribute.
3. Even themes would use URL via CSS to set the images. So I think the question is not about efficiency but maintainability. Also, have you thought about localized content?
Oct 18, 2006 11:38 PM|ashudotnet|LINK
Thank You Vivek for your response. It was very helpful.