Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a log action for copy_for_translation operation #7352

Closed
wants to merge 1 commit into from

Conversation

kaedroho
Copy link
Contributor

Currently, when a user copies a page for translation, the 'copy' log action is used.

This adds a more specific 'copy_for_translation' operation to be used instead when the user is translating.

@kaedroho kaedroho added the component:i18n i18n for content created in Wagtail, not the admin UI itself label Jul 20, 2021
@kaedroho kaedroho requested a review from gasman July 20, 2021 17:16
@squash-labs
Copy link

squash-labs bot commented Jul 20, 2021

Manage this branch in Squash

Test this branch here: https://kaedrohocopy-for-translation-l-ip5wi.squash.io

Currently, when a user copies a page for translation, the 'copy' log action is used.

This adds a more specific 'copy_for_translation' operation to be used instead when the user is translating.
@@ -71,6 +71,7 @@ Action Notes
``wagtail.rename`` A page was renamed
``wagtail.revert`` The page was reverted to a previous draft
``wagtail.copy`` The page was copied to a new location
``wagtail.copy_for_translation`` The page was copied into a new locale for translation
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a thought... any reason not to follow the hierarchical pattern of the other action names, and make it something like wagtail.copy.for_translation?

Copy link
Contributor Author

@kaedroho kaedroho Jul 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems a bit inconsistent though. For example wagtail.revert is a type of edit, and wagtail.publish.schedule is not publishing the page, just scheduling it. I like the idea of encoding the hierarchy in the names though, maybe we could fix these?

gasman pushed a commit that referenced this pull request Jul 21, 2021
Currently, when a user copies a page for translation, the 'copy' log action is used.

This adds a more specific 'copy_for_translation' operation to be used instead when the user is translating.
@gasman
Copy link
Collaborator

gasman commented Jul 21, 2021

Merged in bea17ac.

@gasman gasman closed this Jul 21, 2021
@kaedroho kaedroho deleted the copy-for-translation-log branch July 21, 2021 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:i18n i18n for content created in Wagtail, not the admin UI itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants