Localizing FileUpload control

Last post 06-29-2009 6:42 AM by shayas. 11 replies.

Sort Posts:

  • Localizing FileUpload control

    06-28-2007, 6:55 AM
    • Member
      4 point Member
    • m1net
    • Member since 03-02-2007, 9:57 PM
    • Posts 24

    Hi

    How do I localize FileUpload control, specifically the "Browse..." button.

    Thanks in advancce

  • Re: Localizing FileUpload control

    06-28-2007, 10:07 AM
    Answer
    • Member
      725 point Member
    • aweil
    • Member since 09-09-2005, 10:57 PM
    • Paris, France
    • Posts 118

    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 

    Microsoft .net Training and Consulting
    http://www.dreamdotnet.com/
    Filed under: ,
  • Re: Localizing FileUpload control

    06-29-2007, 10:03 AM
    • Member
      4 point Member
    • toshesh
    • Member since 09-22-2006, 10:58 AM
    • Posts 10

    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?

  • Re: Localizing FileUpload control

    06-29-2007, 10:23 AM
    Answer
    • Member
      725 point Member
    • aweil
    • Member since 09-09-2005, 10:57 PM
    • Paris, France
    • Posts 118

    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
     

    Microsoft .net Training and Consulting
    http://www.dreamdotnet.com/
    Filed under: ,
  • Re: Localizing FileUpload control

    02-26-2008, 11:25 AM
    • Member
      15 point Member
    • Curt
    • Member since 05-03-2005, 5:24 AM
    • Posts 6

    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?

  • Re: Localizing FileUpload control

    02-26-2008, 10:47 PM
    • Member
      725 point Member
    • aweil
    • Member since 09-09-2005, 10:57 PM
    • Paris, France
    • Posts 118

     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... 

    Microsoft .net Training and Consulting
    http://www.dreamdotnet.com/
  • Re: Localizing FileUpload control

    03-03-2008, 11:26 AM
    • Member
      4 point Member
    • MrNick
    • Member since 03-03-2008, 4:24 PM
    • Posts 2

    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?

  • Re: Localizing FileUpload control

    03-04-2008, 1:17 PM
    • Member
      725 point Member
    • aweil
    • Member since 09-09-2005, 10:57 PM
    • Paris, France
    • Posts 118

     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/
  • Re: Localizing FileUpload control

    03-04-2008, 2:18 PM
    • Member
      4 point Member
    • MrNick
    • Member since 03-03-2008, 4:24 PM
    • Posts 2

    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.
     

  • Re: Localizing FileUpload control

    03-04-2008, 3:58 PM
    • Member
      420 point Member
    • BugInfested
    • Member since 12-04-2005, 4:31 AM
    • Posts 107

    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…”

  • Re: Localizing FileUpload control

    10-07-2008, 7:27 PM
    • Member
      2 point Member
    • rpdyer
    • Member since 10-07-2008, 11:24 PM
    • Posts 1

     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.

  • Re: Localizing FileUpload control

    06-29-2009, 6:42 AM
    • Participant
      1,360 point Participant
    • shayas
    • Member since 02-06-2008, 7:42 AM
    • Sharjah,UAE
    • Posts 272

    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

    Yasser
    Spica.
    www.spica.ae
    www.gccpsg.com/gccnew
    www.snasco.com
    www.bncnetwork.net
    Please remember to mark as answers if this helps
Page 1 of 1 (12 items)