CultureInfo name

Apr 6, 2012 at 1:58 AM

Some countries have multiple culture names. Switzerland for instance has fr-CH, de-CH, and it-CH. Which one should I enter CultureName in the xml file?

Apr 10, 2012 at 11:14 PM

If you want to target Switzerland you need to create a separate entry for all three at the moment. The control currently tries to match exact UI cultures (like fr-CH, de-CH, it-CH) and if it fails it falls back to the main language (e.g. loading the same ad for it-IT, it-CH). This is something that could be done better as targeting should really be based on region, not on language or the control could have support for both - all of this logic is implemented in the AdRotatorControl.GetAdDescriptorBasedOnUICulture() method if you want to modify it.