472,791 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,791 software developers and data experts.

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
May 26 '07 #1
9 16878
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
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
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Andrew Hoi | last post by:
Hi, I have a web site that use META tag like below : <META content=blendTrans(Duration=1.0) http-equiv=Page-Enter> <META content=blendTrans(Duration=1.0) http-equiv=Page-Exit> it work...
11
by: laredotornado | last post by:
Hello, Is it possible, instead of having the button "Browse" for the HTML <input type="file"> element, to have a graphic in its place? How would this be done? Thanks, - Dave
3
by: Olivier Verdin | last post by:
Hi, I am developing a multi-language application in ASP.NET in c#. I am using a file field html control to upload an image. I would like to change the text on the button "browse" that comes...
3
by: Rico | last post by:
Hello, Is there any kind of Browse dialog available? I currently use an Open File dialog which is great for selecting files, but sucks (it's confusing) when you're trying to set a directory...
4
by: acord | last post by:
Hi, I want to change the name of Browse to Add... How can I modify the followoing html code? <form name="iform" action="" method="post" enctype="multipart/form-data"> <input id="file"...
9
by: Prakash Singh Bhakuni | last post by:
am replacing the default "Browse..." button for input type=file. This works fine except that the form will only submit after the SUBMIT button is clicked twice. Any ideas on why this is happening...
1
by: vishwa Ram | last post by:
Hello VB Developers.... I like to select a folder, by clicking a button. I am using common dialog box for this. But it selects only file. Also I need code to list of xml file to list into...
1
by: aby004 | last post by:
Hello Sir, I want to know that how to create a "Browse" button to upload file to server ? i have already creating a attachfile button and applying a script, but there is no respone when...
6
by: skyy | last post by:
Hi.. i am doing file upload using CGI perl scripts... I want to allow the user to select the files using the "Browse" button only instead of typing the path name. How i do it? Thanks.....
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.