Reputation:
I need to change the locale/language of the browse button in input type="file" We have a special function to change the locale of any text to the browser language such as en-US es-MX etc.
Say
changeLang("Test"); // This will display test in Spanish if the browser
// locale is es-MX
What I need to do is to change the language of the browse button. Since it is not displayed, I can't code it like
changeLang("Browse...");
That's why I need to get the code of this input type and override so that I can apply my function to Browse text.
It will be appreciated if you can give a solution for this.
Thanks!
Jay...
Upvotes: 3
Views: 4419
Reputation: 950
The previous answer is correct, but if you're comfortable using a bit of a hack to get the job done you're able to achieve the desired effect.
See this tutorial for an example of this.
Upvotes: 0
Reputation: 54757
I do believe that the browse button is automatically translated by the browser based on the client's language settings, at least it should be. It is not possible for you to change the browse button text on your own.
Upvotes: 2