Input type File: "Browse" in other languages

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Roger Withnell

    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 **
    ----------------------------------------------------------
    Best Usenet Service Providers 2025 ranked by Newsgroup Access Newsservers, Usenet Search, Features & Free Trial. Add VPN for privacy.

  • RobG

    #2
    Re: Input type File: "Browse&qu ot; in other languages

    On May 27, 8:40 am, "Roger Withnell"
    <rogerREM...@TH ISupperbridge.c o.ukwrote:
    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

    Comment

    • scripts.contact

      #3
      Re: Input type File: &quot;Browse&qu ot; in other languages

      On May 27, 12:08 am, RobG <r...@iinet.net .auwrote:
      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.

      Comment

      • withers

        #4
        Re: Input type File: &quot;Browse&qu ot; in other languages

        On 27 May, 11:06, "scripts.contac t" <scripts.cont.. .@gmail.comwrot e:
        On May 27, 12:08 am, RobG <r...@iinet.net .auwrote:
        >
        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?

        Comment

        • VK

          #5
          Re: Input type File: &quot;Browse&qu ot; in other languages

          On May 27, 2:40 am, "Roger Withnell"
          <rogerREM...@TH ISupperbridge.c o.ukwrote:
          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 "transparen t control
          overlapping" hack found on quirksmode.org

          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.

          Comment

          • VK

            #6
            Re: Input type File: &quot;Browse&qu ot; in other languages

            On May 27, 4:05 pm, withers <r...@upperbrid ge.co.ukwrote:
            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.

            Comment

            • Evertjan.

              #7
              Re: Input type File: &quot;Browse&qu ot; in other languages

              VK wrote on 27 mei 2007 in comp.lang.javas cript:
              On May 27, 4:05 pm, withers <r...@upperbrid ge.co.ukwrote:
              >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)

              Comment

              • VK

                #8
                Re: Input type File: &quot;Browse&qu ot; in other languages

                On May 27, 4:27 pm, "Evertjan." <exjxw.hannivo. ..@interxnl.net wrote:
                VK wrote on 27 mei 2007 in comp.lang.javas cript:
                >
                On May 27, 4:05 pm, withers <r...@upperbrid ge.co.ukwrote:
                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...


                Comment

                • ASM

                  #9
                  Re: Input type File: &quot;Browse&qu ot; 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

                  Comment

                  • ASM

                    #10
                    Re: Input type File: &quot;Browse&qu ot; in other languages

                    RobG a écrit :
                    On May 27, 8:40 am, "Roger Withnell"
                    <rogerREM...@TH ISupperbridge.c o.ukwrote:
                    >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

                    Comment

                    Working...