Getting Started with ComponentOne Studio Silverlight Edition
Silverlight Localization

Localization for Silverlight applications is a bit different, as it has two extra steps.

First, you should add the desired localized resource files (.resx) to your project’s Resources directory (Build Action: Embedded Resource). We provide the localized resource files for each ComponentOne assembly located at C:\Program Files\ComponentOne\Studio for Silverlight\Help\LocalizationResources.zip.

Second, you must unload your project and edit the <SupportedCultures> node in the project .csproj file. See here for more information.

<SupportedCultures>es,en</SupportedCultures>

The final step is the same in WPF; change the application thread's culture.

// set culture to Spanish ("es")
Thread.CurrentThread.CurrentUICulture = new CultureInfo("es");

Check out a live demo showing every provided language in Studio for Silverlight.

This information just focuses on localizing C1 controls. You will likely have other UI strings that need to be localized too, so see here for more information about Silverlight localization from Microsoft.

 

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback