This project has moved. For the latest updates, please go here.

How can I localize the Multi File Uploader

Oct 11, 2012 at 5:31 PM

I have done localization in web applications before, but not in a Silverlight control. In fact, I am a newbie to Silverlight, so please bear with me. I need the Multi File Uploader to render in English or Spanish depending on the current CultureInfo. In the mpost.SilverlightMultiFileUpload project, there is a UserMessages.resx, but I would like to include a UserMessages.es-MX.resx as well for the control to read from. Has anyone else done this? Thank you in advance!

Oct 15, 2012 at 11:10 PM
Edited Oct 15, 2012 at 11:11 PM

For anyone who is interested, I have solved my own issue by doing the following:

1. Added UserMessages.es-MX.resx in mpost.SilverlightMultiFileUpload project and mpost.SilverlightMultiFileUpload.Controls project

2. Right click on mpost.SilverlightMultiFileUpload project in the solution, select Unload. Right click again on the project, select Edit mpost.SilverlightMultiFileUpload and added a SupportedCultures line under <PropertyGroup>

 

<SupportedCultures>en-US;es-MX</SupportedCultures>

 

 

 

Repeat step 2 for mpost.SilverlightMultiFileUpload.Controls

3. Add uiculture param to the MultiFileUploader object on your .aspx page

 

<param name="uiculture" value="<%=Request.Cookies["language"].Value %>"/>