Skip to main content
All docs
V24.2

Localizing Your DevExpress-powered .NET App – Your Feedback Matters

We hope to validate a few hypotheses about our Localization Service, Unified Component Installer, overall localization quality, and ways to translate strings in general.

Take the survey Not interested

XtraLocalizer.EnterTraceMode(String) Method

Create the trace source and allows the UI Localization Client to attach to the application.

Namespace: DevExpress.Utils.Localization

Assembly: DevExpress.Data.v24.2.dll

NuGet Package: DevExpress.Data

#Declaration

public static IDisposable EnterTraceMode(
    string applicationName = null
)

#Optional Parameters

Name Type Default Description
applicationName String null

The application name. Specify this parameter if the UI Localization Client cannot automatically obtain the application name.

#Returns

Type Description
IDisposable

An object that implements System.IDisposable.

#Remarks

The UI Localization Client is a cross-platform utility sipped as part of DevExpress Subscriptions that allows you to quickly identify non-translated strings of DevExpress UI controls and translate them during a debug session. The utility automatically generates a RESX file(s) with translated resources and adds it to the project.

Read the following topic for additional information: DevExpress UI Localization Client.

#Example (WinForms)

using System;
using System.Globalization;
using System.Windows.Forms;
using DevExpress.Utils.Localization;

namespace DXApplication10 {
    internal static class Program {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main() {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            CultureInfo culture = CultureInfo.CreateSpecificCulture("de-DE");
            CultureInfo.DefaultThreadCurrentCulture = culture;
            CultureInfo.DefaultThreadCurrentUICulture = culture;
#if DEBUG
            using (XtraLocalizer.EnterTraceMode(applicationName: "MyApp"))
                Application.Run(new Form1());
#else
            Application.Run(new Form1());
#endif
        }
    }
}
See Also