For ages we are not using the word Submit for buttons any longer. The module code need to be changed. In regards to media it should mostly be Save and Upload depending on context.
http://drupal.org/update/modules/5/6#submit-to-save
Change "Submit" to "Save" on buttons
It has been agreed on that the description "Submit" for a button is not a good choice since it does not indicate what actually happens. While for example on node editing forms, "Preview" and "Delete" describe exactly what will happen when the user clicks on the button, "Submit" only gives a vague idea.
Additionally, the term "Submit" can be at times hard to translate into other languages. Since the term is used for quite different actions, this can result in inappropriate translations because it is not possible to separate two exact same strings in a translation.
When you are labeling your buttons, make sure that it is clear what this button does when the user clicks on it.
Comments
Comment #1
hass CreditAttribution: hass commentedPatch attached
Comment #2
hass CreditAttribution: hass commentedSubmit button in media lib is only a Save.
Comment #3
Dave ReidWhen used in the Image library context, we should likely be using 'Select' and not 'Save' since nothing actually 'Saves' the field data until the users clicks Save on the node itself.
Comment #4
Dave ReidChanges also need to be fixed in 7.x-2.x first, then backported to 7.x-1.x as appropriate. Downgrading to normal.
Comment #5
hass CreditAttribution: hass commentedGood idea. Changed button to select. It's against 1.x-DEV and fails on 2.x
Comment #6
hass CreditAttribution: hass commentedPatch for 2.x. Not reviewed in production as I'm running 1.x.
Comment #7
dddave CreditAttribution: dddave commentedIt seems this patch needs a slight update. Patch won't apply.
Comment #8
pschuelke CreditAttribution: pschuelke commentedHere's an updated patch from #6
Comment #9
dddave CreditAttribution: dddave commentedLooking good.
Comment #10
g10 CreditAttribution: g10 commentedpatch from #8 breaks the upload functionality in the popup on a node form,
more specifically, the following part:
removing above lines fixes the issue
Comment #11
becw CreditAttribution: becw commentedI'm reviewing this patch.
Comment #12
Devin Carlson CreditAttribution: Devin Carlson commentedMarked #1870104: Change 'Submit' button to be more explicit. as a duplicate.
Comment #13
arthurf CreditAttribution: arthurf commentedg10 is correct that this breaks uploading. I think this is because the upload form is being altered after drupal_get_form() is called in MediaBrowserUpload.inc If I use a normal form_alter() I'm able to change the button value properly but it does not work if it is done after the form is already built and then the value is changed.
I think the solution here is to either
* use form alter with the media upload functionality to change it
* conditionally set the value of the submit button if a submit button is not present
There is a bigger discussion about how content is delivered to the media browser is structured- is it a standard form, rendered html, should we require the save/submit/cancel buttons to be provided by the implementer? That is probably too much for this issue, but it is something that needs to be looked at.
Comment #14
hass CreditAttribution: hass commentedComment #15
steinmb CreditAttribution: steinmb as a volunteer commentedComment #16
Chris Matthews CreditAttribution: Chris Matthews commentedThe 6 year old patch in #13 does not apply to the latest media 7.x-2.x-dev and if still relevant needs a reroll.
Comment #17
Neslee Canil PintoRenamed Submit Button
Comment #19
Neslee Canil PintoRenamed Submit Button to Save
Comment #20
steinmb CreditAttribution: steinmb as a volunteer commented