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,
Arnaud
localizationFileUpload
Microsoft .net Training and Consulting
http://www.dreamdotnet.com/
Marked as answer by Kevin Yu - MSFT on Jul 03, 2007 09:25 AM
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).
Hope this helps,
Arnaud
localizationUpload
Microsoft .net Training and Consulting
http://www.dreamdotnet.com/
Marked as answer by Kevin Yu - MSFT on Jul 03, 2007 09:25 AM
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?
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...
Microsoft .net Training and Consulting
http://www.dreamdotnet.com/
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?
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? :-)
Microsoft .net Training and Consulting
http://www.dreamdotnet.com/
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.
Did the CSS/JS workaround work?If so, can you share it with me?
aweil,
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…”
m1net
Member
4 Points
24 Posts
Localizing FileUpload control
Jun 28, 2007 10:55 AM|LINK
Hi
How do I localize FileUpload control, specifically the "Browse..." button.
Thanks in advancce
aweil
Member
725 Points
118 Posts
Re: Localizing FileUpload control
Jun 28, 2007 02:07 PM|LINK
Hi,
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,
Arnaud
localization FileUpload
http://www.dreamdotnet.com/
toshesh
Member
4 Points
10 Posts
Re: Localizing FileUpload control
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?
aweil
Member
725 Points
118 Posts
Re: Localizing FileUpload control
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).
Hope this helps,
Arnaud
localization Upload
http://www.dreamdotnet.com/
Curt
Member
15 Points
6 Posts
Re: Localizing FileUpload control
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?
aweil
Member
725 Points
118 Posts
Re: Localizing FileUpload control
Feb 27, 2008 02:47 AM|LINK
Hey Curt,
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...
http://www.dreamdotnet.com/
MrNick
Member
4 Points
2 Posts
Re: Localizing FileUpload control
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?
aweil
Member
725 Points
118 Posts
Re: Localizing FileUpload control
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? :-)
http://www.dreamdotnet.com/
MrNick
Member
4 Points
2 Posts
Re: Localizing FileUpload control
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.
Thanks.
BugInfested
Member
420 Points
107 Posts
Re: Localizing FileUpload control
Mar 04, 2008 07:58 PM|LINK
MrNick,
Did the CSS/JS workaround work? If so, can you share it with me?
aweil,
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…”