Devexpress Universal 222 Multilingual Better Online
Here’s a concrete example using XAF (Cross-Platform .NET App UI) in 22.2:
// Set thread culture at application entry System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("de-DE");
// DevExpress automatically switches: // - Built-in UI strings (Filter Editor, Column Chooser) // - Validation messages // - Report viewer dialogs
For custom business objects, you simply decorate properties:
[ModelDefault("Caption", "Customer Name")]
[Localizable(true)]
public string Name get; set;
The Localization Service will then export all Caption properties to a single Excel/ResX file for translation by non-developers. devexpress universal 222 multilingual better
Not everyone wants a single global language. DevExpress 22.2 allows:
If by "multilingual better" you mean you want the application to switch languages dynamically (e.g., English, German, Japanese) using the official DevExpress translations: Here’s a concrete example using XAF (Cross-Platform
using System.Threading; using System.Globalization;
// Set UI culture to German (for example) Thread.CurrentThread.CurrentUICulture = new CultureInfo("de"); Thread.CurrentThread.CurrentCulture = new CultureInfo("de");