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

Delete a suggestion from TM #357

Draft
wants to merge 7 commits into
base: trunk
Choose a base branch
from

Conversation

amieiro
Copy link
Contributor

@amieiro amieiro commented Aug 9, 2024

This PR adds a button, only for the GTE, in the suggestions from the translation memory, to be able to delete a suggestion from the translation memory. This button is added only if the similarity between the current original and the suggestion from the translation memory is 100%.

Button visible only for a Galician GTE in a Galician string.

image

If the user is not a GTE, she won't have this button. Image for a user who isn't a Spanish GTE in a Spanish string.

image

This PR needs to implement the delete method for the Translation_Memory_Client class, but first we need a new method in the https://translate.wordpress.com/api/tm/ API.

The AJAX request implements the POST method, instead the DELETE method, because we need to send some data in the request, and the DELETE method doesn't allow it.

Copy link
Member

@akirk akirk left a comment

Choose a reason for hiding this comment

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

I'm implementing the TM API changes on WordPress.com and added the required API call properties.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants