VCL subscription: new localization tool coming in next build

31 October 2008

clip_image001 We've been working on a new tool for native Delphi and C++Builder developers and will release it in the next build (build 40). It's known, catchily, as the TcxLocalizer component. Oh, and it's free with the subscription.

WAY COOL UPDATE: I totally misinterpreted the information I was given. Apparently TcxLocalizer is going to be shipped with the "Express Cross Platform Library" which is included as part of all our active latest products. So you don't need the subscription, you'll, well, just get it anyway, provided you're up to date. And a little birdie tells me that Build 40 is on target for release next week. With that, back to your normal programme...

The TcxLocalizer component helps you localize those of your applications that use our controls, as well as third-party or standard controls. This component provides centralized control over an application’s UI language or locale. Using this component, switching to another locale is as simple as changing a single option.

Here's how it works -- the brief version.

Create a resource string file using the Localizer Editor, which is a standalone application shipped with the component. You then drop the TcxLocalizer component onto a form, link the resource string file to it, and select the current locale.


At this point, you can just run the application and see it localized. Voilà!

Localizing Developer Express controls

With our controls, the text displayed by various UI elements is provided by resource strings. Prior to the TcxLocalizer component, you had to go and manually change resource string values with the translated text. Now, you can use the Localizer Editor to browse all the available resource strings for our controls, specify resource string values for any number of locales, and store these values to a resource strings file.



After this, the created file can be linked to the TcxLocalizer component, and at runtime, the controls will display the text based on the selected locale.


Localizing standard or third-party controls

Along with the configured TcxLocalizer component that you use in the application, specify the IdxLocalizerListener interface for the control to be translated (whether that is a form, frame, or custom control), and implement the IdxLocalizerListener.TranslationChanged method. In this method, perform all the necessary modifications to the UI, such as label and caption initializations, etc.

Of course, you are free to programmatically assign string constants based on the current locale specified by the TcxLocalizer component, however the Localizer Editor provides a more convenient and elegant way to accomplish this. You can define custom resource strings with unique names, store them to a resource strings file, and later retrieve them in the TranslationChanged method.


This way, you can control and modify all the resource strings used in your applications in a centralized manner.

The following example demonstrates how a form’s caption and some labels are localized using resource strings from a resource strings file created with the Localizer Editor.

// Delphi
// ...
cxLocalization, dxCore, cxClasses, ;
TForm1 = class(TForm, IdxLocalizerListener)
// ...
procedure TranslationChanged;
// ...
procedure TForm1.TranslationChanged;
Caption := cxGetResourceString(@sMainFormCaption);
lblDescription.Caption := cxGetResourceString(@sDescription);
lblFileLocation.Caption := cxGetResourceString(@sFileLocation);
// ...
11 comment(s)
Claudio Piffer


very great news for the vcl market!

Thanks Julian

Best Regards

1 November, 2008

The localization tool is simply amazing!

I want to buy VCL Subscription right away, but it includes all the ASP stuff I'll never use -- and I hesitate to pay full price for a component set in which over 1/2 will never be touched.

Please consider offering a VCL Subscription "Lite" that doesn't include all the ASP stuff--for less.  I think that'll sell like hotcakes at $999 - $1099.

I know I would buy it right away, instead of exploring cheaper alternatives to the $1499 full subscription, like I am now.

1 November, 2008
Stephane Wierzbicki

That's great !

Looks like I will drop all my 'TcxIntlxxx' used components :)

Thank you for this !

Question : will you provide a webspace to upload or download customers translated strings ?

1 November, 2008
Stephane Wierzbicki

Thank you :)

2 November, 2008

Excellent, look forward to this (how about XtraReports being ported to VCL ;-)

2 November, 2008
Byron Baynham

Excellent news.  Any ideas on  the delivery schedule?

2 November, 2008
Julian Bucknall (DevExpress)

All: checkout the WAY COOL UPDATE above.

Cheers, Julian

2 November, 2008
Ferruh Köroğlu

Rich +1,

3 November, 2008
Laurent PIERRE

Wonderfull. It's a very nice feature. I hope like Stephane that DevExpress will provide a webspace to upload or download customers translated strings...

Thank you for this great news.


5 November, 2008


7 January, 2009

it's wonderfull


5 April, 2009

Please login or register to post comments.