By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,905 Members | 2,064 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,905 IT Pros & Developers. It's quick & easy.

Input type File: "Browse" in other languages

P: n/a
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
May 26 '07 #1
Share this Question
Share on Google+
9 Replies


P: n/a
On May 27, 8:40*am, "Roger Withnell"
<rogerREM...@THISupperbridge.co.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

May 27 '07 #2

P: n/a
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.

May 27 '07 #3

P: n/a
On 27 May, 11:06, "scripts.contact" <scripts.cont...@gmail.comwrote:
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?

May 27 '07 #4

P: n/a
VK
On May 27, 2:40 am, "Roger Withnell"
<rogerREM...@THISupperbridge.co.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 "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.

May 27 '07 #5

P: n/a
VK
On May 27, 4:05 pm, withers <r...@upperbridge.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.

May 27 '07 #6

P: n/a
VK wrote on 27 mei 2007 in comp.lang.javascript:
On May 27, 4:05 pm, withers <r...@upperbridge.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)
May 27 '07 #7

P: n/a
VK
On May 27, 4:27 pm, "Evertjan." <exjxw.hannivo...@interxnl.netwrote:
VK wrote on 27 mei 2007 in comp.lang.javascript:
On May 27, 4:05 pm, withers <r...@upperbridge.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...
May 27 '07 #8

P: n/a
ASM
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 dj dpass
Stephane Moriaux and his (less) old Mac already out of date
May 27 '07 #9

P: n/a
ASM
RobG a écrit :
On May 27, 8:40 am, "Roger Withnell"
<rogerREM...@THISupperbridge.co.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
May 27 '07 #10

This discussion thread is closed

Replies have been disabled for this discussion.