Change button Choose file and text assideBrowser Info Environment
I'm running Concrete5 in Dutch and automaticly the text is translated into: (button) 'Bestand kiezen' and the text 'Geen bestand gekozen'.
Where can I find the file(s)to change this?
They are not in the messages.po file.
I normally would.
- Some of the upload dialog is configurable through the block edit.
- The actual form is in the package /elements/ file uploader_form.php. Depending
on your version of c5, you may be able to override this file, or you may
unfortunately have to edit the original file.
- With an upload form, the name of the actual file upload form button may be
fixed by the browser (this is a browser security thing)
On 08 February 2013 at 13:55 concrete5 Community <[email protected]>
Thanx for your replay. I'll wait when your are back to give me detailed information. I already did what you wrote in your answer. I don't know where to find the button specifications. If possible I want to change the layout of this button too.
The label of the 'Browse' button and the empty field message for an HTML file field are fixed by browsers.
Filament group have published a way round this that you could experiment with, but it will require you to do some js development work.
You would need to add an additional jquery ready handler to the end of the package /elements/ file uploader_form.php (either directly, or through an override if your version of c5 supports overriding of package elements). In that ready handler, base your development on the filament group post.
You could put the associated css and jquery plugins into the root js and css folders, or add them to the js and css folders for Front End Uploader, or add them to the header items loaded by Front End Uploader.
Bear in mind that the filament group code is >2 years old. Browsers and jQuery have moved on since then, so it will probably require some updating to get it working.
If you google 'change label of html file upload field' there are some other postings on this, but I have not read them in detail.
Stackovertflow has a short response on it:
This means that (on browsers other than ie<10):
- The file field is now styled to match the rest of the dialog.
- The label can be changed by changing a snippet of text within the package element 'traditional_uploader_form.php'.