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 ** ...
-
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
-
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
-
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.
-
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?
-
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.
-
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.
-
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)
-
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...
-
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
-
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
Similar Threads
-
By Application Development in forum DOTNET
Replies: 1
Last Post: 07-27-2007, 09:24 AM
-
By Application Development in forum DOTNET
Replies: 3
Last Post: 07-10-2007, 08:02 AM
-
By Application Development in forum Javascript
Replies: 7
Last Post: 06-02-2007, 10:17 AM
-
By Application Development in forum XML SOAP
Replies: 7
Last Post: 06-28-2006, 12:12 PM
-
By Application Development in forum Inetserver
Replies: 2
Last Post: 10-21-2005, 04:39 PM