.net localization for non-strings .net localization for non-strings wpf wpf

.net localization for non-strings


The following MSDN post Resources and Localization in ASP.NET 2.0 - Displaying Localized Images states:

While ASP.NET 2.0 doesn't directly support localizing image files, it doesn't require too much custom code to achieve the desired effect.

And provides the following work around:

You can start by adding the localized versions of an image file to localized versions of a global resource file. For example, the English version of LitwareSlogan.png has been added to the global resource file named Litware.resx while the French version of LitwareSlogan.fr.png has been added to Litware.fr.resx. The resources in both resource files have been given the same name of LitwareSlogan.

Complete sample code is provided at the site.