Products Technologies Demo Docs Blog Support Company

Setting the Interface and Control's Culture of Web.TextControl

Since version X13 (23.0), the control culture and UI culture of the HTML5 based editor Web.TextControl can be defined using the properties Culture and UICulture. By default and if not specified by the above properties, the user language is defined by the client user settings. For example, if the user specifies a language in the browser language settings, the language of the editor is adapted automatically. The following screenshot shows the Languages dialog of the browser Firefox: With the…

Setting the Interface and Control's Culture of Web.TextControl

Since version X13 (23.0), the control culture and UI culture of the HTML5 based editor Web.TextControl can be defined using the properties Culture and UICulture.

By default and if not specified by the above properties, the user language is defined by the client user settings. For example, if the user specifies a language in the browser language settings, the language of the editor is adapted automatically. The following screenshot shows the Languages dialog of the browser Firefox:

MVC: Setting the interface and control's culture of Web.TextControl

With the above settings, the interface and control language will be set to German automatically. The date and time string formats, the ruler bar units and the string resources such as ribbon bar titles and dialog boxes are localized:

MVC: Setting the interface and control's culture of Web.TextControl

English and German resources are included by default and all other languages can be used by creating satellite assemblies using the TX Text Control resource kit. This is described in the following documentation article:

Using the Resource Kit

In the ASP.NET Web Forms (AJAX) control, the properties can be easily adjusted in the Properties Window:

MVC: Setting the interface and control's culture of Web.TextControl

In the ASP.NET MVC version, these properties can be set using lambda expressions directly in the HtmlHelper:

@Html.TXTextControl().TextControl(settings =>
{
    settings.UICulture = System.Globalization.CultureInfo.GetCultureInfo("en-US");
    settings.Culture = System.Globalization.CultureInfo.GetCultureInfo("en-US");
}).Render()

When these settings are set to English explicitly, the control is created with English settings and resources:

MVC: Setting the interface and control's culture of Web.TextControl

Stay in the loop!

Subscribe to the newsletter to receive the latest updates.

Reporting

The Text Control Reporting Framework combines powerful reporting features with an easy-to-use, MS Word compatible word processor. Users can create documents and templates using ordinary Microsoft Word skills. The Reporting Framework is included in all .NET based TX Text Control products including ASP.NET, Windows Forms and WPF.

See Reporting products

Related Posts

ReportingHTML5MVC

Sneak Peek X15: Custom Field Overlays in HTML5-based Text Control

A highly requested feature for our HTML5-based Web.TextControl is the ability to show field overlays or custom elements such as HTML form elements on top of all types of fields. In version X15,…


CloudReportingDocument Viewer

New ASP.NET MVC DocumentViewer Rolled out to the ReportingCloud Portal

We just rolled out a new ASP.NET MVC DocumentViewer to the ReportingCloud portal to preview templates in the template storage. The following screenshot shows the viewer inside the ReportingCloud…


ReportingGitHubHTML5

Updated MVC Sample: Loading Files from the Backstage Menu

We just updated the very popular sample Loading files from the backstage menu to TX Text Control version X14 (24.0) on GitHub. This sample shows how to replace the file menu with an MS Word-style…


ASP.NETJavaScriptDocument Editor

Detect Toggle Button Changes Using a MutationObserver

This article shows how to detect changes of toggle buttons in the ribbon of the web editor using a MutationObserver. The state of a toggle button in the ribbon visualizes the state of a certain…


ASP.NETDocument EditorHTML5

Implementing Conditional Table Cell Colors with MailMerge

This ASP.NET MVC sample shows how to implement conditional table cell colors using the online document editor and an ASP.NET backend.