Input type File: "Browse" in other languages - Javascript

This is a discussion on Input type File: "Browse" in other languages - Javascript ; I am building a website in Russian. What options do I have to make the "Browse" button display in other languages? Thanking you in anticipation. Posted Via Usenet.com Premium Usenet Newsgroup Services ---------------------------------------------------------- ** SPEED ** RETENTION ** COMPLETION ** ...

+ Reply to Thread
Results 1 to 10 of 10

Input type File: "Browse" in other languages

  1. Default Input type File: "Browse" in other languages

    I am building a website in Russian.

    What options do I have to make the "Browse" button display in other
    languages?

    Thanking you in anticipation.



    Posted Via Usenet.com Premium Usenet Newsgroup Services
    ----------------------------------------------------------
    ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
    ----------------------------------------------------------
    http://www.usenet.com

  2. Default Re: Input type File: "Browse" in other languages

    On May 27, 8:40 am, "Roger Withnell"
    <rogerREM...@THISupperbridge.co.uk> wrote:
    > I am building a website in Russian.
    >
    > What options do I have to make the "Browse" button display in other
    > languages?


    This is an HTML question, so best to ask in an HTML forum. Anyhow, the
    label is based on the input's value, so just put whatever you like for
    the value:

    <input type="file" value="Выберите файл">

    An HTML news group can help with the Russian characters.

    <URL: http://groups.google.com.au/group/co...s?lnk=li&hl=en
    >



    --
    Rob


  3. Default Re: Input type File: "Browse" in other languages

    On May 27, 12:08 am, RobG <r...@iinet.net.au> wrote:
    > > What options do I have to make the "Browse" button display in other
    > > languages?

    >
    > the
    > label is based on the input's value, so just put whatever you like for
    > the value:
    >
    >   <input type="file" value="Выберите файл">


    value(read-only) is the path of the selected file not the name of
    Browse/Choose button. The browser decides the text -you can't change
    it.


  4. Default Re: Input type File: "Browse" in other languages

    On 27 May, 11:06, "scripts.contact" <scripts.cont...@> wrote:
    > On May 27, 12:08 am, RobG <r...@iinet.net.au> wrote:
    >
    > > > What options do I have to make the "Browse" button display in other
    > > > languages?

    >
    > > the
    > > label is based on the input's value, so just put whatever you like for
    > > the value:

    >
    > >   <input type="file" value="Выберите файл">

    >
    >  value(read-only) is the path of the selected file not the name of
    > Browse/Choose button. The browser decides the text -you can't change
    > it.


    Do I assume correctly, therefore, that, if a user has set his or her
    browser up with the Russian language, then the "Browse" button in the
    input type file will be in Russian?


  5. Default Re: Input type File: "Browse" in other languages

    On May 27, 2:40 am, "Roger Withnell"
    <rogerREM...@THISupperbridge.co.uk> wrote:
    > I am building a website in Russian.
    >
    > What options do I have to make the "Browse" button display in other
    > languages?


    Theoretically you can't. Input file control is a closed control with
    the majority of properties locked for security considerations. The
    only up-to-date known way is by using the "transparent control
    overlapping" hack found on quirksmode.org
    http://www.quirksmode.org/dom/inputfile.html
    so you could place a custom button with the Russian label on it using
    this hack. The hack requires extra browser sniffing for Safari (if you
    care of this UA) because it has opposite order: "Browse" button on the
    left, input box on the right.


  6. Default Re: Input type File: "Browse" in other languages

    On May 27, 4:05 pm, withers <r...@upperbridge.co.uk> wrote:
    > Do I assume correctly, therefore, that, if a user has set his or her
    > browser up with the Russian language, then the "Browse" button in the
    > input type file will be in Russian?


    No, it is a strictly closed interface, it doesn't react on local
    settings, it is always "Browse..." even for Russian or say Chinese. In
    late 90's there were a number of security exploits by playing with
    locales, after that they had to close this hole.


  7. Default Re: Input type File: "Browse" in other languages

    VK wrote on 27 mei 2007 in comp.lang.javascript:

    > On May 27, 4:05 pm, withers <r...@upperbridge.co.uk> wrote:
    >> Do I assume correctly, therefore, that, if a user has set his or her
    >> browser up with the Russian language, then the "Browse" button in the
    >> input type file will be in Russian?

    >
    > No, it is a strictly closed interface, it doesn't react on local
    > settings, it is always "Browse..." even for Russian or say Chinese. In
    > late 90's there were a number of security exploits by playing with
    > locales, after that they had to close this hole.


    A nice strory, untrue however.

    My browse button for a htmp file with only:

    <input type='file'>

    both in IE7 and FF2 shows:

    |--------------|
    | Bladeren ... |
    |--------------|

    So why woulfd a Russian localisation not have the Russian?


    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)

  8. Default Re: Input type File: "Browse" in other languages

    On May 27, 4:27 pm, "Evertjan." <exjxw.hannivo...@interxnl.net> wrote:
    > VK wrote on 27 mei 2007 in comp.lang.javascript:
    >
    > > On May 27, 4:05 pm, withers <r...@upperbridge.co.uk> wrote:
    > >> Do I assume correctly, therefore, that, if a user has set his or her
    > >> browser up with the Russian language, then the "Browse" button in the
    > >> input type file will be in Russian?

    >
    > > No, it is a strictly closed interface, it doesn't react on local
    > > settings, it is always "Browse..." even for Russian or say Chinese. In
    > > late 90's there were a number of security exploits by playing with
    > > locales, after that they had to close this hole.

    >
    > A nice strory, untrue however.
    >
    > My browse button for a htmp file with only:
    >
    > <input type='file'>
    >
    > both in IE7 and FF2 shows:
    >
    > |--------------|
    > | Bladeren ... |
    > |--------------|
    >
    > So why woulfd a Russian localisation not have the Russian?


    My bad: a lesson to me to always check the previous experience against
    the current state. By switching OS locale and by setting Russian
    interface for IE, the file control button now says "Обзор..." (~= "an
    outlook") in Russian. So the OP's question is answered: do not worry,
    the system settings will do the job.
    Note: uhm, I'm wondering if the exploits of this were fixed... Gonna
    check in private...



  9. Default Re: Input type File: "Browse" in other languages

    Roger Withnell a écrit :
    > I am building a website in Russian.
    >
    > What options do I have to make the "Browse" button display in other
    > languages?


    You don't cure : it is automatic (I have it in French)
    (if the browser can do it)



    --
    Stephane Moriaux et son (moins) vieux Mac déjà dépassé
    Stephane Moriaux and his (less) old Mac already out of date

  10. Default Re: Input type File: "Browse" in other languages

    RobG a écrit :
    > On May 27, 8:40 am, "Roger Withnell"
    > <rogerREM...@THISupperbridge.co.uk> wrote:
    >> I am building a website in Russian.
    >>
    >> What options do I have to make the "Browse" button display in other
    >> languages?

    >
    > <input type="file" value="Выберите файл">


    that does nothing in my browsers. I still have "Parcourir" ...


    --
    Stephane Moriaux et son (moins) vieux Mac déjà dépassé
    Stephane Moriaux and his (less) old Mac already out of date

+ Reply to Thread

Similar Threads

  1. <input type="hidden" name="strInputElements" value="Name">
    By Application Development in forum DOTNET
    Replies: 1
    Last Post: 07-27-2007, 09:24 AM
  2. Use HTML <input type="file" > instead of .Net FileUpload control?
    By Application Development in forum DOTNET
    Replies: 3
    Last Post: 07-10-2007, 08:02 AM
  3. onChange in <input type="file"...>
    By Application Development in forum Javascript
    Replies: 7
    Last Post: 06-02-2007, 10:17 AM
  4. ServerXMLHTTP send text file to input TYPE="FILE" on https page
    By Application Development in forum XML SOAP
    Replies: 7
    Last Post: 06-28-2006, 12:12 PM
  5. problem with merging input type "file" and inout type "text"
    By Application Development in forum Inetserver
    Replies: 2
    Last Post: 10-21-2005, 04:39 PM