Upload localization

Thread is closed for posting
6 posts, 0 answers
  1. Gilberto
    Gilberto avatar
    67 posts
    Member since:
    Sep 2006

    Posted 13 Mar 2009 Link to this post

    I cannot use the resource(resx) file to translate (localize) the radupload component recommended on documentation, however assign the properties to localize, it works.

    Unfortunately when i publish the website, those properties does not work anymore.

    Does anyone know some server configurations that could influence this?

    ps: i am using q2 2008

  2. Veselin Vasilev
    Veselin Vasilev avatar
    2992 posts

    Posted 16 Mar 2009 Link to this post

    Hi Gilberto,

    I could not reproduce the problem in my local tests. Can you please send us a sample running project (in a new support ticket) where we can observe the problem?

    All the best,
    Veselin Vasilev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. ManniAT
    ManniAT avatar
    885 posts
    Member since:
    Nov 2003

    Posted 27 Apr 2009 Link to this post


    I also have this problem. RadUpload ignores Language="de-DE"  - the setting which works for RadEditor.
    I got it working by setting Culture="German (Germany)".
    So this looks as it can solve the problem in the initial post.

    This brings up a problem for me -- my localization is based on these strings like de-DE, fr-FR, en-US and so on.
    And it works (as written above) with RadEditor (also with RadSpell).

    The next problem - the skin is not working as expected (there is a problem).
    In German  the word for Select is "Auswählen" - if I set this it displays "not very well".
    |  Select  |
    |  Auswählen|
    The | are the borders of the button.

    This is for "short text". If I want to design this a bit more user friendly I would write something like "Select Image" or "Select File".
    In German "Datei auswählen" - this results in |  Datei auswä|

    The first problem (| Auswählen|) can be fixed with an override of
    .RadUpload .ruBrowse {  
    //width: 65px; - removed  
    //background-position: 0px 0px; -- removed  
    width: inherit;  
    background-position: !important;  
    This enables the styles from ".RadUpload .ruButton" (widht 79px, BP 0px -24px).
    But it does not help for longer text like "Datei auswählen" - removing width 79px also does not help - the sprite is to small for larger buttons.

    So to bring it to a point:
    a.) Language=.... ignored
    b.) Skin / Style not usable with longer text


  4. Kamen Bundev
    Kamen Bundev avatar
    1532 posts

    Posted 30 Apr 2009 Link to this post

    Hello Manfred,

    Unfortunately you need to set the Culture property, not the Language one. More information is available here Localizing RadUpload. You can use the Language strings from codebehind though /CultureInfo resides in System.Globalization/:
    RadUpload1.Culture = CultureInfo.CreateSpecificCulture("de-DE");
    Note that you need to have the App_GlobalResources with contents like shown in the aforementioned article.

    As for the skin problem - if you're using Q1 2009, there are three button sizes in the RadUpload sprite. The third one is 115px wide, so it can contain the text "Datei auswählen". Add this CSS rule to your project to use it:
    div.RadUpload .ruBrowse { 
        width: 115px;
        background-position: 0 -46px;

    Kamen Bundev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. Kuna
    Kuna avatar
    5 posts
    Member since:
    Jul 2008

    Posted 15 Jun 2010 Link to this post

    I had the same problem with button width. I used the style div.RadUpload .ruBrowse, which you suggest and it really works. The problem is that it probably uses different style (or javascript onmouseover?) for hover. Then the background of the image is still the same small size.
    Can you help me, please?
  6. Genady Sergeev
    Genady Sergeev avatar
    1600 posts

    Posted 17 Jun 2010 Link to this post

    Hello Radim Dubovy,

    Use .ruButton instead of .ruBrowse, like this:

            background-position:0 -46px !important;
            width:115px !important;

    Sincerely yours,
    Genady Sergeev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top