This is a migrated thread and some comments may be shown as answers.

Upload localization

5 Answers 144 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Gilberto
Top achievements
Rank 1
Gilberto asked on 13 Mar 2009, 09:03 PM
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

Gilberto

5 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 16 Mar 2009, 01:44 PM
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.
0
ManniAT
Top achievements
Rank 2
answered on 27 Apr 2009, 05:49 PM
Hi,

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.

BUT
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

Regards

Manfred
0
Kamen Bundev
Telerik team
answered on 30 Apr 2009, 08:25 AM
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;
}


Greetings,
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.
0
Kuna
Top achievements
Rank 1
answered on 15 Jun 2010, 03:19 PM
Hi,
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?
0
Genady Sergeev
Telerik team
answered on 17 Jun 2010, 09:10 AM
Hello Radim Dubovy,

Use .ruButton instead of .ruBrowse, like this:


.ruBrowse
    {
        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
Tags
Upload (Obsolete)
Asked by
Gilberto
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
ManniAT
Top achievements
Rank 2
Kamen Bundev
Telerik team
Kuna
Top achievements
Rank 1
Genady Sergeev
Telerik team
Share this question
or