I cannot find the strings “Choose file” and “No file selected” in an upload input form widget, so I can translate them. Where are they located? Or are they embedded into php and not in symfony2 ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
These text is defined by the browser and not by PHP or Symfony. You will also notice that this widget will be displayed differently in different browsers and on different operating systems. There is no possibility to change the text displayed in this widget. There is also no possibility to change the design of the widget. Most CSS properties won’t have an effect on
<input type="file">.The only thing that you could do is to implement a custom JavaScript uploader, but that will probably only work in modern browsers. I personally have never done this, but a quick Google search brought up this page that features 7 different JavaScript plugins to do this.