Adjust submit labels to use built-in i18n handling #2257
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I noticed this while working on the diary entries, so now I'm rolling it out more widely. In many cases we've been avoiding using the built-in translation keys for submit buttons, and hard-coding translations based on the file the form is in (rather than based on the model for the form). This has made some form refactoring harder than it needs to be, as well as just being a bit of a waste of time. Sometimes this has been done just because of copying other places where it was done first.
There's ample opportunity to improve these labels in the future - too many saves and not enough updates in my opinion! But I'll leave the strings mostly unchanged for now.
@Nikerabbit this PR contains a few translation key renames:
diary_entries.show.save_button->helpers.submit.diary_comment.createmessages.new.send_button->helpers.submit.message.createoauth_clients.new.submit->helpers.submit.client_application.createoauth_clients.edit.submit->helpers.submit.client_application.updateredactions.new.submit->helpers.submit.redaction.createredactions.edit.submit->helpers.submit.redaction.updatetraces.new.upload_button->helpers.submit.trace.createtraces.edit.save_button->helpers.submit.trace.updateuser_blocks.new.submit->helpers.submit.user_block.createuser_blocks.edit.submit->helpers.submit.user_block.update