Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jul 01, 2011 08:51 AM by divyapkar
Jun 28, 2007 10:55 AM|LINK
How do I localize FileUpload control, specifically the "Browse..." button.
Thanks in advancce
Jun 28, 2007 02:07 PM|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 02:03 PM|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 02:23 PM|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 03:25 PM|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 27, 2008 02:47 AM|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 03:26 PM|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 05:17 PM|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 06:18 PM|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 07:58 PM|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…”