Localization for RadUpload

4 posts, 0 answers
  1. Dave
    Dave avatar
    5 posts
    Member since:
    May 2008

    Posted 26 May 2010 Link to this post

    I've been searching all day on how to change the localization for a radupload based on the browser language in a silverlight application with no luck.

    If I've got a silverlight app with only a radupload control being put onto an asp.net page. How do I make it so that it will grab the current language from the web browser? I've got a bunch of other asp.net controls working by using resx files, but I cannot get this silverlight app to work for the life of me.

    I'd like to have the language data in a resx file that's loaded just like the asp.net section.

    Is there a way to do this? help.

    Thanks in advance

  2. Dave
    Dave avatar
    5 posts
    Member since:
    May 2008

    Posted 26 May 2010 Link to this post

    Ok,

    so I finally managed to find what I was looking for in a tutorial, but I'm not sure how to modify this to utilize different languages dependant on the browser language. 

    any ideas?

  3. DevCraft banner
  4. Dave
    Dave avatar
    5 posts
    Member since:
    May 2008

    Posted 27 May 2010 Link to this post

    so using this link, I now have an english resx and a german resx.

    http://www.telerik.com/help/silverlight/common-localization.html

    Now how do I get the silverlight application to switch the language files. Switching the language in the web browser isn't doing it for me.
  5. Dave
    Dave avatar
    5 posts
    Member since:
    May 2008

    Posted 27 May 2010 Link to this post

    What I ended up doing was to pass a parameter to silverlight that contained System.Threading.Thread.CurrentThread.CurrentUICulture.ToString()

    Then, I used the following bit to adjust the language to the incoming parameter

    String

     

     

    strLanguage = properties.Language;

     

     

     

    LocalizationManager.Manager = new LocalizationManager();

     

     

     

    LocalizationManager.Manager.Culture = new System.Globalization.CultureInfo(strLanguage);

     

     

     

    LocalizationManager.Manager.ResourceManager = FileUploader.ResourceManager;

    wham bam works like a charm.

     

Back to Top