Toll Free: (877) 723-1442 U.S. and Canada
Support
ActiveX / COM
Visual C++ / MFC
Customer Spotlight
Corporate Partners
Contact Sales

Call center available M-F 9:00 - 6:00 US Eastern Time.

U.S. and Canada
(877) 723-1442

International
(517) 625-5729

Email

Changing the Language for a Component

Author: Mike Palmatier
Posted: April 28, 2006
Environment: Visual Basic 6.0

Codejock Components allows you to support multiple languages with only a single line of code. Below are the 32 different languages currently supported:

 Arabic (Saudi Arabia)

 Czech

 Finnish

 Hebrew

 Swedish

 Thai

 Portuguese (Portugal)

 Chinese (PRC)

 Danish

 French (France)

 Hungarian

 Ukrainian

 Dutch

 Romanian

 Chinese (Taiwan)

 English (US)

 German (Germany)

 Italian (Italy)

 Slovenian

 Spanish

 Croatian

 Estonian

 Greek

 Japanese

 Slovakian

 Russian

 South Korean

 Latvian

 Lithuanian

 Norwegian

 Polish

 Portuguese (Brazil)

Included with each Codejock component is 32 language resource files. This will translate all static strings that the developer can not change such as the text on the commandbars customize dialog. These files are installed to the "..\Codejock Software\Bin\Translations" folder. All you need to do is set the ResourceFile property of the component to the name of the resource file you want to use. This should be done in the Form_Initialize event.

Private Sub Form_Initialize()

    CommandBarsGlobalSettings.ResourceFile = "XTPResourceArSa.dll"

    DockingPaneGlobalSettings.ResourceFile = "XTPResourceArSa.dll"

    PropertyGridGlobalSettings.ResourceFile = "XTPResourceArSa.dll"

    ShortcutBarGlobalSettings.ResourceFile = "XTPResourceArSa.dll"

End Sub

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Other products and/or company names may be trademarks or registered trademarks of their respective owners.