weblate icon indicating copy to clipboard operation
weblate copied to clipboard

Bulk handling for suggestions

Open paulpach opened this issue 9 years ago • 14 comments

A person came to my site and added hundreds of suggestions.

Currently I have to review each suggestion one at a time, and accept them one at a time.

It would be great if there was a "zen mode" for reviewing large number of suggestions.

paulpach avatar Mar 06 '15 17:03 paulpach

Would like to see this too! We added 7 languages, each with about 800 strings to translate. I've spend hours accepting :P

Frexuz avatar May 11 '17 06:05 Frexuz

This looks to me like a duplicate of #849.

derikson avatar Jun 27 '17 02:06 derikson

It would be great if there was a "zen mode" for not only reviewing a large number of suggestions but also bulk approving all the suggestions in the language. ie having an "Approve All Suggestions" button.

mark-yougov avatar Feb 04 '21 17:02 mark-yougov

My implementation https://github.com/exzhawk/weblate/commit/ce5106970502e43825340ece0608beaa90b74c84 The commit id may be changed due to rebase, look up recent log for corresponding commit https://github.com/exzhawk/weblate/commits/epix_mod Known issue: No vote/spam function. Screenshot image

exzhawk avatar Mar 07 '21 17:03 exzhawk

@exzhawk Avatars is a great idea. I think it would be better to put them left-aligned (with a mouseover for the name) so that the text has a clear A-B comparison top to bottom, instead of being offset. Better for long strings.

bilde

To solve the issue of all fields then looking the same, I think a suggestion colour would set it apart from the other fields. Not a big issue though. Suggestions are somewhat rare. (That doesn't mean people won't start using them now that they will be valuable.)

bilde

bilde

bilde

The copy, and clone buttons might be more useful than clicking(?) to edit, and then clicking the checkmark? It isn't obvious where clicking the pencil starts editing the string. Is it the suggestion field, or the regular field?

comradekingu avatar May 14 '21 05:05 comradekingu

Workaround in Python: https://github.com/WeblateOrg/weblate/discussions/8554#discussioncomment-4612940

nijel avatar Jan 06 '23 14:01 nijel

Is it something that is accepted as a feature? If it just needs an actual implementation, I could try to create a PR.

juliancoffee avatar Jan 25 '24 22:01 juliancoffee

@juliancoffee Yes, it is accepted that we need such a feature. The exact design was not yet discussed, so please post your proposal here before implementing so that feedback can be provided.

nijel avatar Jan 26 '24 08:01 nijel

Well, I quite like the design in https://github.com/WeblateOrg/weblate/issues/671#issuecomment-841025994.

It seems to include both a "Suggest" button with an exclamation sign, as well as all suggestions with accept/accept and edit/trash buttons. And looks quite clean. Except, I don't think we need to have suggestions to be different colours or smth, having an avatar and all the buttons gives IMO enough information to differentiate between current translation and suggestions.

And maybe add a vote button along with accept/accept and edit/trash. (which also can be pushed slightly up, to avoid hiding the message behind)

juliancoffee avatar Jan 27 '24 09:01 juliancoffee

Yes, that makes sense. I think the main question is whether to make it available in the zen mode, or it would be a separate view for dealing with the suggestions. I can see benefits in both approaches. Having it included makes the suggestions available while translating. Having it separate can make the UI more streamlined for suggestions removing not needed parts.

nijel avatar Feb 04 '24 09:02 nijel

Having it separate can make the UI more streamlined for suggestions removing not needed parts.

I think we can just dispatch on whether the user has translation rights?

juliancoffee avatar Feb 05 '24 00:02 juliancoffee

User having permission to accept suggestions will often have also permission to edit the translation, so that is IMHO not the way to decide this.

nijel avatar Feb 14 '24 15:02 nijel

Yeah, I think having them separate might be both simpler to implement (or not) and simpler to use. But we can adjust it afterwards. (also I finally started working on it)

juliancoffee avatar Mar 11 '24 14:03 juliancoffee

here's a start #11187, I actually went via always showing suggestions and translations at the same time

juliancoffee avatar Mar 13 '24 00:03 juliancoffee