473,698 Members | 2,132 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 17007
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

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.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?

May 27 '07 #4
VK
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
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...@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.

May 27 '07 #6
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)
May 27 '07 #7
VK
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...
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 déjà dépassé
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...@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
May 27 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5115
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 properly when start IE and browse in the same window, Howeve , if press the SHIFT key and click(or right click with select "open in new window) it to open in a new window, this effect not properly ?
11
3530
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
2946
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 with the control. I need to change the text to have the correct text for the language chosen.
3
1614
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 (since you have to select a file for a value to register). Is there any alternative? Thanks!
4
9259
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" type="file" name="image" onchange="upload()" /> <input type="hidden" name="imgnum" />
9
24746
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 or a workaround? I'm testing on IE Thanks! <html> <head></head> <body> <form name="test_form" method="post" action="test.jsp">
1
1426
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 list box contains the selected folder. Thanks.
1
2804
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 i am exporting the movie. so, please kindly send me the solution asap.
6
3113
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
8672
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9156
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9021
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8892
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7712
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4361
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4614
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2323
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1998
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.