Last post Jul 01, 2011 04:51 AM by divyapkar
Jun 28, 2007 06:55 AM|m1net|LINK
How do I localize FileUpload control, specifically the "Browse..." button.
Thanks in advancce
Jun 28, 2007 10:07 AM|aweil|LINK
You don't localize it on the server (your ASP.NET application). It's a client-side control so it's automatically displayed according to the end-user language.
For instance, a user running your ASP.NET application on a German computer will see the upload button in german.
Hope this helps,
Jun 29, 2007 10:03 AM|toshesh|LINK
I'm trying to create a website that can display things in multi language.
This is a problem because i need the browse button to be displayed in 4 possible languages.
I have all the standard texts on labels, buttons etc using resource manager. Couldn't we set
the uiculture or culture info to change the browse button to be displayed in the right language?
Jun 29, 2007 10:23 AM|aweil|LINK
Well, I don't really see the problem.
Suppose the languages of your site are English and Arabic. An Arabic user wants to see the site and the "Upload" button in his language, and that's exactly what he'll get if he uses an Arabic version of Windows (in fact, an Arabic version of Internet Explorer
or his browser).
Feb 26, 2008 11:25 AM|Curt|LINK
What if the user is not using a computer with an Arabic version of Windows? Let's say he's traveling in the US, using the hotel's English computer, and he visits a site that has English and Arabic. The site should enable the user to click on "Arabic" to
see the site in Arabic. When he sees the FileUpload control button, it doesn't show "Browse..." in Arabic. How do we make the button display Arabic or any other language or text?
Feb 26, 2008 10:47 PM|aweil|LINK
If the user was able to make it all the way to the US, find a computer with and Internet connection and start a browser, all in English, then he will understand what "Browse" means...
Mar 03, 2008 11:26 AM|MrNick|LINK
I am having the same problem. My browser is set to ja (japanese), but when I view my page with a FileUpload control, "Browse" still appears. From what you said, wouldn't I expect it to be something in Japanese?
Mar 04, 2008 01:17 PM|aweil|LINK
I understand this may seem strange, but no, setting your language to "ja" doesn't make the "Browse..." button appear in English. Read on and you'll understand.
To see the "Browse" button in Japanese, you need to use a Japanese browser. Either because your OS is Japanese or you managed to run your browser in Japanese. If your browser's menu is in English, the "Browse..." button on any page will be in English too.
When you set your browser to say that Japanese is your preferred language, you are simply telling the Web site that you want Japanese content. But the Web site cannot change your browser's language... So you'll see the pages in Japanese (if the site supports
it), but the Browse button in English.
Anyway, if one of your user understands only Japanese, he will use a Japanese browser, so his "Browse..." button will be in Japanese.
Is this clear? :-)
Mar 04, 2008 02:18 PM|MrNick|LINK
Thanks.. I understand.. But I also disagree and think this is pretty dumb. Say you have a kiosk or a shared machine with an English browser and OS, but you want to allow English and French users, so your main screen asks users what language they want to
use. If they only understand French the whole website is in French except for the browse button. There's a CSS/JS workaround. I think I'll try that.
Mar 04, 2008 03:58 PM|BugInfested|LINK
Did the CSS/JS workaround work?
If so, can you share it with me?
I agree with MrNick.
It is very dumb for the button to say “Browse…” when the rest of the wepages are in French or Arabic.
Even if the person made it to the US and is using the hotel’s English computer, if the person visits an Arabic or French site, then all of the text on the site should be Arabic or French.
It’s dumb that the button still says “Browse…”
Oct 07, 2008 07:27 PM|rpdyer|LINK
I am also struggling with localizing the FileUpload control -- the browser button needs to be localized. I know Microsoft must provide support for this, but it isn't working for me even when the browser language is changed to something like Spanish or French.
All of the other text of the page except the Browse button of the FileUpload control is correctly localized, and I don't understand why this is not working correctly.
Jun 29, 2009 06:42 AM|shayas|LINK
it is simple just make an upload control and make it as style="display:none" and add a textbox and a button looks like upload control and add localization to that textbox and button and onclick of the button will fire the event of clicking upload
then ur problem solved
Jul 01, 2011 04:51 AM|divyapkar|LINK
Just a doubt on your answer. So if the OS is in English, then is there any way I can see the Browse button in german or french ( rest of my application is in that language, but for browse button) ??
I tried adding another language to the Language setting in IE. But even that didnt help.