step 1 : have your images placed on different directories based on the locale. i.e images/en/image1.jpg , images/es/image1.jpg and so on.
step 2 : have a resource key in the respective resource files pointing to the above images.
i.e in Page.es.resx file we might have a key BannerImage.ImageUrl with the value "~/images/es/image1.jpg"
step 3 : make the implicit localization do the rest of the job by properly formatting it.
Now when ever the BannerImage is rendered in the page life cycle, the ImageUrl will be picked from the resource files and based on the value for the current locale.
Hope that helps.
/BB
No comments:
Post a Comment